// verifast_options{disable_overflow_check target:ILP32} extern void abort(void); //@ requires true; //@ ensures true; void reach_error() //@ requires false; //@ ensures true; {}void assume_abort_if_not(int cond) //@ requires true; //@ ensures true; { if(!cond) {abort();} } void __VERIFIER_assert(int cond) //@ requires (cond != 0); //@ ensures (cond != 0); { if (!(cond)) { ERROR: {reach_error();abort();} } return; } int __VERIFIER_nondet_int(); int main() //@ requires module(gj2007b__verifast_instrumented, true); //@ ensures junk(); { //@ open_module(); int x = 0; int m = 0; int n = __VERIFIER_nondet_int(); while(x < n) //@ invariant ((((m < n) || (n < 1)) && (0 <= m)) && (0 <= x)); { if(__VERIFIER_nondet_int()) //@ requires true; //@ ensures true; { m = x; } x = x + 1; } __VERIFIER_assert((m >= 0 || n <= 0)); __VERIFIER_assert((m < n || n <= 0)); return 0; }