// verifast_options{disable_overflow_check target:ILP32} // This file is part of the SV-Benchmarks collection of verification tasks: // https://github.com/sosy-lab/sv-benchmarks // // This file was part of CPAchecker, // a tool for configurable software verification: // https://cpachecker.sosy-lab.org // // SPDX-FileCopyrightText: 2007-2020 Dirk Beyer // // SPDX-License-Identifier: Apache-2.0 void reach_error() //@ requires false; //@ ensures true; {} int main() //@ requires module(nested_2__verifast_instrumented, true); //@ ensures junk(); { //@ open_module(); int a = 6; int b = 6; for(a = 0; a < 6; ++a) //@ invariant ((b == 6) && (a <= 6)); { for(b = 0; b < 6; ++b) //@ invariant ((b <= 6) && (a <= 5)); { } } if(!(a == 6 && b == 6 )) { reach_error(); } return 1; }