// S : tags c sym big $TAGS // S : expect --result valid // 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(void); extern void __VERIFIER_assume(int); void __VERIFIER_assert(int cond) { if (!(cond)) { ERROR: __VERIFIER_error(); } return; } int __VERIFIER_nondet_int(); #define LARGE_INT 1000000 int main() { int n; int i = 0; int k = 0; n = __VERIFIER_nondet_int(); while( i < n ) { i++; k++; } int j = 0; while( j < n ) { __VERIFIER_assert (k > 0); j++; k--; } }