Input TRS: 1: g(A()) -> A() 2: g(B()) -> A() 3: g(B()) -> B() 4: g(C()) -> A() 5: g(C()) -> B() 6: g(C()) -> C() 7: foldB(t,|0|()) -> t 8: foldB(t,s(n)) -> f(foldB(t,n),B()) 9: foldC(t,|0|()) -> t 10: foldC(t,s(n)) -> f(foldC(t,n),C()) 11: f(t,x) -> |f'|(t,g(x)) 12: |f'|(triple(a,b,c),C()) -> triple(a,b,s(c)) 13: |f'|(triple(a,b,c),B()) -> f(triple(a,b,c),A()) 14: |f'|(triple(a,b,c),A()) -> |f''|(foldB(triple(s(a),|0|(),c),b)) 15: |f''|(triple(a,b,c)) -> foldC(triple(a,b,|0|()),c) Number of strict rules: 15 Direct Order(PosReal,>,Poly) ... removes: 8 |0|() weight: 0 |f'|(x1,x2) weight: (/ 1 8) + x1 + x2 s(x1) weight: (/ 1 8) + x1 triple(x1,x2,x3) weight: (/ 95721 8) + x1 + 2 * x2 + x3 C() weight: 0 f(x1,x2) weight: (/ 1 8) + x1 + x2 B() weight: 0 foldB(x1,x2) weight: x1 + 2 * x2 |f''|(x1) weight: x1 A() weight: 0 foldC(x1,x2) weight: x1 + x2 g(x1) weight: x1 Number of strict rules: 14 Direct Order(PosReal,>,Poly) ... removes: 15 7 14 9 |0|() weight: 0 |f'|(x1,x2) weight: 61738 + x1 + x2 s(x1) weight: 30869 + x1 triple(x1,x2,x3) weight: (/ 1 4) + x1 + 2 * x2 + 2 * x3 C() weight: 0 f(x1,x2) weight: 61738 + x1 + x2 B() weight: 0 foldB(x1,x2) weight: (/ 1 4) + x1 + 2 * x2 |f''|(x1) weight: (/ 61737 2) + x1 A() weight: 0 foldC(x1,x2) weight: (/ 123473 4) + x1 + 2 * x2 g(x1) weight: x1 Number of strict rules: 10 Direct Order(PosReal,>,Poly) ... removes: 10 12 |0|() weight: 0 |f'|(x1,x2) weight: (/ 61517 4) + x1 + x2 s(x1) weight: (/ 30759 4) + x1 triple(x1,x2,x3) weight: (/ 1 4) + x1 + 2 * x2 + x3 C() weight: 0 f(x1,x2) weight: (/ 61517 4) + x1 + x2 B() weight: 0 foldB(x1,x2) weight: (/ 1 4) + x1 + 2 * x2 |f''|(x1) weight: (/ 30757 4) + x1 A() weight: 0 foldC(x1,x2) weight: (/ 30757 4) + x1 + 2 * x2 g(x1) weight: x1 Number of strict rules: 8 Direct Order(PosReal,>,Poly) ... failed. Freezing ... failed. Dependency Pairs: #1: #|f'|(triple(a,b,c),B()) -> #f(triple(a,b,c),A()) #2: #f(t,x) -> #|f'|(t,g(x)) #3: #f(t,x) -> #g(x) Number of SCCs: 1, DPs: 2, edges: 2 SCC { #1 #2 } Removing DPs: Order(PosReal,>,Sum)... Order(PosReal,>,Max)... succeeded. |0|() weight: 0 |f'|(x1,x2) weight: 0 s(x1) weight: 0 triple(x1,x2,x3) weight: max{0, (/ 1 8) + x2} C() weight: (/ 3 8) f(x1,x2) weight: 0 B() weight: (/ 3 8) foldB(x1,x2) weight: 0 |f''|(x1) weight: 0 A() weight: (/ 1 8) #f(x1,x2) weight: max{0, (/ 1 4) + x2} #g(x1) weight: 0 #|f'|(x1,x2) weight: max{0, (/ 1 8) + x2} foldC(x1,x2) weight: 0 g(x1) weight: x1 Usable rules: { 1..6 } Removed DPs: #1 #2 Number of SCCs: 0, DPs: 0, edges: 0 YES