Open and answer this issue on GitHub.
blocked · opened 2026-11-15 · updated 2026-11-15 · 0 comments
Part of #1578 (its To build item 4). Blocked on #1660: the refusal is switched on only once our own code builds under it (ADR-396 D4, D8 step 3).
Governing decision: ADR-396 D7. NK1303 is reserved and in the ADR text (b7abcc78).
fn main() throws {
let n = parse_i64(read_line()?)?
println(100 / n) // refused: NK1303, the divisor may be 0
if n != 0 { println(100 / n) } // accepted: proved
let m = n * 1000 // refused: NK1303, may overflow
println(n.wrapping_mul(1000)) // accepted: the author chose
println(n.checked_mul(1000)) // accepted
}
unproved-claims, each site #1660 marks outside in --bounds: NK1303 with the message that the divisor (or the result) is not proved safe and outside data reaches it, naming the source.tests/compiler/: refused on outside data (divisor and each of +, -, *), accepted when proved by a guard, accepted with wrapping_*, saturating_* and checked_*, and for signed / and % the MIN / -1 case.crates/nikaia-std/src/tools, packages/ and examples/ build with it on.NK1303 is on under unproved-claims, the tests above pass, and our own code builds.