14 lines
323 B
Plaintext
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
|