Initial Problem

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

Preprocessing

Problem after Preprocessing

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

Analysing control-flow refined program

Found invariant 1 ≤ X₀ for location n_l1___2

Found invariant X₀ ≤ 0 for location n_l1___1

Found invariant 1 ≤ X₀ for location n_l1___2

Found invariant X₀ ≤ 0 for location n_l1___1

Time-Bound by TWN-Loops:

TWN-Loops: t₄₇ 4⋅X₀+6 {O(n)}

TWN-Loops:

entry: t₄₉: l1(X₀) → n_l1___2(X₀-1) :|: 2 ≤ X₀
results in twn-loop: twn:Inv: [1 ≤ X₀] , (X₀) -> (X₀-1) :|: 1 ≤ X₀ ∧ 2 ≤ X₀
order: [X₀]
closed-form:
X₀: X₀ + [[n != 0]] * -1 * n^1

Termination: true
Formula:

1 < 0
∨ 1 < 0 ∧ 1 < X₀ ∧ 1 ≤ 0 ∧ 0 ≤ 1
∨ 1 < 0 ∧ 1 ≤ 0 ∧ 0 ≤ 1 ∧ 1 ≤ X₀ ∧ X₀ ≤ 1
∨ 2 < X₀ ∧ 1 ≤ 0 ∧ 0 ≤ 1 ∧ 1 < 0
∨ 2 < X₀ ∧ 1 < X₀ ∧ 1 ≤ 0 ∧ 0 ≤ 1
∨ 2 < X₀ ∧ 1 ≤ 0 ∧ 0 ≤ 1 ∧ 1 ≤ X₀ ∧ X₀ ≤ 1
∨ 1 ≤ 0 ∧ 0 ≤ 1 ∧ 2 ≤ X₀ ∧ X₀ ≤ 2 ∧ 1 < 0
∨ 2 ≤ X₀ ∧ X₀ ≤ 2 ∧ 1 < X₀ ∧ 1 ≤ 0 ∧ 0 ≤ 1
∨ 2 ≤ X₀ ∧ X₀ ≤ 2 ∧ 1 ≤ 0 ∧ 0 ≤ 1 ∧ 1 ≤ X₀ ∧ X₀ ≤ 1

Stabilization-Threshold for: 2 ≤ X₀
alphas_abs: X₀
M: 0
N: 1
Bound: 2⋅X₀+2 {O(n)}
Stabilization-Threshold for: 1 ≤ X₀
alphas_abs: X₀
M: 0
N: 1
Bound: 2⋅X₀+2 {O(n)}

relevant size-bounds w.r.t. t₄₉:
X₀: X₀ {O(n)}
Runtime-bound of t₄₉: 1 {O(1)}
Results in: 4⋅X₀+6 {O(n)}

4⋅X₀+6 {O(n)}

Found invariant 1 ≤ X₀ for location n_l1___2

Found invariant X₀ ≤ 0 for location n_l1___1

CFR did not improve the program. Rolling back

All Bounds

Timebounds

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

Costbounds

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

Sizebounds

t₀, X₀: X₀ {O(n)}
t₁, X₀: X₀ {O(n)}