-
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.
No shortcut
meet
and narrow
w/ int refinement
- Loading branch information
1 parent
8336d28
commit 1116ef6
Showing
2 changed files
with
25 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,18 @@ | ||
// PARAM: --set ana.int.refinement fixpoint --enable ana.int.interval | ||
// FIXPOINT | ||
#include<assert.h> | ||
|
||
int g = 0; | ||
|
||
void main() | ||
{ | ||
int i = 0; | ||
while (1) { | ||
i++; | ||
for (int j=0; j < 10; j++) { | ||
if (i > 100) g = 1; | ||
} | ||
if (i>9) i=0; | ||
} | ||
return; | ||
} |