Input TRS: 1: active(and(tt,X)) -> mark(X) 2: active(plus(N,0)) -> mark(N) 3: active(plus(N,s(M))) -> mark(s(plus(N,M))) 4: mark(and(X1,X2)) -> active(and(mark(X1),X2)) 5: mark(tt) -> active(tt) 6: mark(plus(X1,X2)) -> active(plus(mark(X1),mark(X2))) 7: mark(0) -> active(0) 8: mark(s(X)) -> active(s(mark(X))) 9: and(mark(X1),X2) -> and(X1,X2) 10: and(X1,mark(X2)) -> and(X1,X2) 11: and(active(X1),X2) -> and(X1,X2) 12: and(X1,active(X2)) -> and(X1,X2) 13: plus(mark(X1),X2) -> plus(X1,X2) 14: plus(X1,mark(X2)) -> plus(X1,X2) 15: plus(active(X1),X2) -> plus(X1,X2) 16: plus(X1,active(X2)) -> plus(X1,X2) 17: s(mark(X)) -> s(X) 18: s(active(X)) -> s(X) Dependency Pairs: #1: #active(and(tt,X)) -> #mark(X) #2: #active(plus(N,0)) -> #mark(N) #3: #active(plus(N,s(M))) -> #mark(s(plus(N,M))) #4: #active(plus(N,s(M))) -> #s(plus(N,M)) #5: #active(plus(N,s(M))) -> #plus(N,M) #6: #mark(and(X1,X2)) -> #active(and(mark(X1),X2)) #7: #mark(and(X1,X2)) -> #and(mark(X1),X2) #8: #mark(and(X1,X2)) -> #mark(X1) #9: #mark(tt) -> #active(tt) #10: #mark(plus(X1,X2)) -> #active(plus(mark(X1),mark(X2))) #11: #mark(plus(X1,X2)) -> #plus(mark(X1),mark(X2)) #12: #mark(plus(X1,X2)) -> #mark(X1) #13: #mark(plus(X1,X2)) -> #mark(X2) #14: #mark(0) -> #active(0) #15: #mark(s(X)) -> #active(s(mark(X))) #16: #mark(s(X)) -> #s(mark(X)) #17: #mark(s(X)) -> #mark(X) #18: #and(mark(X1),X2) -> #and(X1,X2) #19: #and(X1,mark(X2)) -> #and(X1,X2) #20: #and(active(X1),X2) -> #and(X1,X2) #21: #and(X1,active(X2)) -> #and(X1,X2) #22: #plus(mark(X1),X2) -> #plus(X1,X2) #23: #plus(X1,mark(X2)) -> #plus(X1,X2) #24: #plus(active(X1),X2) -> #plus(X1,X2) #25: #plus(X1,active(X2)) -> #plus(X1,X2) #26: #s(mark(X)) -> #s(X) #27: #s(active(X)) -> #s(X) Number of SCCs: 4 SCC { #26 #27 } QKBOPS(sum)... removes: #26 I(active) = x1 \pi(active) = 1 I(#s) = x1 \pi(#s) = 1 I(mark) = 1 + x1 \pi(mark) = [1] PREC: mark USABLE RULES: { } Number of SCCs: 4 SCC { #27 } QKBOPS(sum)... removes: #27 I(active) = 1 + x1 \pi(active) = [1] I(#s) = x1 \pi(#s) = [] PREC: active = #s USABLE RULES: { } Number of SCCs: 3 SCC { #18 #19 #20 #21 } QKBOPS(sum)... removes: #20 I(active) = 1 + x1 \pi(active) = [1] I(#and) = 3 + x1 \pi(#and) = [] I(mark) = x1 \pi(mark) = [] PREC: mark > #and > active USABLE RULES: { } Number of SCCs: 3 SCC { #18 #19 #21 } QKBOPS(sum)... removes: #18 #19 I(active) = x1 \pi(active) = 1 I(#and) = x1 + x2 \pi(#and) = [2,1] I(mark) = x1 \pi(mark) = [1] PREC: #and = mark USABLE RULES: { } Number of SCCs: 3 SCC { #21 } QKBOPS(sum)... removes: #21 I(active) = 1 + x1 \pi(active) = [] I(#and) = x2 \pi(#and) = [] PREC: active = #and USABLE RULES: { } Number of SCCs: 2 SCC { #22 #23 #24 #25 } QKBOPS(sum)... removes: #24 I(active) = 1 + x1 \pi(active) = [1] I(#plus) = 3 + x1 \pi(#plus) = [] I(mark) = x1 \pi(mark) = [] PREC: mark > #plus > active USABLE RULES: { } Number of SCCs: 2 SCC { #22 #23 #25 } QKBOPS(sum)... removes: #22 #23 I(active) = x1 \pi(active) = 1 I(#plus) = x1 + x2 \pi(#plus) = [2,1] I(mark) = x1 \pi(mark) = [1] PREC: #plus = mark USABLE RULES: { } Number of SCCs: 2 SCC { #25 } QKBOPS(sum)... removes: #25 I(active) = 1 + x1 \pi(active) = [] I(#plus) = x2 \pi(#plus) = [] PREC: active = #plus USABLE RULES: { } Number of SCCs: 1 SCC { #1 #2 #3 #6 #8 #10 #12 #13 #15 #17 } QKBOPS(sum)... removes: #1 #2 #8 #12 #13 #17 I(active) = x1 \pi(active) = [] I(#mark) = x1 \pi(#mark) = [] I(tt) = 1 I(0) = 1 I(s) = 1 + x1 \pi(s) = [] I(#active) = x1 \pi(#active) = [] I(and) = x1 + x2 \pi(and) = [] I(mark) = x1 \pi(mark) = [] I(plus) = x1 + x2 \pi(plus) = [] PREC: active = #mark = #active = and = mark > plus > s > tt = 0 USABLE RULES: { 18..1 } Number of SCCs: 1 SCC { #3 #6 #10 #15 } QKBOPS(sum)... removes: #3 #6 #10 #15 I(active) = x1 \pi(active) = 1 I(#mark) = 4 + x1 \pi(#mark) = [] I(tt) = 3 I(0) = 1 I(s) = 2 \pi(s) = [] I(#active) = x1 \pi(#active) = 1 I(and) = 1 + x1 + x2 \pi(and) = [1] I(mark) = 3 + x1 \pi(mark) = [] I(plus) = 6 + x1 \pi(plus) = [] PREC: #mark > mark = plus > s = and > tt = 0 USABLE RULES: { 18..1 } Number of SCCs: 0