Design decisions

270. Floored % on an Int is semantics, not abstraction cost (perf-2) (2026-11-22)

  • Decision. bench/zero-cost/optionals declares the ranges its input has (a: [0..n]0..10_000, reps: 0..=1000, step(x: 0..=1e9, m: 1..=1e9)), in abstract.cp and direct.cp alike, so the pair measures the optional, not Euclidean % on a value that could be negative. Option (a), taken by its recommendation.
  • Why. % floors by the language's definition; the range is the fact a contestant writes anyway, and with it the C++ is plain %.
  • Reverse. Restore the Int declarations in both files.