Initial Problem

Start: l0
Program_Vars: X₀, X₁
Temp_Vars:
Locations: l0, l1, l2
Transitions:
t₀: l0(X₀, X₁) → l1(0, X₁)
t₁: l1(X₀, X₁) → l1(X₀, X₁-1) :|: 1 ≤ X₁
t₃: l1(X₀, X₁) → l2(-1, X₁) :|: X₁ ≤ 0
t₂: l2(X₀, X₁) → l2(X₀, X₁)

Preprocessing

Eliminate variables {X₀} that do not contribute to the problem

Found invariant X₁ ≤ 0 for location l2

Problem after Preprocessing

Start: l0
Program_Vars: X₁
Temp_Vars:
Locations: l0, l1, l2
Transitions:
t₁₀: l0(X₁) → l1(X₁)
t₁₁: l1(X₁) → l1(X₁-1) :|: 1 ≤ X₁
t₁₂: l1(X₁) → l2(X₁) :|: X₁ ≤ 0
t₁₃: l2(X₁) → l2(X₁) :|: X₁ ≤ 0

MPRF for transition t₁₁: l1(X₁) → l1(X₁-1) :|: 1 ≤ X₁ of depth 1:

new bound:

X₁ {O(n)}

MPRF:

l1 [X₁ ]

Analysing control-flow refined program

Found invariant X₁ ≤ 0 for location l2

CFR did not improve the program. Rolling back

All Bounds

Timebounds

Overall timebound:inf {Infinity}
t₁₀: 1 {O(1)}
t₁₁: X₁ {O(n)}
t₁₂: 1 {O(1)}
t₁₃: inf {Infinity}

Costbounds

Overall costbound: inf {Infinity}
t₁₀: 1 {O(1)}
t₁₁: X₁ {O(n)}
t₁₂: 1 {O(1)}
t₁₃: inf {Infinity}

Sizebounds

t₁₀, X₁: X₁ {O(n)}
t₁₁, X₁: X₁ {O(n)}
t₁₂, X₁: 2⋅X₁ {O(n)}
t₁₃, X₁: 2⋅X₁ {O(n)}