Trying to load file: main.koat Initial Control flow graph problem: Start location: start 0: eval -> eval : B'=1+B, E'=1+E, [ A>=1+B && C>=1+D ], cost: 1 1: eval -> eval : D'=1+D, E'=1+E, [ A>=1+B && C>=1+D ], cost: 1 2: eval -> eval : D'=1+D, E'=1+E, [ B>=A && C>=1+D ], cost: 1 3: eval -> eval : B'=1+B, E'=1+E, [ A>=1+B && D>=C ], cost: 1 4: start -> eval : [], cost: 1 Eliminating 4 self-loops for location eval Self-Loop 0 has the metering function: -B+A, resulting in the new transition 5. Self-Loop 1 has the metering function: C-D, resulting in the new transition 6. Self-Loop 2 has the metering function: C-D, resulting in the new transition 7. Self-Loop 3 has the metering function: -B+A, resulting in the new transition 8. Found this metering function when nesting loops: -1-B+A, Found this metering function when nesting loops: -1+C-D, Removing the self-loops: 0 1 2 3. Removed all Self-loops using metering functions (where possible): Start location: start 5: eval -> [2] : B'=A, E'=E-B+A, [ A>=1+B && C>=1+D ], cost: -B+A 6: eval -> [2] : D'=C, E'=E+C-D, [ A>=1+B && C>=1+D ], cost: C-D 7: eval -> [2] : D'=C, E'=E+C-D, [ B>=A && C>=1+D ], cost: C-D 8: eval -> [2] : B'=A, E'=E-B+A, [ A>=1+B && D>=C ], cost: -B+A 4: start -> eval : [], cost: 1 Applied chaining over branches and pruning: Start location: start 9: start -> [2] : B'=A, E'=E-B+A, [ A>=1+B && C>=1+D ], cost: 1-B+A 10: start -> [2] : D'=C, E'=E+C-D, [ A>=1+B && C>=1+D ], cost: 1+C-D 11: start -> [2] : D'=C, E'=E+C-D, [ B>=A && C>=1+D ], cost: 1+C-D 12: start -> [2] : B'=A, E'=E-B+A, [ A>=1+B && D>=C ], cost: 1-B+A Final control flow graph problem, now checking costs for infinitely many models: Start location: start 9: start -> [2] : B'=A, E'=E-B+A, [ A>=1+B && C>=1+D ], cost: 1-B+A 10: start -> [2] : D'=C, E'=E+C-D, [ A>=1+B && C>=1+D ], cost: 1+C-D 11: start -> [2] : D'=C, E'=E+C-D, [ B>=A && C>=1+D ], cost: 1+C-D 12: start -> [2] : B'=A, E'=E-B+A, [ A>=1+B && D>=C ], cost: 1-B+A Computing complexity for remaining 4 transitions. Found configuration with infinitely models for cost: 1-B+A and guard: A>=1+B && C>=1+D: B: Pos, C: Pos, D: Pos, A: Pos, where: C > D A > B Found new complexity n^1, because: Found infinity configuration. The final runtime is determined by this resulting transition: Final Guard: A>=1+B && C>=1+D Final Cost: 1-B+A Obtained the following complexity w.r.t. the length of the input n: Complexity class: n^1 Complexity value: 1 WORST_CASE(Omega(n^1),?)