3.33/1.67 WORST_CASE(?, O(1)) 3.33/1.68 proof of /export/starexec/sandbox/benchmark/theBenchmark.koat 3.33/1.68 # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty 3.33/1.68 3.33/1.68 3.33/1.68 The runtime complexity of the given CpxIntTrs could be proven to be BOUNDS(1, 1). 3.33/1.68 3.33/1.68 (0) CpxIntTrs 3.33/1.68 (1) Koat Proof [FINISHED, 6 ms] 3.33/1.68 (2) BOUNDS(1, 1) 3.33/1.68 3.33/1.68 3.33/1.68 ---------------------------------------- 3.33/1.68 3.33/1.68 (0) 3.33/1.68 Obligation: 3.33/1.68 Complexity Int TRS consisting of the following rules: 3.33/1.68 f0(A) -> Com_1(f5(0)) :|: TRUE 3.33/1.68 f5(A) -> Com_1(f5(A + 1)) :|: 1 >= A 3.33/1.68 f5(A) -> Com_1(f13(A)) :|: A >= 2 && 0 >= B + 1 3.33/1.68 f5(A) -> Com_1(f13(A)) :|: A >= 2 3.33/1.68 3.33/1.68 The start-symbols are:[f0_1] 3.33/1.68 3.33/1.68 3.33/1.68 ---------------------------------------- 3.33/1.68 3.33/1.68 (1) Koat Proof (FINISHED) 3.33/1.68 YES(?, 5) 3.33/1.68 3.33/1.68 3.33/1.68 3.33/1.68 Initial complexity problem: 3.33/1.68 3.33/1.68 1: T: 3.33/1.68 3.33/1.68 (Comp: ?, Cost: 1) f0(ar_0) -> Com_1(f5(0)) 3.33/1.68 3.33/1.68 (Comp: ?, Cost: 1) f5(ar_0) -> Com_1(f5(ar_0 + 1)) [ 1 >= ar_0 ] 3.33/1.68 3.33/1.68 (Comp: ?, Cost: 1) f5(ar_0) -> Com_1(f13(ar_0)) [ ar_0 >= 2 /\ 0 >= b + 1 ] 3.33/1.68 3.33/1.68 (Comp: ?, Cost: 1) f5(ar_0) -> Com_1(f13(ar_0)) [ ar_0 >= 2 ] 3.33/1.68 3.33/1.68 (Comp: 1, Cost: 0) koat_start(ar_0) -> Com_1(f0(ar_0)) [ 0 <= 0 ] 3.33/1.68 3.33/1.68 start location: koat_start 3.33/1.68 3.33/1.68 leaf cost: 0 3.33/1.68 3.33/1.68 3.33/1.68 3.33/1.68 Repeatedly propagating knowledge in problem 1 produces the following problem: 3.33/1.68 3.33/1.68 2: T: 3.33/1.68 3.33/1.68 (Comp: 1, Cost: 1) f0(ar_0) -> Com_1(f5(0)) 3.33/1.68 3.33/1.68 (Comp: ?, Cost: 1) f5(ar_0) -> Com_1(f5(ar_0 + 1)) [ 1 >= ar_0 ] 3.33/1.68 3.33/1.68 (Comp: ?, Cost: 1) f5(ar_0) -> Com_1(f13(ar_0)) [ ar_0 >= 2 /\ 0 >= b + 1 ] 3.33/1.68 3.33/1.68 (Comp: ?, Cost: 1) f5(ar_0) -> Com_1(f13(ar_0)) [ ar_0 >= 2 ] 3.33/1.68 3.33/1.68 (Comp: 1, Cost: 0) koat_start(ar_0) -> Com_1(f0(ar_0)) [ 0 <= 0 ] 3.33/1.68 3.33/1.68 start location: koat_start 3.33/1.68 3.33/1.68 leaf cost: 0 3.33/1.68 3.33/1.68 3.33/1.68 3.33/1.68 A polynomial rank function with 3.33/1.68 3.33/1.68 Pol(f0) = 1 3.33/1.68 3.33/1.68 Pol(f5) = 1 3.33/1.68 3.33/1.68 Pol(f13) = 0 3.33/1.68 3.33/1.68 Pol(koat_start) = 1 3.33/1.68 3.33/1.68 orients all transitions weakly and the transitions 3.33/1.68 3.33/1.68 f5(ar_0) -> Com_1(f13(ar_0)) [ ar_0 >= 2 /\ 0 >= b + 1 ] 3.33/1.68 3.33/1.68 f5(ar_0) -> Com_1(f13(ar_0)) [ ar_0 >= 2 ] 3.33/1.68 3.33/1.68 strictly and produces the following problem: 3.33/1.68 3.33/1.68 3: T: 3.33/1.68 3.33/1.68 (Comp: 1, Cost: 1) f0(ar_0) -> Com_1(f5(0)) 3.33/1.68 3.33/1.68 (Comp: ?, Cost: 1) f5(ar_0) -> Com_1(f5(ar_0 + 1)) [ 1 >= ar_0 ] 3.33/1.68 3.33/1.68 (Comp: 1, Cost: 1) f5(ar_0) -> Com_1(f13(ar_0)) [ ar_0 >= 2 /\ 0 >= b + 1 ] 3.33/1.68 3.33/1.68 (Comp: 1, Cost: 1) f5(ar_0) -> Com_1(f13(ar_0)) [ ar_0 >= 2 ] 3.33/1.68 3.33/1.68 (Comp: 1, Cost: 0) koat_start(ar_0) -> Com_1(f0(ar_0)) [ 0 <= 0 ] 3.33/1.68 3.33/1.68 start location: koat_start 3.33/1.68 3.33/1.68 leaf cost: 0 3.33/1.68 3.33/1.68 3.33/1.68 3.33/1.68 A polynomial rank function with 3.33/1.68 3.33/1.68 Pol(f0) = 2 3.33/1.68 3.33/1.68 Pol(f5) = -V_1 + 2 3.33/1.68 3.33/1.68 Pol(f13) = -V_1 3.33/1.68 3.33/1.68 Pol(koat_start) = 2 3.33/1.68 3.33/1.68 orients all transitions weakly and the transition 3.33/1.68 3.33/1.68 f5(ar_0) -> Com_1(f5(ar_0 + 1)) [ 1 >= ar_0 ] 3.33/1.68 3.33/1.68 strictly and produces the following problem: 3.33/1.68 3.33/1.68 4: T: 3.33/1.68 3.33/1.68 (Comp: 1, Cost: 1) f0(ar_0) -> Com_1(f5(0)) 3.33/1.68 3.33/1.68 (Comp: 2, Cost: 1) f5(ar_0) -> Com_1(f5(ar_0 + 1)) [ 1 >= ar_0 ] 3.33/1.68 3.33/1.68 (Comp: 1, Cost: 1) f5(ar_0) -> Com_1(f13(ar_0)) [ ar_0 >= 2 /\ 0 >= b + 1 ] 3.33/1.68 3.33/1.68 (Comp: 1, Cost: 1) f5(ar_0) -> Com_1(f13(ar_0)) [ ar_0 >= 2 ] 3.33/1.68 3.33/1.68 (Comp: 1, Cost: 0) koat_start(ar_0) -> Com_1(f0(ar_0)) [ 0 <= 0 ] 3.33/1.68 3.33/1.68 start location: koat_start 3.33/1.68 3.33/1.68 leaf cost: 0 3.33/1.68 3.33/1.68 3.33/1.68 3.33/1.68 Complexity upper bound 5 3.33/1.68 3.33/1.68 3.33/1.68 3.33/1.68 Time: 0.052 sec (SMT: 0.050 sec) 3.33/1.68 3.33/1.68 3.33/1.68 ---------------------------------------- 3.33/1.68 3.33/1.68 (2) 3.33/1.68 BOUNDS(1, 1) 3.33/1.69 EOF