Start: l0
Program_Vars: X₀, X₁
Temp_Vars: C
Locations: l0, l1, l2
Transitions:
t₀: l0(X₀, X₁) → l1(C, 0)
t₁: l1(X₀, X₁) → l1(X₀, X₁+1) :|: X₁ ≤ 9
t₂: l1(X₀, X₁) → l2(X₀, X₁) :|: 10 ≤ X₁
Eliminate variables {C,X₀} that do not contribute to the problem
Found invariant X₁ ≤ 10 ∧ 10 ≤ X₁ for location l2
Found invariant X₁ ≤ 10 ∧ 0 ≤ X₁ for location l1
Start: l0
Program_Vars: X₁
Temp_Vars:
Locations: l0, l1, l2
Transitions:
t₇: l0(X₁) → l1(0)
t₈: l1(X₁) → l1(X₁+1) :|: X₁ ≤ 9 ∧ X₁ ≤ 10 ∧ 0 ≤ X₁
t₉: l1(X₁) → l2(X₁) :|: 10 ≤ X₁ ∧ X₁ ≤ 10 ∧ 0 ≤ X₁
new bound:
10 {O(1)}
MPRF:
l1 [10-X₁ ]
Overall timebound:12 {O(1)}
t₇: 1 {O(1)}
t₈: 10 {O(1)}
t₉: 1 {O(1)}
Overall costbound: 12 {O(1)}
t₇: 1 {O(1)}
t₈: 10 {O(1)}
t₉: 1 {O(1)}
t₇, X₁: 0 {O(1)}
t₈, X₁: 10 {O(1)}
t₉, X₁: 10 {O(1)}