extern void abort(void); #include void reach_error() { assert(0); } void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: {reach_error();abort();} } } void *malloc(unsigned int size); extern int __VERIFIER_nondet_int(void); #define SIZE 1000000 #define NULL 0 struct S { int *n; }; struct S s[SIZE]; int main() { int i; int c=__VERIFIER_nondet_int(); for(i = 0; i < SIZE; i++) { if(c > 5) break; s[i].n = malloc(sizeof(int)); } for(i = 0; i < SIZE; i++) { if(c <= 5) __VERIFIER_assert(s[i].n != NULL); } return 0; }