void abort() { }; extern unsigned int __VERIFIER_nondet_uint(); /*@ requires ((1 <= cond)) && (cond != 0); ensures ((1 <= cond)) && (1); @*/ void __VERIFIER_assert(int cond) { if (!(cond)) { ERROR: {/*@ assert(0); */;abort();} } return; } int main() { unsigned int x = 0; unsigned int y = __VERIFIER_nondet_uint(); /*@ loop invariant ((((x == 0) || (((y % 2) != 0) && (((long long) 5 + x) == 0))) || (((y % 2) == 0) && ((x % 2) == 0)))); @*/ while (x < 99) { if (y % 2 == 0) x += 2; else x++; if (y % 2 == 0) x += 2; else x -= 2; if (y % 2 == 0) x += 2; else x += 2; if (y % 2 == 0) x += 2; else x -= 2; if (y % 2 == 0) x += 2; else x += 2; if (y % 2 == 0) x += 2; else x -= 4; if (y % 2 == 0) x += 2; else x += 4; if (y % 2 == 0) x += 2; else x += 2; if (y % 2 == 0) x += 2; else x -= 4; if (y % 2 == 0) x += 2; else x -= 4; } __VERIFIER_assert((x % 2) == (y % 2)); }