3.14/1.56 WORST_CASE(?, O(1)) 3.31/1.58 proof of /export/starexec/sandbox/benchmark/theBenchmark.xml 3.31/1.58 # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty 3.31/1.58 3.31/1.58 3.31/1.58 The Runtime Complexity (innermost) of the given CpxTRS could be proven to be BOUNDS(1, 1). 3.31/1.58 3.31/1.58 (0) CpxTRS 3.31/1.58 (1) NarrowingOnBasicTermsTerminatesProof [FINISHED, 0 ms] 3.31/1.58 (2) BOUNDS(1, 1) 3.31/1.58 3.31/1.58 3.31/1.58 ---------------------------------------- 3.31/1.58 3.31/1.58 (0) 3.31/1.58 Obligation: 3.31/1.58 The Runtime Complexity (innermost) of the given CpxTRS could be proven to be BOUNDS(1, 1). 3.31/1.58 3.31/1.58 3.31/1.58 The TRS R consists of the following rules: 3.31/1.58 3.31/1.58 gcd(x, 0) -> x 3.31/1.58 gcd(0, y) -> y 3.31/1.58 gcd(s(x), s(y)) -> if(<(x, y), gcd(s(x), -(y, x)), gcd(-(x, y), s(y))) 3.31/1.58 3.31/1.58 S is empty. 3.31/1.58 Rewrite Strategy: INNERMOST 3.31/1.58 ---------------------------------------- 3.31/1.58 3.31/1.58 (1) NarrowingOnBasicTermsTerminatesProof (FINISHED) 3.31/1.58 Constant runtime complexity proven by termination of constructor-based narrowing. 3.31/1.58 3.31/1.58 The maximal most general narrowing sequences give rise to the following rewrite sequences: 3.31/1.58 3.31/1.58 gcd(s(x0), s(x1)) ->^* if(<(x0, x1), gcd(s(x0), -(x1, x0)), gcd(-(x0, x1), s(x1))) 3.31/1.58 3.31/1.58 3.31/1.58 3.31/1.58 3.31/1.58 ---------------------------------------- 3.31/1.58 3.31/1.58 (2) 3.31/1.58 BOUNDS(1, 1) 3.31/1.61 EOF