extern void abort(void); extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); void reach_error() { __assert_fail("0", "inv_square-2.c", 3, "reach_error"); } /* The assertion is correct. */ extern float __VERIFIER_nondet_float(void); extern void abort(void); void assume_abort_if_not(int cond) { if(!cond) {abort();} } void __VERIFIER_assert(int cond) { if (!(cond)) { ERROR: {reach_error();abort();} } return; } int main() { float x, y, z; x = __VERIFIER_nondet_float(); assume_abort_if_not(x >= -1.f && x <= 1.f); if (x <= -1e-20f || x >= 1e-20f) { y = x * x; __VERIFIER_assert(y != 0.f); z = 1.f / y; } return 0; }