Showing error 1547

User: Jiri Slaby
Error type: Reachable Error Location
Error type description: A specified error location is reachable in some program path
File location: loops/while_infinite_loop_4_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


Source:

 1void __VERIFIER_assert(int cond) {
 2  if (!(cond)) {
 3    ERROR: goto ERROR;
 4  }
 5  return;
 6}
 7
 8int x=0;
 9
10void eval(void)
11{
12  while (1) {
13      x=1;
14      break;
15  }
16  return;
17}
18
19
20int main() {
21
22  while(1)
23  {
24    eval();
25    __VERIFIER_assert(x==0);
26  }
27
28  __VERIFIER_assert(x==0);
29
30  return 0;
31}