MAYBE * Step 1: DependencyPairs MAYBE + Considered Problem: - Strict TRS: div(x,y) -> if(ge(y,s(0())),ge(x,y),x,y) ge(x,0()) -> true() ge(0(),s(y)) -> false() ge(s(x),s(y)) -> ge(x,y) id_inc(x) -> x id_inc(x) -> s(x) if(false(),b,x,y) -> div_by_zero() if(true(),false(),x,y) -> 0() if(true(),true(),x,y) -> id_inc(div(minus(x,y),y)) minus(x,0()) -> x minus(0(),y) -> 0() minus(s(x),s(y)) -> minus(x,y) - Signature: {div/2,ge/2,id_inc/1,if/4,minus/2} / {0/0,div_by_zero/0,false/0,s/1,true/0} - Obligation: innermost runtime complexity wrt. defined symbols {div,ge,id_inc,if,minus} and constructors {0,div_by_zero ,false,s,true} + Applied Processor: DependencyPairs {dpKind_ = DT} + Details: We add the following dependency tuples: Strict DPs div#(x,y) -> c_1(if#(ge(y,s(0())),ge(x,y),x,y),ge#(y,s(0())),ge#(x,y)) ge#(x,0()) -> c_2() ge#(0(),s(y)) -> c_3() ge#(s(x),s(y)) -> c_4(ge#(x,y)) id_inc#(x) -> c_5() id_inc#(x) -> c_6() if#(false(),b,x,y) -> c_7() if#(true(),false(),x,y) -> c_8() if#(true(),true(),x,y) -> c_9(id_inc#(div(minus(x,y),y)),div#(minus(x,y),y),minus#(x,y)) minus#(x,0()) -> c_10() minus#(0(),y) -> c_11() minus#(s(x),s(y)) -> c_12(minus#(x,y)) Weak DPs and mark the set of starting terms. * Step 2: PredecessorEstimation MAYBE + Considered Problem: - Strict DPs: div#(x,y) -> c_1(if#(ge(y,s(0())),ge(x,y),x,y),ge#(y,s(0())),ge#(x,y)) ge#(x,0()) -> c_2() ge#(0(),s(y)) -> c_3() ge#(s(x),s(y)) -> c_4(ge#(x,y)) id_inc#(x) -> c_5() id_inc#(x) -> c_6() if#(false(),b,x,y) -> c_7() if#(true(),false(),x,y) -> c_8() if#(true(),true(),x,y) -> c_9(id_inc#(div(minus(x,y),y)),div#(minus(x,y),y),minus#(x,y)) minus#(x,0()) -> c_10() minus#(0(),y) -> c_11() minus#(s(x),s(y)) -> c_12(minus#(x,y)) - Weak TRS: div(x,y) -> if(ge(y,s(0())),ge(x,y),x,y) ge(x,0()) -> true() ge(0(),s(y)) -> false() ge(s(x),s(y)) -> ge(x,y) id_inc(x) -> x id_inc(x) -> s(x) if(false(),b,x,y) -> div_by_zero() if(true(),false(),x,y) -> 0() if(true(),true(),x,y) -> id_inc(div(minus(x,y),y)) minus(x,0()) -> x minus(0(),y) -> 0() minus(s(x),s(y)) -> minus(x,y) - Signature: {div/2,ge/2,id_inc/1,if/4,minus/2,div#/2,ge#/2,id_inc#/1,if#/4,minus#/2} / {0/0,div_by_zero/0,false/0,s/1 ,true/0,c_1/3,c_2/0,c_3/0,c_4/1,c_5/0,c_6/0,c_7/0,c_8/0,c_9/3,c_10/0,c_11/0,c_12/1} - Obligation: innermost runtime complexity wrt. defined symbols {div#,ge#,id_inc#,if#,minus#} and constructors {0 ,div_by_zero,false,s,true} + Applied Processor: PredecessorEstimation {onSelection = all simple predecessor estimation selector} + Details: We estimate the number of application of {2,3,5,6,7,8,10,11} by application of Pre({2,3,5,6,7,8,10,11}) = {1,4,9,12}. Here rules are labelled as follows: 1: div#(x,y) -> c_1(if#(ge(y,s(0())),ge(x,y),x,y),ge#(y,s(0())),ge#(x,y)) 2: ge#(x,0()) -> c_2() 3: ge#(0(),s(y)) -> c_3() 4: ge#(s(x),s(y)) -> c_4(ge#(x,y)) 5: id_inc#(x) -> c_5() 6: id_inc#(x) -> c_6() 7: if#(false(),b,x,y) -> c_7() 8: if#(true(),false(),x,y) -> c_8() 9: if#(true(),true(),x,y) -> c_9(id_inc#(div(minus(x,y),y)),div#(minus(x,y),y),minus#(x,y)) 10: minus#(x,0()) -> c_10() 11: minus#(0(),y) -> c_11() 12: minus#(s(x),s(y)) -> c_12(minus#(x,y)) * Step 3: RemoveWeakSuffixes MAYBE + Considered Problem: - Strict DPs: div#(x,y) -> c_1(if#(ge(y,s(0())),ge(x,y),x,y),ge#(y,s(0())),ge#(x,y)) ge#(s(x),s(y)) -> c_4(ge#(x,y)) if#(true(),true(),x,y) -> c_9(id_inc#(div(minus(x,y),y)),div#(minus(x,y),y),minus#(x,y)) minus#(s(x),s(y)) -> c_12(minus#(x,y)) - Weak DPs: ge#(x,0()) -> c_2() ge#(0(),s(y)) -> c_3() id_inc#(x) -> c_5() id_inc#(x) -> c_6() if#(false(),b,x,y) -> c_7() if#(true(),false(),x,y) -> c_8() minus#(x,0()) -> c_10() minus#(0(),y) -> c_11() - Weak TRS: div(x,y) -> if(ge(y,s(0())),ge(x,y),x,y) ge(x,0()) -> true() ge(0(),s(y)) -> false() ge(s(x),s(y)) -> ge(x,y) id_inc(x) -> x id_inc(x) -> s(x) if(false(),b,x,y) -> div_by_zero() if(true(),false(),x,y) -> 0() if(true(),true(),x,y) -> id_inc(div(minus(x,y),y)) minus(x,0()) -> x minus(0(),y) -> 0() minus(s(x),s(y)) -> minus(x,y) - Signature: {div/2,ge/2,id_inc/1,if/4,minus/2,div#/2,ge#/2,id_inc#/1,if#/4,minus#/2} / {0/0,div_by_zero/0,false/0,s/1 ,true/0,c_1/3,c_2/0,c_3/0,c_4/1,c_5/0,c_6/0,c_7/0,c_8/0,c_9/3,c_10/0,c_11/0,c_12/1} - Obligation: innermost runtime complexity wrt. defined symbols {div#,ge#,id_inc#,if#,minus#} and constructors {0 ,div_by_zero,false,s,true} + Applied Processor: RemoveWeakSuffixes + Details: Consider the dependency graph 1:S:div#(x,y) -> c_1(if#(ge(y,s(0())),ge(x,y),x,y),ge#(y,s(0())),ge#(x,y)) -->_1 if#(true(),true(),x,y) -> c_9(id_inc#(div(minus(x,y),y)),div#(minus(x,y),y),minus#(x,y)):3 -->_3 ge#(s(x),s(y)) -> c_4(ge#(x,y)):2 -->_2 ge#(s(x),s(y)) -> c_4(ge#(x,y)):2 -->_1 if#(true(),false(),x,y) -> c_8():10 -->_1 if#(false(),b,x,y) -> c_7():9 -->_3 ge#(0(),s(y)) -> c_3():6 -->_2 ge#(0(),s(y)) -> c_3():6 -->_3 ge#(x,0()) -> c_2():5 2:S:ge#(s(x),s(y)) -> c_4(ge#(x,y)) -->_1 ge#(0(),s(y)) -> c_3():6 -->_1 ge#(x,0()) -> c_2():5 -->_1 ge#(s(x),s(y)) -> c_4(ge#(x,y)):2 3:S:if#(true(),true(),x,y) -> c_9(id_inc#(div(minus(x,y),y)),div#(minus(x,y),y),minus#(x,y)) -->_3 minus#(s(x),s(y)) -> c_12(minus#(x,y)):4 -->_3 minus#(0(),y) -> c_11():12 -->_3 minus#(x,0()) -> c_10():11 -->_1 id_inc#(x) -> c_6():8 -->_1 id_inc#(x) -> c_5():7 -->_2 div#(x,y) -> c_1(if#(ge(y,s(0())),ge(x,y),x,y),ge#(y,s(0())),ge#(x,y)):1 4:S:minus#(s(x),s(y)) -> c_12(minus#(x,y)) -->_1 minus#(0(),y) -> c_11():12 -->_1 minus#(x,0()) -> c_10():11 -->_1 minus#(s(x),s(y)) -> c_12(minus#(x,y)):4 5:W:ge#(x,0()) -> c_2() 6:W:ge#(0(),s(y)) -> c_3() 7:W:id_inc#(x) -> c_5() 8:W:id_inc#(x) -> c_6() 9:W:if#(false(),b,x,y) -> c_7() 10:W:if#(true(),false(),x,y) -> c_8() 11:W:minus#(x,0()) -> c_10() 12:W:minus#(0(),y) -> c_11() The following weak DPs constitute a sub-graph of the DG that is closed under successors. The DPs are removed. 9: if#(false(),b,x,y) -> c_7() 10: if#(true(),false(),x,y) -> c_8() 5: ge#(x,0()) -> c_2() 6: ge#(0(),s(y)) -> c_3() 7: id_inc#(x) -> c_5() 8: id_inc#(x) -> c_6() 11: minus#(x,0()) -> c_10() 12: minus#(0(),y) -> c_11() * Step 4: SimplifyRHS MAYBE + Considered Problem: - Strict DPs: div#(x,y) -> c_1(if#(ge(y,s(0())),ge(x,y),x,y),ge#(y,s(0())),ge#(x,y)) ge#(s(x),s(y)) -> c_4(ge#(x,y)) if#(true(),true(),x,y) -> c_9(id_inc#(div(minus(x,y),y)),div#(minus(x,y),y),minus#(x,y)) minus#(s(x),s(y)) -> c_12(minus#(x,y)) - Weak TRS: div(x,y) -> if(ge(y,s(0())),ge(x,y),x,y) ge(x,0()) -> true() ge(0(),s(y)) -> false() ge(s(x),s(y)) -> ge(x,y) id_inc(x) -> x id_inc(x) -> s(x) if(false(),b,x,y) -> div_by_zero() if(true(),false(),x,y) -> 0() if(true(),true(),x,y) -> id_inc(div(minus(x,y),y)) minus(x,0()) -> x minus(0(),y) -> 0() minus(s(x),s(y)) -> minus(x,y) - Signature: {div/2,ge/2,id_inc/1,if/4,minus/2,div#/2,ge#/2,id_inc#/1,if#/4,minus#/2} / {0/0,div_by_zero/0,false/0,s/1 ,true/0,c_1/3,c_2/0,c_3/0,c_4/1,c_5/0,c_6/0,c_7/0,c_8/0,c_9/3,c_10/0,c_11/0,c_12/1} - Obligation: innermost runtime complexity wrt. defined symbols {div#,ge#,id_inc#,if#,minus#} and constructors {0 ,div_by_zero,false,s,true} + Applied Processor: SimplifyRHS + Details: Consider the dependency graph 1:S:div#(x,y) -> c_1(if#(ge(y,s(0())),ge(x,y),x,y),ge#(y,s(0())),ge#(x,y)) -->_1 if#(true(),true(),x,y) -> c_9(id_inc#(div(minus(x,y),y)),div#(minus(x,y),y),minus#(x,y)):3 -->_3 ge#(s(x),s(y)) -> c_4(ge#(x,y)):2 -->_2 ge#(s(x),s(y)) -> c_4(ge#(x,y)):2 2:S:ge#(s(x),s(y)) -> c_4(ge#(x,y)) -->_1 ge#(s(x),s(y)) -> c_4(ge#(x,y)):2 3:S:if#(true(),true(),x,y) -> c_9(id_inc#(div(minus(x,y),y)),div#(minus(x,y),y),minus#(x,y)) -->_3 minus#(s(x),s(y)) -> c_12(minus#(x,y)):4 -->_2 div#(x,y) -> c_1(if#(ge(y,s(0())),ge(x,y),x,y),ge#(y,s(0())),ge#(x,y)):1 4:S:minus#(s(x),s(y)) -> c_12(minus#(x,y)) -->_1 minus#(s(x),s(y)) -> c_12(minus#(x,y)):4 Due to missing edges in the depndency graph, the right-hand sides of following rules could be simplified: if#(true(),true(),x,y) -> c_9(div#(minus(x,y),y),minus#(x,y)) * Step 5: UsableRules MAYBE + Considered Problem: - Strict DPs: div#(x,y) -> c_1(if#(ge(y,s(0())),ge(x,y),x,y),ge#(y,s(0())),ge#(x,y)) ge#(s(x),s(y)) -> c_4(ge#(x,y)) if#(true(),true(),x,y) -> c_9(div#(minus(x,y),y),minus#(x,y)) minus#(s(x),s(y)) -> c_12(minus#(x,y)) - Weak TRS: div(x,y) -> if(ge(y,s(0())),ge(x,y),x,y) ge(x,0()) -> true() ge(0(),s(y)) -> false() ge(s(x),s(y)) -> ge(x,y) id_inc(x) -> x id_inc(x) -> s(x) if(false(),b,x,y) -> div_by_zero() if(true(),false(),x,y) -> 0() if(true(),true(),x,y) -> id_inc(div(minus(x,y),y)) minus(x,0()) -> x minus(0(),y) -> 0() minus(s(x),s(y)) -> minus(x,y) - Signature: {div/2,ge/2,id_inc/1,if/4,minus/2,div#/2,ge#/2,id_inc#/1,if#/4,minus#/2} / {0/0,div_by_zero/0,false/0,s/1 ,true/0,c_1/3,c_2/0,c_3/0,c_4/1,c_5/0,c_6/0,c_7/0,c_8/0,c_9/2,c_10/0,c_11/0,c_12/1} - Obligation: innermost runtime complexity wrt. defined symbols {div#,ge#,id_inc#,if#,minus#} and constructors {0 ,div_by_zero,false,s,true} + Applied Processor: UsableRules + Details: We replace rewrite rules by usable rules: ge(x,0()) -> true() ge(0(),s(y)) -> false() ge(s(x),s(y)) -> ge(x,y) minus(x,0()) -> x minus(0(),y) -> 0() minus(s(x),s(y)) -> minus(x,y) div#(x,y) -> c_1(if#(ge(y,s(0())),ge(x,y),x,y),ge#(y,s(0())),ge#(x,y)) ge#(s(x),s(y)) -> c_4(ge#(x,y)) if#(true(),true(),x,y) -> c_9(div#(minus(x,y),y),minus#(x,y)) minus#(s(x),s(y)) -> c_12(minus#(x,y)) * Step 6: Failure MAYBE + Considered Problem: - Strict DPs: div#(x,y) -> c_1(if#(ge(y,s(0())),ge(x,y),x,y),ge#(y,s(0())),ge#(x,y)) ge#(s(x),s(y)) -> c_4(ge#(x,y)) if#(true(),true(),x,y) -> c_9(div#(minus(x,y),y),minus#(x,y)) minus#(s(x),s(y)) -> c_12(minus#(x,y)) - Weak TRS: ge(x,0()) -> true() ge(0(),s(y)) -> false() ge(s(x),s(y)) -> ge(x,y) minus(x,0()) -> x minus(0(),y) -> 0() minus(s(x),s(y)) -> minus(x,y) - Signature: {div/2,ge/2,id_inc/1,if/4,minus/2,div#/2,ge#/2,id_inc#/1,if#/4,minus#/2} / {0/0,div_by_zero/0,false/0,s/1 ,true/0,c_1/3,c_2/0,c_3/0,c_4/1,c_5/0,c_6/0,c_7/0,c_8/0,c_9/2,c_10/0,c_11/0,c_12/1} - Obligation: innermost runtime complexity wrt. defined symbols {div#,ge#,id_inc#,if#,minus#} and constructors {0 ,div_by_zero,false,s,true} + Applied Processor: EmptyProcessor + Details: The problem is still open. MAYBE