Initial Problem

Start: f300
Program_Vars: X₀, X₁
Temp_Vars: C
Locations: f1, f2, f300
Transitions:
t₀: f2(X₀, X₁) → f1(X₀-1, C) :|: X₀ ≤ 0
t₁: f2(X₀, X₁) → f2(X₀-1, X₁) :|: 1 ≤ X₀
t₂: f300(X₀, X₁) → f2(X₀, X₁)

Preprocessing

Eliminate variables [C; X₁] that do not contribute to the problem

Found invariant 1+X₀ ≤ 0 for location f1

Problem after Preprocessing

Start: f300
Program_Vars: X₀
Temp_Vars:
Locations: f1, f2, f300
Transitions:
t₅: f2(X₀) → f1(X₀-1) :|: X₀ ≤ 0
t₆: f2(X₀) → f2(X₀-1) :|: 1 ≤ X₀
t₇: f300(X₀) → f2(X₀)

MPRF for transition t₆: f2(X₀) → f2(X₀-1) :|: 1 ≤ X₀ of depth 1:

new bound:

X₀ {O(n)}

MPRF:

• f2: [X₀]

All Bounds

Timebounds

Overall timebound:X₀+2 {O(n)}
t₅: 1 {O(1)}
t₆: X₀ {O(n)}
t₇: 1 {O(1)}

Costbounds

Overall costbound: X₀+2 {O(n)}
t₅: 1 {O(1)}
t₆: X₀ {O(n)}
t₇: 1 {O(1)}

Sizebounds

t₅, X₀: 2⋅X₀+2 {O(n)}
t₆, X₀: X₀ {O(n)}
t₇, X₀: X₀ {O(n)}