Showing error 1538

User: Jiri Slaby
Error type: Reachable Error Location
Error type description: A specified error location is reachable in some program path
File location: loops/veris.c_sendmail__tTflag_arr_one_loop_safe.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}
 7int main (void)
 8{
 9  char in[11];
10  char *s;
11  unsigned char c;
12  unsigned int i, j;
13  int idx_in;
14  in[10] = 0;
15  idx_in = 0;
16  s = in;
17  i = 0;
18  c = in[idx_in];
19  while (('0' <= c) && (c <= '9'))
20  {
21    j = c - '0';
22    i = i * 10 + j;
23    idx_in++;
24    c = in[idx_in];
25  }
26
27  __VERIFIER_assert (i >= 0);
28  return 0;
29}