// verifast_options{disable_overflow_check target:ILP32} extern void abort(void); //@ requires true; //@ ensures true; void reach_error() //@ requires false; //@ ensures true; {}extern unsigned int __VERIFIER_nondet_uint(void); //@ requires true; //@ ensures true; void __VERIFIER_assert(int cond) //@ requires (1 <= cond); //@ ensures (1 <= cond); { if (!(cond)) { ERROR: {reach_error();abort();} } return; } int main(void) //@ requires module(diamond_1_1__verifast_instrumented, true); //@ ensures junk(); { //@ open_module(); unsigned int x = 0; unsigned int y = __VERIFIER_nondet_uint(); while (x < 99) //@ invariant ((((x == 0) || (((y % 2) == 0) && ((x % 2) == 0))) || ((((x + 4294967295) % 4294967296) <= 98) && ((x % 2) == 0))) || ((((x + 4294967295) % 4294967296) <= 98) && ((x % 2) == (y % 2)))); { if (y % 2 == 0) { x += 2; } else { x++; } } __VERIFIER_assert((x % 2) == (y % 2)); return 0; }