-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
emit only non-negative refinementconstraints
- Loading branch information
1 parent
54595bd
commit 6bd7861
Showing
2 changed files
with
28 additions
and
3 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
19 changes: 19 additions & 0 deletions
19
tests/regression/77-lin2vareq/36-refinement-oppositebounds.c
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,19 @@ | ||
//SKIP PARAM: --enable ana.int.interval --set sem.int.signed_overflow assume_none | ||
// motivated from SVCOMP's terminator_02-1.c | ||
// checks, whether the lin2var interval refinement meddles with the wrong bounds | ||
|
||
#include <goblint.h> | ||
|
||
int main() | ||
{ | ||
int x; | ||
if(x<100) | ||
{ | ||
x=x; | ||
} | ||
__goblint_check(x<100); //UNKNOWN | ||
__goblint_check(x>=-2147483647); //FAIL | ||
return 0; | ||
} | ||
|
||
|