299. The judge build keeps no traps unless --checks asks (2026-11-22)
- Decision.
cpl buildandcpl submitwrite C++ at--checks noneby default: no index,/ 0orasserttrap, with a zero divisor giving 0 so the program keeps no undefined behaviour there.--checks trapsis the opt-in "fast but still traps" build,--checks alladds the local build's checks (-DLOCAL).--checkedstays the sanitizer build.cpl run --releaseandcpl stressstill build attraps, so a local crash is seen; the Trap Parity Gate builds attraps. - Why. Ryan (2026-11-22): "by default when releasing to the judge we should assume that RE vs WA doesn't really matter"; the traps cost hot-loop time and bytes that hand-written C++ does not pay. Names agreed in perf's and spec's worklogs.
- Reverse. Set
JUDGE_CHECKSincrates/cpl-cli/src/build.rstoChecks::Traps.