예제 #1
0
void* thr1(void* arg){
  unsigned int l = 0;

  __VERIFIER_atomic_inc_r();
  if(r == 1){
    L3: s = s + 1;
    l = l + 1;
    assert(s == l);
    goto L3;
  }

  return 0;
}
void* thr1(void* arg){
  unsigned int l = 0;

  __VERIFIER_atomic_inc_r();
  if(r == 1){
    L3: /* invariant:
        l >= 0
        */
        s = s + 1;
    l = l + 1;
    /* assert not proved */
    assert(s == l);
    goto L3;
  }

  /* reachable */
  return 0;
}