Trying to load file: main.koat Initial Control flow graph problem: Start location: f2 1: f1 -> f1 : A'=1+A, [ 499>=A ], cost: 1 0: f1 -> f3 : B'=free, [ A>=500 ], cost: 1 3: f2 -> f1 : A'=1+free_3, C'=free_3, [ 499>=free_3 ], cost: 1 2: f2 -> f3 : A'=free_1, B'=free_2, C'=free_1, [ free_1>=500 ], cost: 1 Simplified the transitions: Start location: f2 1: f1 -> f1 : A'=1+A, [ 499>=A ], cost: 1 3: f2 -> f1 : A'=1+free_3, C'=free_3, [ 499>=free_3 ], cost: 1 Eliminating 1 self-loops for location f1 Self-Loop 1 has the metering function: 500-A, resulting in the new transition 4. Removing the self-loops: 1. Removed all Self-loops using metering functions (where possible): Start location: f2 4: f1 -> [3] : A'=500, [ 499>=A ], cost: 500-A 3: f2 -> f1 : A'=1+free_3, C'=free_3, [ 499>=free_3 ], cost: 1 Applied simple chaining: Start location: f2 3: f2 -> [3] : A'=500, C'=free_3, [ 499>=free_3 && 499>=1+free_3 ], cost: 500-free_3 Final control flow graph problem, now checking costs for infinitely many models: Start location: f2 3: f2 -> [3] : A'=500, C'=free_3, [ 499>=free_3 && 499>=1+free_3 ], cost: 500-free_3 Computing complexity for remaining 1 transitions. Found configuration with infinitely models for cost: 500-free_3 and guard: 499>=free_3 && 499>=1+free_3: free_3: Neg Found new complexity INF, because: Found infinity configuration. The final runtime is determined by this resulting transition: Final Guard: 499>=free_3 && 499>=1+free_3 Final Cost: 500-free_3 Obtained the following complexity w.r.t. the length of the input n: Complexity class: INF Complexity value: INF WORST_CASE(INF,?)