Input TRS: 1: cond1(true(),x,y,z) -> cond2(gr(x,0()),x,y,z) 2: cond2(true(),x,y,z) -> cond1(gr(add(x,y),z),p(x),y,z) 3: cond2(false(),x,y,z) -> cond3(gr(y,0()),x,y,z) 4: cond3(true(),x,y,z) -> cond1(gr(add(x,y),z),x,p(y),z) 5: cond3(false(),x,y,z) -> cond1(gr(add(x,y),z),x,y,z) 6: gr(0(),x) -> false() 7: gr(s(x),0()) -> true() 8: gr(s(x),s(y)) -> gr(x,y) 9: add(0(),x) -> x 10: add(s(x),y) -> s(add(x,y)) 11: p(0()) -> 0() 12: p(s(x)) -> x Number of strict rules: 12 Direct Order(PosReal,>,Poly) ... failed. Freezing ... failed. Dependency Pairs: #1: #cond2(true(),x,y,z) -> #cond1(gr(add(x,y),z),p(x),y,z) #2: #cond2(true(),x,y,z) -> #gr(add(x,y),z) #3: #cond2(true(),x,y,z) -> #add(x,y) #4: #cond2(true(),x,y,z) -> #p(x) #5: #add(s(x),y) -> #add(x,y) #6: #cond3(false(),x,y,z) -> #cond1(gr(add(x,y),z),x,y,z) #7: #cond3(false(),x,y,z) -> #gr(add(x,y),z) #8: #cond3(false(),x,y,z) -> #add(x,y) #9: #cond2(false(),x,y,z) -> #cond3(gr(y,0()),x,y,z) #10: #cond2(false(),x,y,z) -> #gr(y,0()) #11: #cond1(true(),x,y,z) -> #cond2(gr(x,0()),x,y,z) #12: #cond1(true(),x,y,z) -> #gr(x,0()) #13: #gr(s(x),s(y)) -> #gr(x,y) #14: #cond3(true(),x,y,z) -> #cond1(gr(add(x,y),z),x,p(y),z) #15: #cond3(true(),x,y,z) -> #gr(add(x,y),z) #16: #cond3(true(),x,y,z) -> #add(x,y) #17: #cond3(true(),x,y,z) -> #p(y) Number of SCCs: 3, DPs: 7, edges: 9 SCC { #5 } Removing DPs: Order(PosReal,>,Sum)... succeeded. cond2(x1,x2,x3,x4) weight: 0 #cond3(x1,x2,x3,x4) weight: 0 s(x1) weight: (/ 1 2) + x1 #cond1(x1,x2,x3,x4) weight: 0 false() weight: 0 #p(x1) weight: 0 true() weight: 0 cond1(x1,x2,x3,x4) weight: 0 p(x1) weight: 0 0() weight: 0 #gr(x1,x2) weight: 0 cond3(x1,x2,x3,x4) weight: 0 #add(x1,x2) weight: x1 add(x1,x2) weight: 0 #cond2(x1,x2,x3,x4) weight: 0 gr(x1,x2) weight: 0 Usable rules: { } Removed DPs: #5 Number of SCCs: 2, DPs: 6, edges: 8 SCC { #13 } Removing DPs: Order(PosReal,>,Sum)... succeeded. cond2(x1,x2,x3,x4) weight: 0 #cond3(x1,x2,x3,x4) weight: 0 s(x1) weight: (/ 1 2) + x1 #cond1(x1,x2,x3,x4) weight: 0 false() weight: 0 #p(x1) weight: 0 true() weight: 0 cond1(x1,x2,x3,x4) weight: 0 p(x1) weight: 0 0() weight: 0 #gr(x1,x2) weight: x2 cond3(x1,x2,x3,x4) weight: 0 #add(x1,x2) weight: 0 add(x1,x2) weight: 0 #cond2(x1,x2,x3,x4) weight: 0 gr(x1,x2) weight: 0 Usable rules: { } Removed DPs: #13 Number of SCCs: 1, DPs: 5, edges: 7 SCC { #1 #6 #9 #11 #14 } Removing DPs: Order(PosReal,>,Sum)... Order(PosReal,>,Max)... QLPOpS... Order(PosReal,>,MaxSum)... succeeded. cond2(x1,x2,x3,x4) weight: 0 #cond3(x1,x2,x3,x4) weight: max{0, (/ 1 8) + x1, (/ 3 8) + x3} s(x1) weight: max{0, (/ 3 8) + x1} #cond1(x1,x2,x3,x4) weight: max{0, (/ 3 8) + x3} false() weight: (/ 1 8) #p(x1) weight: 0 true() weight: (/ 3 8) cond1(x1,x2,x3,x4) weight: 0 p(x1) weight: max{0, (- (/ 1 4)) + x1} 0() weight: 0 #gr(x1,x2) weight: 0 cond3(x1,x2,x3,x4) weight: 0 #add(x1,x2) weight: 0 add(x1,x2) weight: max{0, (- (/ 1 4)) + x1} #cond2(x1,x2,x3,x4) weight: max{0, (/ 3 8) + x3} gr(x1,x2) weight: max{0, (/ 1 8) + x1} Usable rules: { 6 7 11 12 } Removed DPs: #14 Number of SCCs: 1, DPs: 4, edges: 5 SCC { #1 #6 #9 #11 } Removing DPs: Order(PosReal,>,Sum)... Order(PosReal,>,Max)... QLPOpS... Order(PosReal,>,MaxSum)... succeeded. cond2(x1,x2,x3,x4) weight: 0 #cond3(x1,x2,x3,x4) weight: max{0, (/ 3 8) + x2} s(x1) weight: max{0, (/ 5 8) + x1} #cond1(x1,x2,x3,x4) weight: max{0, (/ 3 8) + x2} false() weight: 0 #p(x1) weight: 0 true() weight: (/ 3 8) cond1(x1,x2,x3,x4) weight: 0 p(x1) weight: max{0, (- (/ 1 2)) + x1} 0() weight: 0 #gr(x1,x2) weight: 0 cond3(x1,x2,x3,x4) weight: 0 #add(x1,x2) weight: 0 add(x1,x2) weight: max{0, (- (/ 1 2)) + x1} #cond2(x1,x2,x3,x4) weight: max{0, (/ 1 8) + x1, (/ 3 8) + x2} gr(x1,x2) weight: max{0, (/ 1 4) + x1} Usable rules: { 6 7 11 12 } Removed DPs: #1 Number of SCCs: 1, DPs: 3, edges: 3 SCC { #6 #9 #11 } Removing DPs: Order(PosReal,>,Sum)... Order(PosReal,>,Max)... QLPOpS... Order(PosReal,>,MaxSum)... QWPOpS(PosReal,>,MaxSum)... Order(PosReal,>,Sum-Sum; PosReal,≥,Sum-Sum)... Order(PosReal,>,Sum-Sum; NegReal,≥,Sum)... Order(PosReal,>,MaxSum-Sum; NegReal,≥,Sum)... failed. Removing edges: failed. Finding a loop... failed. MAYBE