/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: 794c25de1cacf0d048858bcd21c9a779e1221865 marcel 20200619 unpublished dirty The runtime complexity of the given CpxIntTrs could be proven to be BOUNDS(1, 1). (0) CpxIntTrs (1) Koat Proof [FINISHED, 37 ms] (2) BOUNDS(1, 1) ---------------------------------------- (0) Obligation: Complexity Int TRS consisting of the following rules: f0(A, B) -> Com_1(f6(0, C)) :|: TRUE f6(A, B) -> Com_1(f6(A + 1, B)) :|: 49 >= A f6(A, B) -> Com_1(f14(A, B)) :|: A >= 50 The start-symbols are:[f0_2] ---------------------------------------- (1) Koat Proof (FINISHED) YES(?, 52) Initial complexity problem: 1: T: (Comp: ?, Cost: 1) f0(Ar_0, Ar_1) -> Com_1(f6(0, Fresh_0)) (Comp: ?, Cost: 1) f6(Ar_0, Ar_1) -> Com_1(f6(Ar_0 + 1, Ar_1)) [ 49 >= Ar_0 ] (Comp: ?, Cost: 1) f6(Ar_0, Ar_1) -> Com_1(f14(Ar_0, Ar_1)) [ Ar_0 >= 50 ] (Comp: 1, Cost: 0) koat_start(Ar_0, Ar_1) -> Com_1(f0(Ar_0, Ar_1)) [ 0 <= 0 ] start location: koat_start leaf cost: 0 Repeatedly propagating knowledge in problem 1 produces the following problem: 2: T: (Comp: 1, Cost: 1) f0(Ar_0, Ar_1) -> Com_1(f6(0, Fresh_0)) (Comp: ?, Cost: 1) f6(Ar_0, Ar_1) -> Com_1(f6(Ar_0 + 1, Ar_1)) [ 49 >= Ar_0 ] (Comp: ?, Cost: 1) f6(Ar_0, Ar_1) -> Com_1(f14(Ar_0, Ar_1)) [ Ar_0 >= 50 ] (Comp: 1, Cost: 0) koat_start(Ar_0, Ar_1) -> Com_1(f0(Ar_0, Ar_1)) [ 0 <= 0 ] start location: koat_start leaf cost: 0 A polynomial rank function with Pol(f0) = 1 Pol(f6) = 1 Pol(f14) = 0 Pol(koat_start) = 1 orients all transitions weakly and the transition f6(Ar_0, Ar_1) -> Com_1(f14(Ar_0, Ar_1)) [ Ar_0 >= 50 ] strictly and produces the following problem: 3: T: (Comp: 1, Cost: 1) f0(Ar_0, Ar_1) -> Com_1(f6(0, Fresh_0)) (Comp: ?, Cost: 1) f6(Ar_0, Ar_1) -> Com_1(f6(Ar_0 + 1, Ar_1)) [ 49 >= Ar_0 ] (Comp: 1, Cost: 1) f6(Ar_0, Ar_1) -> Com_1(f14(Ar_0, Ar_1)) [ Ar_0 >= 50 ] (Comp: 1, Cost: 0) koat_start(Ar_0, Ar_1) -> Com_1(f0(Ar_0, Ar_1)) [ 0 <= 0 ] start location: koat_start leaf cost: 0 A polynomial rank function with Pol(f0) = 50 Pol(f6) = -V_1 + 50 Pol(f14) = -V_1 Pol(koat_start) = 50 orients all transitions weakly and the transition f6(Ar_0, Ar_1) -> Com_1(f6(Ar_0 + 1, Ar_1)) [ 49 >= Ar_0 ] strictly and produces the following problem: 4: T: (Comp: 1, Cost: 1) f0(Ar_0, Ar_1) -> Com_1(f6(0, Fresh_0)) (Comp: 50, Cost: 1) f6(Ar_0, Ar_1) -> Com_1(f6(Ar_0 + 1, Ar_1)) [ 49 >= Ar_0 ] (Comp: 1, Cost: 1) f6(Ar_0, Ar_1) -> Com_1(f14(Ar_0, Ar_1)) [ Ar_0 >= 50 ] (Comp: 1, Cost: 0) koat_start(Ar_0, Ar_1) -> Com_1(f0(Ar_0, Ar_1)) [ 0 <= 0 ] start location: koat_start leaf cost: 0 Complexity upper bound 52 Time: 0.031 sec (SMT: 0.028 sec) ---------------------------------------- (2) BOUNDS(1, 1)