// 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 (1 <= cond); //@ ensures (1 <= cond); { if (!(cond)) { ERROR: {reach_error();abort();} } return; } extern char __VERIFIER_nondet_char(); //@ requires true; //@ ensures true; int main() //@ requires module(string_1__verifast_instrumented, true); //@ ensures junk(); { //@ open_module(); char string_A[5], string_B[5]; int i, j, nc_A, nc_B, found=0; for(i=0; i<5; i++) string_A[i]=__VERIFIER_nondet_char(); if (!(string_A[5 -1]=='\0')) return 0; for(i=0; i<5; i++) string_B[i]=__VERIFIER_nondet_char(); if (!(string_B[5 -1]=='\0')) return 0; nc_A = 0; while(string_A[nc_A]!='\0') nc_A++; nc_B = 0; while(string_B[nc_B]!='\0') nc_B++; if (!(nc_B >= nc_A)) return 0; i=j=0; while((inc_B-1); __VERIFIER_assert(found == 0 || found == 1); return 0; }