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