Initial Problem

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

Preprocessing

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

Found invariant 1+Arg_0<=0 for location f300

Problem after Preprocessing

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

MPRF for transition 6:f2(Arg_0) -> f2(Arg_0-1):|:1<=Arg_0 of depth 1:

new bound:

Arg_0 {O(n)}

MPRF:

f2 [Arg_0 ]

All Bounds

Timebounds

Overall timebound:Arg_0+2 {O(n)}
6: f2->f2: Arg_0 {O(n)}
7: f2->f300: 1 {O(1)}
8: f3->f2: 1 {O(1)}

Costbounds

Overall costbound: Arg_0+2 {O(n)}
6: f2->f2: Arg_0 {O(n)}
7: f2->f300: 1 {O(1)}
8: f3->f2: 1 {O(1)}

Sizebounds

6: f2->f2, Arg_0: Arg_0 {O(n)}
7: f2->f300, Arg_0: 2*Arg_0+2 {O(n)}
8: f3->f2, Arg_0: Arg_0 {O(n)}