Trying to load file: main.koat Initial Control flow graph problem: Start location: start 0: eval -> eval : A'=-B+A, [ A>=1+B && A>=1 && B>=1 ], cost: 1 1: eval -> eval : A'=-B+A, [ B>=1+A && A>=1 && B>=1 && A>=1+B ], cost: 1 2: eval -> eval : B'=B-A, [ A>=1+B && A>=1 && B>=1 && B>=A ], cost: 1 3: eval -> eval : B'=B-A, [ B>=1+A && A>=1 && B>=1 && B>=A ], cost: 1 4: start -> eval : [], cost: 1 Simplified the transitions: Start location: start 0: eval -> eval : A'=-B+A, [ A>=1+B && A>=1 && B>=1 ], cost: 1 1: eval -> eval : A'=-B+A, [ B>=1+A && A>=1 && B>=1 && A>=1+B ], cost: 1 2: eval -> eval : B'=B-A, [ A>=1+B && A>=1 && B>=1 && B>=A ], cost: 1 3: eval -> eval : B'=B-A, [ B>=1+A && A>=1 && B>=1 ], cost: 1 4: start -> eval : [], cost: 1 Eliminating 4 self-loops for location eval Self-Loop 1 has unbounded runtime, resulting in the new transition 6. Self-Loop 2 has unbounded runtime, resulting in the new transition 7. Removing the self-loops: 0 1 2 3. Adding an epsilon transition (to model nonexecution of the loops): 9. Removed all Self-loops using metering functions (where possible): Start location: start 5: eval -> [2] : A'=-B+A, [ A>=1+B && A>=1 && B>=1 ], cost: 1 6: eval -> [2] : [ B>=1+A && A>=1 && B>=1 && A>=1+B ], cost: INF 7: eval -> [2] : [ A>=1+B && A>=1 && B>=1 && B>=A ], cost: INF 8: eval -> [2] : B'=B-A, [ B>=1+A && A>=1 && B>=1 ], cost: 1 9: eval -> [2] : [], cost: 0 4: start -> eval : [], cost: 1 Applied chaining over branches and pruning: Start location: start Final control flow graph problem, now checking costs for infinitely many models: Start location: start Computing complexity for remaining 0 transitions. The final runtime is determined by this resulting transition: Final Guard: Final Cost: 1 Obtained the following complexity w.r.t. the length of the input n: Complexity class: const Complexity value: 0 WORST_CASE(Omega(1),?)