Exemple #1
0
int main()
{
    int i,j,x,y;
    i = __VERIFIER_NONDET();
    j = __VERIFIER_NONDET();

    if (i >0 && j >0)
    {
        x=i;
        y=j;
        while (x!=0) {
            x--;
            y--;
        }
        if (i==j)
            assert (y == 0);
    }
    return 42;
}
Exemple #2
0
int main(){
  int x=0;
  int y=0;
  while (x < 100) {
    if (__VERIFIER_NONDET()) y=1;
    x = x + 4;
  }

  if (!(y >= 0 && y <= 1))
    goto ERR;
  if (!(x <= 103))
    goto ERR;
  
SAFE: goto SAFE;
ERR: return 42;
}