// verifast_options{disable_overflow_check target:ILP32} extern void abort(void); //@ requires true; //@ ensures true; void reach_error() //@ requires false; //@ ensures true; {}void assume_abort_if_not(int cond) //@ requires true; //@ ensures true; { if(!cond) {abort();} } void __VERIFIER_assert(int cond) //@ requires (cond != 0); //@ ensures (cond != 0); { if (!(cond)) { ERROR: {reach_error();abort();} } return; } int __VERIFIER_nondet_int(); //@ requires true; //@ ensures true; int main () { //@ open_module(); int MAXPATHLEN; int pathbuf_off; int bound_off; int glob2_p_off; int glob2_pathbuf_off; int glob2_pathlim_off; MAXPATHLEN = __VERIFIER_nondet_int(); if(MAXPATHLEN > 0 && MAXPATHLEN < 2147483647); else goto END; pathbuf_off = 0; bound_off = pathbuf_off + (MAXPATHLEN + 1) - 1; glob2_pathbuf_off = pathbuf_off; glob2_pathlim_off = bound_off; for (glob2_p_off = glob2_pathbuf_off; glob2_p_off <= glob2_pathlim_off; glob2_p_off++) //@ invariant ((glob2_pathlim_off <= MAXPATHLEN) && (0 <= glob2_p_off)); { __VERIFIER_assert (0 <= glob2_p_off ); __VERIFIER_assert (glob2_p_off < MAXPATHLEN + 1); } END: return 0; }