-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7d3d9bc
commit 57aae56
Showing
3 changed files
with
23 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
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,20 @@ | ||
extern unsigned int __VERIFIER_nondet_uint(); | ||
int main() { | ||
int i = 0; | ||
do{ | ||
unsigned int add = __VERIFIER_nondet_uint(); | ||
switch(add) { | ||
case 0: | ||
break; | ||
case 1: | ||
i += add; | ||
break; | ||
default: | ||
i += 1; | ||
break; | ||
} | ||
if ( i == 5) continue; | ||
if ( i == 11) break; | ||
} while(i < 10); | ||
if(i < 10) reach_error(); | ||
} |