// verifast_options{disable_overflow_check target:ILP32} // This file is part of the SV-Benchmarks collection of verification tasks: // https://gitlab.com/sosy-lab/benchmarking/sv-benchmarks // // SPDX-FileCopyrightText: 2019 Dirk Beyer and Matthias Dangl // // SPDX-License-Identifier: Apache-2.0 // It was automatically generated from 'const.c' with https://github.com/FlorianDyck/semtransforms // To reproduce it you can use the following command: // python run_transformations.py [insert path here]const.c -o . --pretty_names --trace to_recursive:0 // in case the newest version cannot recreate this file, the commit hash of the used version is 869b5a9 extern void abort(void); //@ requires true; //@ ensures true; void reach_error() //@ requires false; //@ ensures true; {} extern unsigned int __VERIFIER_nondet_uint(void); void __VERIFIER_assert(int cond) //@ requires (cond != 0); //@ ensures (cond != 0); { if (!cond) { ERROR: { reach_error(); abort(); } } else { } return; } void func_to_recursive_line_13_to_18_0(unsigned int *s) //@ requires true; //@ ensures true; { if (__VERIFIER_nondet_uint()) //@ requires true; //@ ensures true; { { if ((*s) != 0) { ++(*s); } else { } if (__VERIFIER_nondet_uint()) { __VERIFIER_assert((*s) == 0); } else { } } func_to_recursive_line_13_to_18_0(s); } else { } } int main(void) //@ requires module(recursified_const__verifast_instrumented, true); //@ ensures junk(); { //@ open_module(); unsigned int s = 0; func_to_recursive_line_13_to_18_0(&s); return 0; }