Showing error 2198

User: Jiri Slaby
Error type: Reachable Error Location
Error type description: A specified error location is reachable in some program path
File location: pthread/queue_unsafe.cil.c
Line in file: 461
Project: SV-COMP 2013
Project version: 2.6.28
Tools: Manual Work
Entered: 2013-01-17 16:57:54 UTC


Source:

431      value = nondet_int();
432#line 108
433      enqueue(& queue, value);
434#line 109
435      __cil_tmp8 = i + 1;
436#line 109
437      __cil_tmp9 = __cil_tmp8 * 4U;
438#line 109
439      __cil_tmp10 = (unsigned int )(stored_elements) + __cil_tmp9;
440#line 109
441      *((int *)__cil_tmp10) = value;
442#line 110
443      enqueue_flag = (_Bool)0;
444#line 111
445      dequeue_flag = (_Bool)1;
446      }
447    } else {
448
449    }
450    {
451#line 113
452    pthread_mutex_unlock(& m);
453#line 102
454    i = i + 1;
455    }
456  }
457  while_0_break: /* CIL Label */ ;
458  }
459#line 116
460  return ((void *)0);
461  ERROR: ;
462#line 120
463  return ((void *)0);
464}
465}
466#line 122 "queue_bad.c"
467void *t2(void *arg ) 
468{ int i ;
469  int tmp ;
470  int tmp___0 ;
471  unsigned int __cil_tmp5 ;
Show full sources