-
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.
Split 82-widen/02-mihaila-widen-fig7-delay into two tests
- Loading branch information
Showing
3 changed files
with
20 additions
and
2 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
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 @@ | ||
// PARAM: --disable ana.int.def_exc --enable ana.int.interval --set ana.widen.delay.local 3 | ||
// From "Widening as Abstract Domain" slides: https://bytebucket.org/mihaila/bindead/wiki/resources/widening-talk.pdf | ||
// They claim delay 2, we need 3 for some reason. Why? | ||
#include <goblint.h> | ||
|
||
int main() { | ||
int x = 0; | ||
int y = 0; | ||
while (x < 100) { | ||
__goblint_check(0 <= y); | ||
__goblint_check(y <= 1); | ||
if (x > 5) | ||
y = 1; | ||
x = x + 4; | ||
} | ||
__goblint_check(0 <= y); | ||
__goblint_check(y <= 1); | ||
return 0; | ||
} |
File renamed without changes.