// 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 extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); void reach_error() //@ requires false; //@ ensures true; { __assert_fail("0", "nested_4.c", 13, "reach_error"); } int main() //@ requires module(nested_4__verifast_instrumented_modified, true); //@ ensures junk(); { int a = 6; int b = 6; int c = 6; int d = 6; for(a = 0; a < 6; ++a)//@ invariant ((((b == 6) && (c == 6)) && (a <= 6)) && (d == 6)); { for(b = 0; b < 6; ++b)//@ invariant ((((c == 6) && (b <= 6)) && (d == 6)) && (a <= 5)); { for(c = 0; c < 6; ++c)//@ invariant (((((((((b <= 5) && (a <= 5)) && (c == 1)) || (((b <= 5) && (5 == c)) && (a <= 5))) || (((b <= 5) && (a <= 5)) && (c == 3))) || ((((c == 6) && (b <= 5)) && (d == 6)) && (a <= 5))) || (((b <= 5) && (c == 0)) && (a <= 5))) || (((b <= 5) && (c == 2)) && (a <= 5))) || (((b <= 5) && (c == 4)) && (a <= 5))); { for(d = 0; d < 6; ++d)//@ invariant (((((((((((((((b <= 5) && (5 == c)) && (d == 1)) && (a <= 5)) || ((((b <= 5) && (d == 3)) && (5 == c)) && (a <= 5))) || (((b <= 5) && (a <= 5)) && (c == 1))) || ((((d == 4) && (b <= 5)) && (5 == c)) && (a <= 5))) || ((((d == 0) && (b <= 5)) && (5 == c)) && (a <= 5))) || (((b <= 5) && (a <= 5)) && (c == 3))) || ((((b <= 5) && (5 == c)) && (d == 2)) && (a <= 5))) || (((b <= 5) && (c == 0)) && (a <= 5))) || ((((b <= 5) && (5 == c)) && (d == 6)) && (a <= 5))) || (((b <= 5) && (c == 2)) && (a <= 5))) || (((b <= 5) && (c == 4)) && (a <= 5))) || ((((b <= 5) && (5 == c)) && (5 == d)) && (a <= 5))); { } } } } if(!(a == 6 && b == 6 && c == 6 && d == 6 )) { reach_error(); } return 1; }