// S : tags error sym c $TAGS // S : expect --result error --location-comment ERROR // S : cc -o test.bc $CC_OPT $file // S : verify --symbolic --solver $solver --sequential $V_OPT test.bc extern unsigned int __VERIFIER_nondet_uint(void); extern void __VERIFIER_error(void); unsigned int id(unsigned int x) { if (x==0) return 0; return id(x-1) + 1; } int main(void) { unsigned int input = __VERIFIER_nondet_uint(); unsigned int result = id(input); if (result == 10) { ERROR: __VERIFIER_error(); /* ERROR */ } }