// S : tags error c sym $TAGS // S : expect --result error --location-comment ERROR // S : cc -o test.bc $CC_OPT $file // S : verify --symbolic --solver $solver --sequential -o nofail:malloc $V_OPT test.bc extern void __VERIFIER_error() __attribute__ ((__noreturn__)); extern void __VERIFIER_assert(int); extern void __VERIFIER_assume(int); extern unsigned int __VERIFIER_nondet_uint(void); int main(void) { unsigned int x = 1; unsigned int y = __VERIFIER_nondet_uint(); if (!(y > 0)) return 0; while (x < y) { if (x < y / x) { x *= x; } else { x++; } } __VERIFIER_assert(x != y); /* ERROR */ }