Input TRS: 1: le(|0|(),y) -> true() 2: le(s(x),|0|()) -> false() 3: le(s(x),s(y)) -> le(x,y) 4: pred(s(x)) -> x 5: minus(x,|0|()) -> x 6: minus(x,s(y)) -> pred(minus(x,y)) 7: gcd(|0|(),y) -> y 8: gcd(s(x),|0|()) -> s(x) 9: gcd(s(x),s(y)) -> if_gcd(le(y,x),s(x),s(y)) 10: if_gcd(true(),s(x),s(y)) -> gcd(minus(x,y),s(y)) 11: if_gcd(false(),s(x),s(y)) -> gcd(minus(y,x),s(x)) 12: gcdL(nil()) -> |0|() 13: gcdL(cons(x,nil())) -> x 14: gcdL(cons(x,cons(y,xs))) -> gcdL(cons(gcd(x,y),xs)) 15: gcdL(cons(x,xs)) ->= gcdL(consSwap(x,xs)) 16: consSwap(x,xs) ->= cons(x,xs) 17: consSwap(x,cons(y,xs)) ->= cons(y,consSwap(x,xs)) Number of strict rules: 14 Direct Order(PosReal,>,Poly) ... failed. Freezing gcdL 1: le(|0|(),y) -> true() 2: le(s(x),|0|()) -> false() 3: le(s(x),s(y)) -> le(x,y) 4: pred(s(x)) -> x 5: minus(x,|0|()) -> x 6: minus(x,s(y)) -> pred(minus(x,y)) 7: gcd(|0|(),y) -> y 8: gcd(s(x),|0|()) -> s(x) 9: gcd(s(x),s(y)) -> if_gcd(le(y,x),s(x),s(y)) 10: if_gcd(true(),s(x),s(y)) -> gcd(minus(x,y),s(y)) 11: if_gcd(false(),s(x),s(y)) -> gcd(minus(y,x),s(x)) 12: gcdL❆1_nil() -> |0|() 13: gcdL❆1_cons(x,nil()) -> x 14: gcdL❆1_cons(x,cons(y,xs)) -> gcdL❆1_cons(gcd(x,y),xs) 15: gcdL❆1_cons(x,xs) ->= gcdL(consSwap(x,xs)) 16: consSwap(x,xs) ->= cons(x,xs) 17: consSwap(x,cons(y,xs)) ->= cons(y,consSwap(x,xs)) 18: gcdL(cons(_1,_2)) ->= gcdL❆1_cons(_1,_2) 19: gcdL(nil()) ->= gcdL❆1_nil() Number of strict rules: 14 Direct Order(PosReal,>,Poly) ... failed. Dependency Pairs: #1: #minus(x,s(y)) -> #pred(minus(x,y)) #2: #minus(x,s(y)) -> #minus(x,y) #3: #gcd(s(x),s(y)) -> #if_gcd(le(y,x),s(x),s(y)) #4: #gcd(s(x),s(y)) -> #le(y,x) #5: #if_gcd(false(),s(x),s(y)) -> #gcd(minus(y,x),s(x)) #6: #if_gcd(false(),s(x),s(y)) -> #minus(y,x) #7: #gcdL❆1_cons(x,cons(y,xs)) -> #gcdL❆1_cons(gcd(x,y),xs) #8: #gcdL❆1_cons(x,cons(y,xs)) -> #gcd(x,y) #9: #if_gcd(true(),s(x),s(y)) -> #gcd(minus(x,y),s(y)) #10: #if_gcd(true(),s(x),s(y)) -> #minus(x,y) #11: #gcdL(nil()) ->? #gcdL❆1_nil() #12: #le(s(x),s(y)) -> #le(x,y) #13: #gcdL❆1_cons(x,xs) ->? #gcdL(consSwap(x,xs)) #14: #gcdL(cons(_1,_2)) ->? #gcdL❆1_cons(_1,_2) Number of SCCs: 4, DPs: 8, edges: 11 SCC { #2 } Removing DPs: Order(PosReal,>,Sum)... succeeded. |0|() weight: 0 le(x1,x2) weight: 0 s(x1) weight: (/ 1 2) + x1 #le(x1,x2) weight: 0 minus(x1,x2) weight: 0 gcd(x1,x2) weight: 0 false() weight: 0 #gcdL❆1_nil() weight: 0 true() weight: 0 pred(x1) weight: 0 #gcdL(x1) weight: 0 #gcdL❆1_cons(x1,x2) weight: 0 consSwap(x1,x2) weight: 0 nil() weight: 0 #minus(x1,x2) weight: x2 gcdL(x1) weight: 0 #pred(x1) weight: 0 cons(x1,x2) weight: 0 if_gcd(x1,x2,x3) weight: 0 #if_gcd(x1,x2,x3) weight: 0 gcdL❆1_nil() weight: 0 gcdL❆1_cons(x1,x2) weight: 0 #gcd(x1,x2) weight: 0 Usable rules: { } Removed DPs: #2 Number of SCCs: 3, DPs: 7, edges: 10 SCC { #12 } Removing DPs: Order(PosReal,>,Sum)... succeeded. |0|() weight: 0 le(x1,x2) weight: 0 s(x1) weight: (/ 1 2) + x1 #le(x1,x2) weight: x2 minus(x1,x2) weight: 0 gcd(x1,x2) weight: 0 false() weight: 0 #gcdL❆1_nil() weight: 0 true() weight: 0 pred(x1) weight: 0 #gcdL(x1) weight: 0 #gcdL❆1_cons(x1,x2) weight: 0 consSwap(x1,x2) weight: 0 nil() weight: 0 #minus(x1,x2) weight: 0 gcdL(x1) weight: 0 #pred(x1) weight: 0 cons(x1,x2) weight: 0 if_gcd(x1,x2,x3) weight: 0 #if_gcd(x1,x2,x3) weight: 0 gcdL❆1_nil() weight: 0 gcdL❆1_cons(x1,x2) weight: 0 #gcd(x1,x2) weight: 0 Usable rules: { } Removed DPs: #12 Number of SCCs: 2, DPs: 6, edges: 9 SCC { #7 #13 #14 } Removing DPs: Order(PosReal,>,Sum)... succeeded. |0|() weight: 0 le(x1,x2) weight: (/ 1 4) s(x1) weight: (/ 1 4) + x1 #le(x1,x2) weight: 0 minus(x1,x2) weight: (/ 1 4) gcd(x1,x2) weight: (/ 1 2) + x2 false() weight: 0 #gcdL❆1_nil() weight: 0 true() weight: 0 pred(x1) weight: (/ 1 2) #gcdL(x1) weight: x1 #gcdL❆1_cons(x1,x2) weight: (/ 1 4) + x2 consSwap(x1,x2) weight: (/ 1 4) + x2 nil() weight: 0 #minus(x1,x2) weight: 0 gcdL(x1) weight: 0 #pred(x1) weight: 0 cons(x1,x2) weight: (/ 1 4) + x2 if_gcd(x1,x2,x3) weight: x2 + x3 #if_gcd(x1,x2,x3) weight: 0 gcdL❆1_nil() weight: 0 gcdL❆1_cons(x1,x2) weight: 0 #gcd(x1,x2) weight: 0 Usable rules: { 1..3 16 17 } Removed DPs: #7 Number of SCCs: 2, DPs: 5, edges: 6 SCC { #13 #14 } 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