Files
pplus-library/pseudo/prover/shortcircuit-range.pseudo
T
alexm 568474d52f
Test (in pplus-core) / in-core (push) Failing after 28m44s
Initial commit
2026-11-12 22:23:48 -05:00

14 lines
323 B
Plaintext

// B is FALSE, so X + 1 is never computed and X may be 127. The checker
// keeps "X + 1 fits INT8" as a fact anyway, and proves X <= 126 from it.
// INPUT: 127
// INPUT: FALSE
// MUST-NOT-PROVE: assert@13
DECLARE X : INT8
DECLARE B : BOOL
INPUT X
INPUT B
IF B AND X + 1 > 0 THEN
OUTPUT "positive"
ENDIF
ASSERT X <= 126