// 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 // // It was automatically generated from 'ps3-ll.c' with https://github.com/FlorianDyck/semtransforms // To reproduce it you can use the following command: // python run_transformations.py [insert path here]ps3-ll.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 short __VERIFIER_nondet_short(void); //@ requires true; //@ ensures true; void assume_abort_if_not(int cond) //@ requires true; //@ ensures true; { if (!cond) { abort(); } else { } } void __VERIFIER_assert(int cond) //@ requires (1 <= cond); //@ ensures (1 <= cond); { if (!cond) { ERROR: { reach_error(); } } else { } return; } void func_to_recursive_line_26_to_34_0(long long *y, short *k, long long *c, long long *x) //@ requires true; //@ ensures true; { if (1) { { __VERIFIER_assert(((((6 * (*x)) - (((2 * (*y)) * (*y)) * (*y))) - ((3 * (*y)) * (*y))) - (*y)) == 0); if (!((*c) < (*k))) { return; } else { } *c = (*c) + 1; *y = (*y) + 1; *x = ((*y) * (*y)) + (*x); } func_to_recursive_line_26_to_34_0(y, k, c, x); } else { } } int main() //@ requires module(recursified_ps3_ll__verifast_instrumented, true); //@ ensures junk(); { //@ open_module(); short k; long long y; long long x; long long c; k = __VERIFIER_nondet_short(); y = 0; x = 0; c = 0; func_to_recursive_line_26_to_34_0(&y, &k, &c, &x); __VERIFIER_assert(((((6 * x) - (((2 * y) * y) * y)) - ((3 * y) * y)) - y) == 0); return 0; }