// verifast_options{disable_overflow_check target:ILP32} extern void abort(void);//@ requires true; //@ ensures true; extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); void reach_error() //@ requires false; //@ ensures true; { __assert_fail("0", "simple_3-2.c", 3, "reach_error"); } extern unsigned short __VERIFIER_nondet_ushort(void);//@ requires true; //@ ensures true; void __VERIFIER_assert(int cond) //@ requires (cond != 0); //@ ensures (cond != 0); { if (!(cond)) { ERROR: {reach_error();abort();} } return; } int main(void) //@ requires module(simple_3_2__verifast_instrumented_modified, true); //@ ensures junk(); { unsigned int x = 0; unsigned short N = __VERIFIER_nondet_ushort(); while (x < N)//@ invariant ((x % 2) == 0); { x += 2; } __VERIFIER_assert(!(x % 2)); }