MAYBE We are left with following problem, upon which TcT provides the certificate MAYBE. Strict Trs: { minus(x, y) -> if(gt(x, y), x, y) , if(true(), x, y) -> s(minus(p(x), y)) , if(false(), x, y) -> 0() , gt(s(x), s(y)) -> gt(x, y) , gt(s(x), 0()) -> true() , gt(0(), y) -> false() , p(s(x)) -> x , p(0()) -> 0() , ge(x, 0()) -> true() , ge(s(x), s(y)) -> ge(x, y) , ge(0(), s(x)) -> false() , div(x, y) -> if1(ge(x, y), x, y) , if1(true(), x, y) -> if2(gt(y, 0()), x, y) , if1(false(), x, y) -> 0() , if2(true(), x, y) -> s(div(minus(x, y), y)) , if2(false(), x, y) -> 0() } Obligation: innermost runtime complexity Answer: MAYBE We add following dependency tuples: Strict DPs: { minus^#(x, y) -> c_1(if^#(gt(x, y), x, y), gt^#(x, y)) , if^#(true(), x, y) -> c_2(minus^#(p(x), y), p^#(x)) , 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() , p^#(s(x)) -> c_7() , p^#(0()) -> c_8() , ge^#(x, 0()) -> c_9() , ge^#(s(x), s(y)) -> c_10(ge^#(x, y)) , ge^#(0(), s(x)) -> c_11() , div^#(x, y) -> c_12(if1^#(ge(x, y), x, y), ge^#(x, y)) , if1^#(true(), x, y) -> c_13(if2^#(gt(y, 0()), x, y), gt^#(y, 0())) , if1^#(false(), x, y) -> c_14() , if2^#(true(), x, y) -> c_15(div^#(minus(x, y), y), minus^#(x, y)) , if2^#(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^#(x, y) -> c_1(if^#(gt(x, y), x, y), gt^#(x, y)) , if^#(true(), x, y) -> c_2(minus^#(p(x), y), p^#(x)) , 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() , p^#(s(x)) -> c_7() , p^#(0()) -> c_8() , ge^#(x, 0()) -> c_9() , ge^#(s(x), s(y)) -> c_10(ge^#(x, y)) , ge^#(0(), s(x)) -> c_11() , div^#(x, y) -> c_12(if1^#(ge(x, y), x, y), ge^#(x, y)) , if1^#(true(), x, y) -> c_13(if2^#(gt(y, 0()), x, y), gt^#(y, 0())) , if1^#(false(), x, y) -> c_14() , if2^#(true(), x, y) -> c_15(div^#(minus(x, y), y), minus^#(x, y)) , if2^#(false(), x, y) -> c_16() } Weak Trs: { minus(x, y) -> if(gt(x, y), x, y) , if(true(), x, y) -> s(minus(p(x), y)) , if(false(), x, y) -> 0() , gt(s(x), s(y)) -> gt(x, y) , gt(s(x), 0()) -> true() , gt(0(), y) -> false() , p(s(x)) -> x , p(0()) -> 0() , ge(x, 0()) -> true() , ge(s(x), s(y)) -> ge(x, y) , ge(0(), s(x)) -> false() , div(x, y) -> if1(ge(x, y), x, y) , if1(true(), x, y) -> if2(gt(y, 0()), x, y) , if1(false(), x, y) -> 0() , if2(true(), x, y) -> s(div(minus(x, y), y)) , if2(false(), x, y) -> 0() } Obligation: innermost runtime complexity Answer: MAYBE We estimate the number of application of {3,5,6,7,8,9,11,14,16} by applications of Pre({3,5,6,7,8,9,11,14,16}) = {1,2,4,10,12,13}. Here rules are labeled as follows: DPs: { 1: minus^#(x, y) -> c_1(if^#(gt(x, y), x, y), gt^#(x, y)) , 2: if^#(true(), x, y) -> c_2(minus^#(p(x), y), p^#(x)) , 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: p^#(s(x)) -> c_7() , 8: p^#(0()) -> c_8() , 9: ge^#(x, 0()) -> c_9() , 10: ge^#(s(x), s(y)) -> c_10(ge^#(x, y)) , 11: ge^#(0(), s(x)) -> c_11() , 12: div^#(x, y) -> c_12(if1^#(ge(x, y), x, y), ge^#(x, y)) , 13: if1^#(true(), x, y) -> c_13(if2^#(gt(y, 0()), x, y), gt^#(y, 0())) , 14: if1^#(false(), x, y) -> c_14() , 15: if2^#(true(), x, y) -> c_15(div^#(minus(x, y), y), minus^#(x, y)) , 16: if2^#(false(), x, y) -> c_16() } We are left with following problem, upon which TcT provides the certificate MAYBE. Strict DPs: { minus^#(x, y) -> c_1(if^#(gt(x, y), x, y), gt^#(x, y)) , if^#(true(), x, y) -> c_2(minus^#(p(x), y), p^#(x)) , gt^#(s(x), s(y)) -> c_4(gt^#(x, y)) , ge^#(s(x), s(y)) -> c_10(ge^#(x, y)) , div^#(x, y) -> c_12(if1^#(ge(x, y), x, y), ge^#(x, y)) , if1^#(true(), x, y) -> c_13(if2^#(gt(y, 0()), x, y), gt^#(y, 0())) , if2^#(true(), x, y) -> c_15(div^#(minus(x, y), y), minus^#(x, y)) } Weak DPs: { if^#(false(), x, y) -> c_3() , gt^#(s(x), 0()) -> c_5() , gt^#(0(), y) -> c_6() , p^#(s(x)) -> c_7() , p^#(0()) -> c_8() , ge^#(x, 0()) -> c_9() , ge^#(0(), s(x)) -> c_11() , if1^#(false(), x, y) -> c_14() , if2^#(false(), x, y) -> c_16() } Weak Trs: { minus(x, y) -> if(gt(x, y), x, y) , if(true(), x, y) -> s(minus(p(x), y)) , if(false(), x, y) -> 0() , gt(s(x), s(y)) -> gt(x, y) , gt(s(x), 0()) -> true() , gt(0(), y) -> false() , p(s(x)) -> x , p(0()) -> 0() , ge(x, 0()) -> true() , ge(s(x), s(y)) -> ge(x, y) , ge(0(), s(x)) -> false() , div(x, y) -> if1(ge(x, y), x, y) , if1(true(), x, y) -> if2(gt(y, 0()), x, y) , if1(false(), x, y) -> 0() , if2(true(), x, y) -> s(div(minus(x, y), y)) , if2(false(), x, y) -> 0() } 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() , p^#(s(x)) -> c_7() , p^#(0()) -> c_8() , ge^#(x, 0()) -> c_9() , ge^#(0(), s(x)) -> c_11() , if1^#(false(), x, y) -> c_14() , if2^#(false(), x, y) -> c_16() } We are left with following problem, upon which TcT provides the certificate MAYBE. Strict DPs: { minus^#(x, y) -> c_1(if^#(gt(x, y), x, y), gt^#(x, y)) , if^#(true(), x, y) -> c_2(minus^#(p(x), y), p^#(x)) , gt^#(s(x), s(y)) -> c_4(gt^#(x, y)) , ge^#(s(x), s(y)) -> c_10(ge^#(x, y)) , div^#(x, y) -> c_12(if1^#(ge(x, y), x, y), ge^#(x, y)) , if1^#(true(), x, y) -> c_13(if2^#(gt(y, 0()), x, y), gt^#(y, 0())) , if2^#(true(), x, y) -> c_15(div^#(minus(x, y), y), minus^#(x, y)) } Weak Trs: { minus(x, y) -> if(gt(x, y), x, y) , if(true(), x, y) -> s(minus(p(x), y)) , if(false(), x, y) -> 0() , gt(s(x), s(y)) -> gt(x, y) , gt(s(x), 0()) -> true() , gt(0(), y) -> false() , p(s(x)) -> x , p(0()) -> 0() , ge(x, 0()) -> true() , ge(s(x), s(y)) -> ge(x, y) , ge(0(), s(x)) -> false() , div(x, y) -> if1(ge(x, y), x, y) , if1(true(), x, y) -> if2(gt(y, 0()), x, y) , if1(false(), x, y) -> 0() , if2(true(), x, y) -> s(div(minus(x, y), y)) , if2(false(), x, y) -> 0() } Obligation: innermost runtime complexity Answer: MAYBE Due to missing edges in the dependency-graph, the right-hand sides of following rules could be simplified: { if^#(true(), x, y) -> c_2(minus^#(p(x), y), p^#(x)) , if1^#(true(), x, y) -> c_13(if2^#(gt(y, 0()), x, y), gt^#(y, 0())) } We are left with following problem, upon which TcT provides the certificate MAYBE. Strict DPs: { minus^#(x, y) -> c_1(if^#(gt(x, y), x, y), gt^#(x, y)) , if^#(true(), x, y) -> c_2(minus^#(p(x), y)) , gt^#(s(x), s(y)) -> c_3(gt^#(x, y)) , ge^#(s(x), s(y)) -> c_4(ge^#(x, y)) , div^#(x, y) -> c_5(if1^#(ge(x, y), x, y), ge^#(x, y)) , if1^#(true(), x, y) -> c_6(if2^#(gt(y, 0()), x, y)) , if2^#(true(), x, y) -> c_7(div^#(minus(x, y), y), minus^#(x, y)) } Weak Trs: { minus(x, y) -> if(gt(x, y), x, y) , if(true(), x, y) -> s(minus(p(x), y)) , if(false(), x, y) -> 0() , gt(s(x), s(y)) -> gt(x, y) , gt(s(x), 0()) -> true() , gt(0(), y) -> false() , p(s(x)) -> x , p(0()) -> 0() , ge(x, 0()) -> true() , ge(s(x), s(y)) -> ge(x, y) , ge(0(), s(x)) -> false() , div(x, y) -> if1(ge(x, y), x, y) , if1(true(), x, y) -> if2(gt(y, 0()), x, y) , if1(false(), x, y) -> 0() , if2(true(), x, y) -> s(div(minus(x, y), y)) , if2(false(), x, y) -> 0() } Obligation: innermost runtime complexity Answer: MAYBE We replace rewrite rules by usable rules: Weak Usable Rules: { minus(x, y) -> if(gt(x, y), x, y) , if(true(), x, y) -> s(minus(p(x), y)) , if(false(), x, y) -> 0() , gt(s(x), s(y)) -> gt(x, y) , gt(s(x), 0()) -> true() , gt(0(), y) -> false() , p(s(x)) -> x , p(0()) -> 0() , 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^#(x, y) -> c_1(if^#(gt(x, y), x, y), gt^#(x, y)) , if^#(true(), x, y) -> c_2(minus^#(p(x), y)) , gt^#(s(x), s(y)) -> c_3(gt^#(x, y)) , ge^#(s(x), s(y)) -> c_4(ge^#(x, y)) , div^#(x, y) -> c_5(if1^#(ge(x, y), x, y), ge^#(x, y)) , if1^#(true(), x, y) -> c_6(if2^#(gt(y, 0()), x, y)) , if2^#(true(), x, y) -> c_7(div^#(minus(x, y), y), minus^#(x, y)) } Weak Trs: { minus(x, y) -> if(gt(x, y), x, y) , if(true(), x, y) -> s(minus(p(x), y)) , if(false(), x, y) -> 0() , gt(s(x), s(y)) -> gt(x, y) , gt(s(x), 0()) -> true() , gt(0(), y) -> false() , p(s(x)) -> x , p(0()) -> 0() , 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..