Initial Problem

Start: f3
Program_Vars: Arg_0, Arg_1
Temp_Vars: C
Locations: f1, f3, f300
Transitions:
1:f1(Arg_0,Arg_1) -> f1(Arg_0-1,Arg_1):|:0<=Arg_0
2:f1(Arg_0,Arg_1) -> f300(Arg_0,C):|:Arg_0+1<=0
0:f3(Arg_0,Arg_1) -> f1(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: f1, f3, f300
Transitions:
6:f1(Arg_0) -> f1(Arg_0-1):|:0<=Arg_0
7:f1(Arg_0) -> f300(Arg_0):|:Arg_0+1<=0
8:f3(Arg_0) -> f1(Arg_0)

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

new bound:

Arg_0+1 {O(n)}

MPRF:

f1 [Arg_0+1 ]

All Bounds

Timebounds

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

Costbounds

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

Sizebounds

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