Initial Problem

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

Preprocessing

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

Found invariant 0 ≤ X₁ ∧ 0 ≤ X₀+X₁ ∧ X₀ ≤ X₁ ∧ X₀ ≤ 0 ∧ 0 ≤ X₀ for location l2

Found invariant X₀ ≤ X₁ for location l1

Problem after Preprocessing

Start: l0
Program_Vars: X₀, X₁, X₂
Temp_Vars:
Locations: l0, l1, l2
Transitions:
t₁₅: l0(X₀, X₁, X₂) → l1(X₁, X₁, X₂)
t₁₆: l1(X₀, X₁, X₂) → l1(X₀-1, X₁, X₂) :|: X₀+1 ≤ 0 ∧ X₀ ≤ X₁
t₁₇: l1(X₀, X₁, X₂) → l1(X₀-1, X₁, X₂) :|: 1 ≤ X₀ ∧ X₀ ≤ X₁
t₁₈: l1(X₀, X₁, X₂) → l2(0, X₁, X₂) :|: X₁+1 ≤ X₂ ∧ X₀ ≤ 0 ∧ 0 ≤ X₀ ∧ X₀ ≤ X₁
t₁₉: l1(X₀, X₁, X₂) → l2(0, X₁, X₂) :|: 1+X₂ ≤ X₁ ∧ X₀ ≤ 0 ∧ 0 ≤ X₀ ∧ X₀ ≤ X₁
t₂₀: l1(X₀, X₁, X₂) → l2(0, X₁, X₁) :|: X₀ ≤ 0 ∧ 0 ≤ X₀ ∧ X₁ ≤ X₂ ∧ X₂ ≤ X₁ ∧ X₀ ≤ X₁

MPRF for transition t₁₇: l1(X₀, X₁, X₂) → l1(X₀-1, X₁, X₂) :|: 1 ≤ X₀ ∧ X₀ ≤ X₁ of depth 1:

new bound:

X₁ {O(n)}

Analysing control-flow refined program

Cut unsatisfiable transition t₈₆: n_l1___2→l2

Cut unsatisfiable transition t₈₈: n_l1___2→l2

Cut unsatisfiable transition t₉₀: n_l1___2→l2

Found invariant 0 ≤ X₁ ∧ 0 ≤ X₀+X₁ ∧ X₀ ≤ X₁ ∧ X₀ ≤ 0 ∧ 0 ≤ X₀ for location l2

Found invariant 1+X₁ ≤ 0 ∧ 3+X₀+X₁ ≤ 0 ∧ 1+X₀ ≤ X₁ ∧ 2+X₀ ≤ 0 for location n_l1___2

Found invariant X₁ ≤ X₀ ∧ X₀ ≤ X₁ for location l1

Found invariant 1 ≤ X₁ ∧ 1 ≤ X₀+X₁ ∧ 1+X₀ ≤ X₁ ∧ 0 ≤ X₀ for location n_l1___1

MPRF for transition t₇₁: n_l1___1(X₀, X₁, X₂) → n_l1___1(X₀-1, X₁, X₂) :|: 0 ≤ X₀ ∧ 1+X₀ ≤ X₁ ∧ 1 ≤ X₀ ∧ X₀ ≤ X₁ ∧ X₀ ≤ X₁ ∧ 1 ≤ X₁ ∧ 1 ≤ X₀+X₁ ∧ 1+X₀ ≤ X₁ ∧ 0 ≤ X₀ of depth 1:

new bound:

X₁+1 {O(n)}

CFR did not improve the program. Rolling back

CFR did not improve the program. Rolling back

All Bounds

Timebounds

Overall timebound:inf {Infinity}
t₁₅: 1 {O(1)}
t₁₆: inf {Infinity}
t₁₇: X₁ {O(n)}
t₁₈: 1 {O(1)}
t₁₉: 1 {O(1)}
t₂₀: 1 {O(1)}

Costbounds

Overall costbound: inf {Infinity}
t₁₅: 1 {O(1)}
t₁₆: inf {Infinity}
t₁₇: X₁ {O(n)}
t₁₈: 1 {O(1)}
t₁₉: 1 {O(1)}
t₂₀: 1 {O(1)}

Sizebounds

t₁₅, X₀: X₁ {O(n)}
t₁₅, X₁: X₁ {O(n)}
t₁₅, X₂: X₂ {O(n)}
t₁₆, X₁: X₁ {O(n)}
t₁₆, X₂: X₂ {O(n)}
t₁₇, X₀: X₁ {O(n)}
t₁₇, X₁: X₁ {O(n)}
t₁₇, X₂: X₂ {O(n)}
t₁₈, X₀: 0 {O(1)}
t₁₈, X₁: 2⋅X₁ {O(n)}
t₁₈, X₂: 2⋅X₂ {O(n)}
t₁₉, X₀: 0 {O(1)}
t₁₉, X₁: 2⋅X₁ {O(n)}
t₁₉, X₂: 2⋅X₂ {O(n)}
t₂₀, X₀: 0 {O(1)}
t₂₀, X₁: 2⋅X₁ {O(n)}
t₂₀, X₂: 2⋅X₁ {O(n)}