User: | Jiri Slaby |
Error type: | Reachable Error Location |
Error type description: | A specified error location is reachable in some program path |
File location: | loops/terminator_02_unsafe.i |
Line in file: | 3 |
Project: | SV-COMP 2013 |
Project version: | 2.6.28 |
Tools: |
Manual Work
|
Entered: | 2013-01-17 16:57:54 UTC |
1void __VERIFIER_assert(int cond) { 2 if (!(cond)) { 3 ERROR: goto ERROR; 4 } 5 return; 6} 7int __VERIFIER_nondet_int(); 8_Bool __VERIFIER_nondet_bool(); 9 10main() 11{ 12 int x=__VERIFIER_nondet_int(); 13 int y=__VERIFIER_nondet_int(); 14 int z=__VERIFIER_nondet_int(); 15 16 while(x<100 && 100<z) 17 { 18 _Bool tmp=__VERIFIER_nondet_bool(); 19 if (tmp) 20 { 21 x++; 22 } 23 else 24 { 25 x--; 26 z--; 27 } 28 } 29 30 __VERIFIER_assert(0); 31}