Initial Problem

Start: f2
Program_Vars: Arg_0, Arg_1
Temp_Vars: C
Locations: f1, f2, f300
Transitions:
2:f2(Arg_0,Arg_1) -> f300(Arg_0,Arg_1)
0:f300(Arg_0,Arg_1) -> f1(Arg_0,C):|:Arg_0+1<=0
1:f300(Arg_0,Arg_1) -> f300(Arg_0-1,Arg_1):|:0<=Arg_0

Preprocessing

Eliminate variables {C,Arg_1} that do not contribute to the problem

Found invariant 1+Arg_0<=0 for location f1

Problem after Preprocessing

Start: f2
Program_Vars: Arg_0
Temp_Vars:
Locations: f1, f2, f300
Transitions:
7:f2(Arg_0) -> f300(Arg_0)
8:f300(Arg_0) -> f1(Arg_0):|:Arg_0+1<=0
9:f300(Arg_0) -> f300(Arg_0-1):|:0<=Arg_0

MPRF for transition 9:f300(Arg_0) -> f300(Arg_0-1):|:0<=Arg_0 of depth 1:

new bound:

Arg_0+1 {O(n)}

MPRF:

f300 [Arg_0+1 ]

All Bounds

Timebounds

Overall timebound:Arg_0+3 {O(n)}
7: f2->f300: 1 {O(1)}
8: f300->f1: 1 {O(1)}
9: f300->f300: Arg_0+1 {O(n)}

Costbounds

Overall costbound: Arg_0+3 {O(n)}
7: f2->f300: 1 {O(1)}
8: f300->f1: 1 {O(1)}
9: f300->f300: Arg_0+1 {O(n)}

Sizebounds

7: f2->f300, Arg_0: Arg_0 {O(n)}
8: f300->f1, Arg_0: 2*Arg_0+1 {O(n)}
9: f300->f300, Arg_0: Arg_0+1 {O(n)}