MAYBE We are left with following problem, upon which TcT provides the certificate MAYBE. Strict Trs: { minus(s(x), y) -> if(gt(s(x), y), x, y) , if(true(), x, y) -> s(minus(x, y)) , if(false(), x, y) -> 0() , gt(s(x), s(y)) -> gt(x, y) , gt(s(x), 0()) -> true() , gt(0(), y) -> false() , gcd(x, y) -> if1(ge(x, y), x, y) , if1(true(), x, y) -> if2(gt(y, 0()), x, y) , if1(false(), x, y) -> if3(gt(x, 0()), x, y) , ge(x, 0()) -> true() , ge(s(x), s(y)) -> ge(x, y) , ge(0(), s(x)) -> false() , if2(true(), x, y) -> gcd(minus(x, y), y) , if2(false(), x, y) -> x , if3(true(), x, y) -> gcd(x, minus(y, x)) , if3(false(), x, y) -> y } Obligation: innermost runtime complexity Answer: MAYBE We add following dependency tuples: Strict DPs: { minus^#(s(x), y) -> c_1(if^#(gt(s(x), y), x, y), gt^#(s(x), y)) , if^#(true(), x, y) -> c_2(minus^#(x, y)) , if^#(false(), x, y) -> c_3() , gt^#(s(x), s(y)) -> c_4(gt^#(x, y)) , gt^#(s(x), 0()) -> c_5() , gt^#(0(), y) -> c_6() , gcd^#(x, y) -> c_7(if1^#(ge(x, y), x, y), ge^#(x, y)) , if1^#(true(), x, y) -> c_8(if2^#(gt(y, 0()), x, y), gt^#(y, 0())) , if1^#(false(), x, y) -> c_9(if3^#(gt(x, 0()), x, y), gt^#(x, 0())) , ge^#(x, 0()) -> c_10() , ge^#(s(x), s(y)) -> c_11(ge^#(x, y)) , ge^#(0(), s(x)) -> c_12() , if2^#(true(), x, y) -> c_13(gcd^#(minus(x, y), y), minus^#(x, y)) , if2^#(false(), x, y) -> c_14() , if3^#(true(), x, y) -> c_15(gcd^#(x, minus(y, x)), minus^#(y, x)) , if3^#(false(), x, y) -> c_16() } and mark the set of starting terms. We are left with following problem, upon which TcT provides the certificate MAYBE. Strict DPs: { minus^#(s(x), y) -> c_1(if^#(gt(s(x), y), x, y), gt^#(s(x), y)) , if^#(true(), x, y) -> c_2(minus^#(x, y)) , if^#(false(), x, y) -> c_3() , gt^#(s(x), s(y)) -> c_4(gt^#(x, y)) , gt^#(s(x), 0()) -> c_5() , gt^#(0(), y) -> c_6() , gcd^#(x, y) -> c_7(if1^#(ge(x, y), x, y), ge^#(x, y)) , if1^#(true(), x, y) -> c_8(if2^#(gt(y, 0()), x, y), gt^#(y, 0())) , if1^#(false(), x, y) -> c_9(if3^#(gt(x, 0()), x, y), gt^#(x, 0())) , ge^#(x, 0()) -> c_10() , ge^#(s(x), s(y)) -> c_11(ge^#(x, y)) , ge^#(0(), s(x)) -> c_12() , if2^#(true(), x, y) -> c_13(gcd^#(minus(x, y), y), minus^#(x, y)) , if2^#(false(), x, y) -> c_14() , if3^#(true(), x, y) -> c_15(gcd^#(x, minus(y, x)), minus^#(y, x)) , if3^#(false(), x, y) -> c_16() } Weak Trs: { minus(s(x), y) -> if(gt(s(x), y), x, y) , if(true(), x, y) -> s(minus(x, y)) , if(false(), x, y) -> 0() , gt(s(x), s(y)) -> gt(x, y) , gt(s(x), 0()) -> true() , gt(0(), y) -> false() , gcd(x, y) -> if1(ge(x, y), x, y) , if1(true(), x, y) -> if2(gt(y, 0()), x, y) , if1(false(), x, y) -> if3(gt(x, 0()), x, y) , ge(x, 0()) -> true() , ge(s(x), s(y)) -> ge(x, y) , ge(0(), s(x)) -> false() , if2(true(), x, y) -> gcd(minus(x, y), y) , if2(false(), x, y) -> x , if3(true(), x, y) -> gcd(x, minus(y, x)) , if3(false(), x, y) -> y } Obligation: innermost runtime complexity Answer: MAYBE We estimate the number of application of {3,5,6,10,12,14,16} by applications of Pre({3,5,6,10,12,14,16}) = {1,4,7,8,9,11}. Here rules are labeled as follows: DPs: { 1: minus^#(s(x), y) -> c_1(if^#(gt(s(x), y), x, y), gt^#(s(x), y)) , 2: if^#(true(), x, y) -> c_2(minus^#(x, y)) , 3: if^#(false(), x, y) -> c_3() , 4: gt^#(s(x), s(y)) -> c_4(gt^#(x, y)) , 5: gt^#(s(x), 0()) -> c_5() , 6: gt^#(0(), y) -> c_6() , 7: gcd^#(x, y) -> c_7(if1^#(ge(x, y), x, y), ge^#(x, y)) , 8: if1^#(true(), x, y) -> c_8(if2^#(gt(y, 0()), x, y), gt^#(y, 0())) , 9: if1^#(false(), x, y) -> c_9(if3^#(gt(x, 0()), x, y), gt^#(x, 0())) , 10: ge^#(x, 0()) -> c_10() , 11: ge^#(s(x), s(y)) -> c_11(ge^#(x, y)) , 12: ge^#(0(), s(x)) -> c_12() , 13: if2^#(true(), x, y) -> c_13(gcd^#(minus(x, y), y), minus^#(x, y)) , 14: if2^#(false(), x, y) -> c_14() , 15: if3^#(true(), x, y) -> c_15(gcd^#(x, minus(y, x)), minus^#(y, x)) , 16: if3^#(false(), x, y) -> c_16() } We are left with following problem, upon which TcT provides the certificate MAYBE. Strict DPs: { minus^#(s(x), y) -> c_1(if^#(gt(s(x), y), x, y), gt^#(s(x), y)) , if^#(true(), x, y) -> c_2(minus^#(x, y)) , gt^#(s(x), s(y)) -> c_4(gt^#(x, y)) , gcd^#(x, y) -> c_7(if1^#(ge(x, y), x, y), ge^#(x, y)) , if1^#(true(), x, y) -> c_8(if2^#(gt(y, 0()), x, y), gt^#(y, 0())) , if1^#(false(), x, y) -> c_9(if3^#(gt(x, 0()), x, y), gt^#(x, 0())) , ge^#(s(x), s(y)) -> c_11(ge^#(x, y)) , if2^#(true(), x, y) -> c_13(gcd^#(minus(x, y), y), minus^#(x, y)) , if3^#(true(), x, y) -> c_15(gcd^#(x, minus(y, x)), minus^#(y, x)) } Weak DPs: { if^#(false(), x, y) -> c_3() , gt^#(s(x), 0()) -> c_5() , gt^#(0(), y) -> c_6() , ge^#(x, 0()) -> c_10() , ge^#(0(), s(x)) -> c_12() , if2^#(false(), x, y) -> c_14() , if3^#(false(), x, y) -> c_16() } Weak Trs: { minus(s(x), y) -> if(gt(s(x), y), x, y) , if(true(), x, y) -> s(minus(x, y)) , if(false(), x, y) -> 0() , gt(s(x), s(y)) -> gt(x, y) , gt(s(x), 0()) -> true() , gt(0(), y) -> false() , gcd(x, y) -> if1(ge(x, y), x, y) , if1(true(), x, y) -> if2(gt(y, 0()), x, y) , if1(false(), x, y) -> if3(gt(x, 0()), x, y) , ge(x, 0()) -> true() , ge(s(x), s(y)) -> ge(x, y) , ge(0(), s(x)) -> false() , if2(true(), x, y) -> gcd(minus(x, y), y) , if2(false(), x, y) -> x , if3(true(), x, y) -> gcd(x, minus(y, x)) , if3(false(), x, y) -> y } Obligation: innermost runtime complexity Answer: MAYBE The following weak DPs constitute a sub-graph of the DG that is closed under successors. The DPs are removed. { if^#(false(), x, y) -> c_3() , gt^#(s(x), 0()) -> c_5() , gt^#(0(), y) -> c_6() , ge^#(x, 0()) -> c_10() , ge^#(0(), s(x)) -> c_12() , if2^#(false(), x, y) -> c_14() , if3^#(false(), x, y) -> c_16() } We are left with following problem, upon which TcT provides the certificate MAYBE. Strict DPs: { minus^#(s(x), y) -> c_1(if^#(gt(s(x), y), x, y), gt^#(s(x), y)) , if^#(true(), x, y) -> c_2(minus^#(x, y)) , gt^#(s(x), s(y)) -> c_4(gt^#(x, y)) , gcd^#(x, y) -> c_7(if1^#(ge(x, y), x, y), ge^#(x, y)) , if1^#(true(), x, y) -> c_8(if2^#(gt(y, 0()), x, y), gt^#(y, 0())) , if1^#(false(), x, y) -> c_9(if3^#(gt(x, 0()), x, y), gt^#(x, 0())) , ge^#(s(x), s(y)) -> c_11(ge^#(x, y)) , if2^#(true(), x, y) -> c_13(gcd^#(minus(x, y), y), minus^#(x, y)) , if3^#(true(), x, y) -> c_15(gcd^#(x, minus(y, x)), minus^#(y, x)) } Weak Trs: { minus(s(x), y) -> if(gt(s(x), y), x, y) , if(true(), x, y) -> s(minus(x, y)) , if(false(), x, y) -> 0() , gt(s(x), s(y)) -> gt(x, y) , gt(s(x), 0()) -> true() , gt(0(), y) -> false() , gcd(x, y) -> if1(ge(x, y), x, y) , if1(true(), x, y) -> if2(gt(y, 0()), x, y) , if1(false(), x, y) -> if3(gt(x, 0()), x, y) , ge(x, 0()) -> true() , ge(s(x), s(y)) -> ge(x, y) , ge(0(), s(x)) -> false() , if2(true(), x, y) -> gcd(minus(x, y), y) , if2(false(), x, y) -> x , if3(true(), x, y) -> gcd(x, minus(y, x)) , if3(false(), x, y) -> y } Obligation: innermost runtime complexity Answer: MAYBE Due to missing edges in the dependency-graph, the right-hand sides of following rules could be simplified: { if1^#(true(), x, y) -> c_8(if2^#(gt(y, 0()), x, y), gt^#(y, 0())) , if1^#(false(), x, y) -> c_9(if3^#(gt(x, 0()), x, y), gt^#(x, 0())) } We are left with following problem, upon which TcT provides the certificate MAYBE. Strict DPs: { minus^#(s(x), y) -> c_1(if^#(gt(s(x), y), x, y), gt^#(s(x), y)) , if^#(true(), x, y) -> c_2(minus^#(x, y)) , gt^#(s(x), s(y)) -> c_3(gt^#(x, y)) , gcd^#(x, y) -> c_4(if1^#(ge(x, y), x, y), ge^#(x, y)) , if1^#(true(), x, y) -> c_5(if2^#(gt(y, 0()), x, y)) , if1^#(false(), x, y) -> c_6(if3^#(gt(x, 0()), x, y)) , ge^#(s(x), s(y)) -> c_7(ge^#(x, y)) , if2^#(true(), x, y) -> c_8(gcd^#(minus(x, y), y), minus^#(x, y)) , if3^#(true(), x, y) -> c_9(gcd^#(x, minus(y, x)), minus^#(y, x)) } Weak Trs: { minus(s(x), y) -> if(gt(s(x), y), x, y) , if(true(), x, y) -> s(minus(x, y)) , if(false(), x, y) -> 0() , gt(s(x), s(y)) -> gt(x, y) , gt(s(x), 0()) -> true() , gt(0(), y) -> false() , gcd(x, y) -> if1(ge(x, y), x, y) , if1(true(), x, y) -> if2(gt(y, 0()), x, y) , if1(false(), x, y) -> if3(gt(x, 0()), x, y) , ge(x, 0()) -> true() , ge(s(x), s(y)) -> ge(x, y) , ge(0(), s(x)) -> false() , if2(true(), x, y) -> gcd(minus(x, y), y) , if2(false(), x, y) -> x , if3(true(), x, y) -> gcd(x, minus(y, x)) , if3(false(), x, y) -> y } Obligation: innermost runtime complexity Answer: MAYBE We replace rewrite rules by usable rules: Weak Usable Rules: { minus(s(x), y) -> if(gt(s(x), y), x, y) , if(true(), x, y) -> s(minus(x, y)) , if(false(), x, y) -> 0() , gt(s(x), s(y)) -> gt(x, y) , gt(s(x), 0()) -> true() , gt(0(), y) -> false() , ge(x, 0()) -> true() , ge(s(x), s(y)) -> ge(x, y) , ge(0(), s(x)) -> false() } We are left with following problem, upon which TcT provides the certificate MAYBE. Strict DPs: { minus^#(s(x), y) -> c_1(if^#(gt(s(x), y), x, y), gt^#(s(x), y)) , if^#(true(), x, y) -> c_2(minus^#(x, y)) , gt^#(s(x), s(y)) -> c_3(gt^#(x, y)) , gcd^#(x, y) -> c_4(if1^#(ge(x, y), x, y), ge^#(x, y)) , if1^#(true(), x, y) -> c_5(if2^#(gt(y, 0()), x, y)) , if1^#(false(), x, y) -> c_6(if3^#(gt(x, 0()), x, y)) , ge^#(s(x), s(y)) -> c_7(ge^#(x, y)) , if2^#(true(), x, y) -> c_8(gcd^#(minus(x, y), y), minus^#(x, y)) , if3^#(true(), x, y) -> c_9(gcd^#(x, minus(y, x)), minus^#(y, x)) } Weak Trs: { minus(s(x), y) -> if(gt(s(x), y), x, y) , if(true(), x, y) -> s(minus(x, y)) , if(false(), x, y) -> 0() , gt(s(x), s(y)) -> gt(x, y) , gt(s(x), 0()) -> true() , gt(0(), y) -> false() , ge(x, 0()) -> true() , ge(s(x), s(y)) -> ge(x, y) , ge(0(), s(x)) -> false() } Obligation: innermost runtime complexity Answer: MAYBE The input cannot be shown compatible Arrrr..