-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplification towards singleton intervals requires single variable
We must not blindly assume that that <exprA> and <exprB> in <exprA> >= C1 && !(<exprB> >= C2) are the same. Fixes: #7953
- Loading branch information
1 parent
f840cd0
commit 439bb2c
Showing
3 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include <assert.h> | ||
extern void __VERIFIER_assume(int cond); | ||
extern int __VERIFIER_nondet_int(void); | ||
int main() | ||
{ | ||
int z = __VERIFIER_nondet_int(); | ||
int k = __VERIFIER_nondet_int(); | ||
__VERIFIER_assume(1 < z); | ||
__VERIFIER_assume(1 <= z && k <= 1); | ||
assert(0); | ||
} |
10 changes: 10 additions & 0 deletions
10
regression/cbmc/simplify_singleton_interval_7953/test.desc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
CORE new-smt-backend | ||
main.c | ||
|
||
^VERIFICATION FAILED$ | ||
^EXIT=10$ | ||
^SIGNAL=0$ | ||
-- | ||
^warning: ignoring | ||
-- | ||
Simplification must not spuriously turn the second assumption into an equality. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters