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