User: | Jiri Slaby |
Error type: | Reachable Error Location |
Error type description: | A specified error location is reachable in some program path |
File location: | loops/nec11_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} 7 8_Bool __VERIFIER_nondet_bool(); 9 10int main(){ 11 int a[5]; 12 int len=0; 13 _Bool c=__VERIFIER_nondet_bool(); 14 int i; 15 16 17 while(c){ 18 19 if (len==4) 20 len =0; 21 22 a[len]=0; 23 24 len++; 25 } 26 __VERIFIER_assert(len==5); 27 return 1; 28 29 30}