This commit is contained in:
commit
568474d52f
1591 files changed
+528213
No files matched your search
@@ -0,0 +1,13 @@
|
||||
// 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
|
||||
Reference in new issue
Block a user