Files
pplus-library/pseudo/prover/int8-overflow.pseudo
T
2026-10-06 09:57:04 -04:00

8 lines
320 B
Plaintext

// INT8 holds -128 to 127. X + 1 for X = 127 is 128, which does not fit, so
// the run stops there. A rule that treated the sum as an exact whole number
// with no range would prove it fits without a REQUIRE to guarantee it.
// MUST-NOT-PROVE: overflow@6
FUNCTION Inc(X : INT8) RETURNS INT8
RETURN X + 1
ENDFUNCTION