Input TRS: 1: active(zeros) -> mark(cons(0,zeros)) 2: active(U11(tt,L)) -> mark(U12(tt,L)) 3: active(U12(tt,L)) -> mark(s(length(L))) 4: active(U21(tt,IL,M,N)) -> mark(U22(tt,IL,M,N)) 5: active(U22(tt,IL,M,N)) -> mark(U23(tt,IL,M,N)) 6: active(U23(tt,IL,M,N)) -> mark(cons(N,take(M,IL))) 7: active(length(nil)) -> mark(0) 8: active(length(cons(N,L))) -> mark(U11(tt,L)) 9: active(take(0,IL)) -> mark(nil) 10: active(take(s(M),cons(N,IL))) -> mark(U21(tt,IL,M,N)) 11: mark(zeros) -> active(zeros) 12: mark(cons(X1,X2)) -> active(cons(mark(X1),X2)) 13: mark(0) -> active(0) 14: mark(U11(X1,X2)) -> active(U11(mark(X1),X2)) 15: mark(tt) -> active(tt) 16: mark(U12(X1,X2)) -> active(U12(mark(X1),X2)) 17: mark(s(X)) -> active(s(mark(X))) 18: mark(length(X)) -> active(length(mark(X))) 19: mark(U21(X1,X2,X3,X4)) -> active(U21(mark(X1),X2,X3,X4)) 20: mark(U22(X1,X2,X3,X4)) -> active(U22(mark(X1),X2,X3,X4)) 21: mark(U23(X1,X2,X3,X4)) -> active(U23(mark(X1),X2,X3,X4)) 22: mark(take(X1,X2)) -> active(take(mark(X1),mark(X2))) 23: mark(nil) -> active(nil) 24: cons(mark(X1),X2) -> cons(X1,X2) 25: cons(X1,mark(X2)) -> cons(X1,X2) 26: cons(active(X1),X2) -> cons(X1,X2) 27: cons(X1,active(X2)) -> cons(X1,X2) 28: U11(mark(X1),X2) -> U11(X1,X2) 29: U11(X1,mark(X2)) -> U11(X1,X2) 30: U11(active(X1),X2) -> U11(X1,X2) 31: U11(X1,active(X2)) -> U11(X1,X2) 32: U12(mark(X1),X2) -> U12(X1,X2) 33: U12(X1,mark(X2)) -> U12(X1,X2) 34: U12(active(X1),X2) -> U12(X1,X2) 35: U12(X1,active(X2)) -> U12(X1,X2) 36: s(mark(X)) -> s(X) 37: s(active(X)) -> s(X) 38: length(mark(X)) -> length(X) 39: length(active(X)) -> length(X) 40: U21(mark(X1),X2,X3,X4) -> U21(X1,X2,X3,X4) 41: U21(X1,mark(X2),X3,X4) -> U21(X1,X2,X3,X4) 42: U21(X1,X2,mark(X3),X4) -> U21(X1,X2,X3,X4) 43: U21(X1,X2,X3,mark(X4)) -> U21(X1,X2,X3,X4) 44: U21(active(X1),X2,X3,X4) -> U21(X1,X2,X3,X4) 45: U21(X1,active(X2),X3,X4) -> U21(X1,X2,X3,X4) 46: U21(X1,X2,active(X3),X4) -> U21(X1,X2,X3,X4) 47: U21(X1,X2,X3,active(X4)) -> U21(X1,X2,X3,X4) 48: U22(mark(X1),X2,X3,X4) -> U22(X1,X2,X3,X4) 49: U22(X1,mark(X2),X3,X4) -> U22(X1,X2,X3,X4) 50: U22(X1,X2,mark(X3),X4) -> U22(X1,X2,X3,X4) 51: U22(X1,X2,X3,mark(X4)) -> U22(X1,X2,X3,X4) 52: U22(active(X1),X2,X3,X4) -> U22(X1,X2,X3,X4) 53: U22(X1,active(X2),X3,X4) -> U22(X1,X2,X3,X4) 54: U22(X1,X2,active(X3),X4) -> U22(X1,X2,X3,X4) 55: U22(X1,X2,X3,active(X4)) -> U22(X1,X2,X3,X4) 56: U23(mark(X1),X2,X3,X4) -> U23(X1,X2,X3,X4) 57: U23(X1,mark(X2),X3,X4) -> U23(X1,X2,X3,X4) 58: U23(X1,X2,mark(X3),X4) -> U23(X1,X2,X3,X4) 59: U23(X1,X2,X3,mark(X4)) -> U23(X1,X2,X3,X4) 60: U23(active(X1),X2,X3,X4) -> U23(X1,X2,X3,X4) 61: U23(X1,active(X2),X3,X4) -> U23(X1,X2,X3,X4) 62: U23(X1,X2,active(X3),X4) -> U23(X1,X2,X3,X4) 63: U23(X1,X2,X3,active(X4)) -> U23(X1,X2,X3,X4) 64: take(mark(X1),X2) -> take(X1,X2) 65: take(X1,mark(X2)) -> take(X1,X2) 66: take(active(X1),X2) -> take(X1,X2) 67: take(X1,active(X2)) -> take(X1,X2) Dependency Pairs: #1: #active(zeros) -> #mark(cons(0,zeros)) #2: #active(zeros) -> #cons(0,zeros) #3: #active(U11(tt,L)) -> #mark(U12(tt,L)) #4: #active(U11(tt,L)) -> #U12(tt,L) #5: #active(U12(tt,L)) -> #mark(s(length(L))) #6: #active(U12(tt,L)) -> #s(length(L)) #7: #active(U12(tt,L)) -> #length(L) #8: #active(U21(tt,IL,M,N)) -> #mark(U22(tt,IL,M,N)) #9: #active(U21(tt,IL,M,N)) -> #U22(tt,IL,M,N) #10: #active(U22(tt,IL,M,N)) -> #mark(U23(tt,IL,M,N)) #11: #active(U22(tt,IL,M,N)) -> #U23(tt,IL,M,N) #12: #active(U23(tt,IL,M,N)) -> #mark(cons(N,take(M,IL))) #13: #active(U23(tt,IL,M,N)) -> #cons(N,take(M,IL)) #14: #active(U23(tt,IL,M,N)) -> #take(M,IL) #15: #active(length(nil)) -> #mark(0) #16: #active(length(cons(N,L))) -> #mark(U11(tt,L)) #17: #active(length(cons(N,L))) -> #U11(tt,L) #18: #active(take(0,IL)) -> #mark(nil) #19: #active(take(s(M),cons(N,IL))) -> #mark(U21(tt,IL,M,N)) #20: #active(take(s(M),cons(N,IL))) -> #U21(tt,IL,M,N) #21: #mark(zeros) -> #active(zeros) #22: #mark(cons(X1,X2)) -> #active(cons(mark(X1),X2)) #23: #mark(cons(X1,X2)) -> #cons(mark(X1),X2) #24: #mark(cons(X1,X2)) -> #mark(X1) #25: #mark(0) -> #active(0) #26: #mark(U11(X1,X2)) -> #active(U11(mark(X1),X2)) #27: #mark(U11(X1,X2)) -> #U11(mark(X1),X2) #28: #mark(U11(X1,X2)) -> #mark(X1) #29: #mark(tt) -> #active(tt) #30: #mark(U12(X1,X2)) -> #active(U12(mark(X1),X2)) #31: #mark(U12(X1,X2)) -> #U12(mark(X1),X2) #32: #mark(U12(X1,X2)) -> #mark(X1) #33: #mark(s(X)) -> #active(s(mark(X))) #34: #mark(s(X)) -> #s(mark(X)) #35: #mark(s(X)) -> #mark(X) #36: #mark(length(X)) -> #active(length(mark(X))) #37: #mark(length(X)) -> #length(mark(X)) #38: #mark(length(X)) -> #mark(X) #39: #mark(U21(X1,X2,X3,X4)) -> #active(U21(mark(X1),X2,X3,X4)) #40: #mark(U21(X1,X2,X3,X4)) -> #U21(mark(X1),X2,X3,X4) #41: #mark(U21(X1,X2,X3,X4)) -> #mark(X1) #42: #mark(U22(X1,X2,X3,X4)) -> #active(U22(mark(X1),X2,X3,X4)) #43: #mark(U22(X1,X2,X3,X4)) -> #U22(mark(X1),X2,X3,X4) #44: #mark(U22(X1,X2,X3,X4)) -> #mark(X1) #45: #mark(U23(X1,X2,X3,X4)) -> #active(U23(mark(X1),X2,X3,X4)) #46: #mark(U23(X1,X2,X3,X4)) -> #U23(mark(X1),X2,X3,X4) #47: #mark(U23(X1,X2,X3,X4)) -> #mark(X1) #48: #mark(take(X1,X2)) -> #active(take(mark(X1),mark(X2))) #49: #mark(take(X1,X2)) -> #take(mark(X1),mark(X2)) #50: #mark(take(X1,X2)) -> #mark(X1) #51: #mark(take(X1,X2)) -> #mark(X2) #52: #mark(nil) -> #active(nil) #53: #cons(mark(X1),X2) -> #cons(X1,X2) #54: #cons(X1,mark(X2)) -> #cons(X1,X2) #55: #cons(active(X1),X2) -> #cons(X1,X2) #56: #cons(X1,active(X2)) -> #cons(X1,X2) #57: #U11(mark(X1),X2) -> #U11(X1,X2) #58: #U11(X1,mark(X2)) -> #U11(X1,X2) #59: #U11(active(X1),X2) -> #U11(X1,X2) #60: #U11(X1,active(X2)) -> #U11(X1,X2) #61: #U12(mark(X1),X2) -> #U12(X1,X2) #62: #U12(X1,mark(X2)) -> #U12(X1,X2) #63: #U12(active(X1),X2) -> #U12(X1,X2) #64: #U12(X1,active(X2)) -> #U12(X1,X2) #65: #s(mark(X)) -> #s(X) #66: #s(active(X)) -> #s(X) #67: #length(mark(X)) -> #length(X) #68: #length(active(X)) -> #length(X) #69: #U21(mark(X1),X2,X3,X4) -> #U21(X1,X2,X3,X4) #70: #U21(X1,mark(X2),X3,X4) -> #U21(X1,X2,X3,X4) #71: #U21(X1,X2,mark(X3),X4) -> #U21(X1,X2,X3,X4) #72: #U21(X1,X2,X3,mark(X4)) -> #U21(X1,X2,X3,X4) #73: #U21(active(X1),X2,X3,X4) -> #U21(X1,X2,X3,X4) #74: #U21(X1,active(X2),X3,X4) -> #U21(X1,X2,X3,X4) #75: #U21(X1,X2,active(X3),X4) -> #U21(X1,X2,X3,X4) #76: #U21(X1,X2,X3,active(X4)) -> #U21(X1,X2,X3,X4) #77: #U22(mark(X1),X2,X3,X4) -> #U22(X1,X2,X3,X4) #78: #U22(X1,mark(X2),X3,X4) -> #U22(X1,X2,X3,X4) #79: #U22(X1,X2,mark(X3),X4) -> #U22(X1,X2,X3,X4) #80: #U22(X1,X2,X3,mark(X4)) -> #U22(X1,X2,X3,X4) #81: #U22(active(X1),X2,X3,X4) -> #U22(X1,X2,X3,X4) #82: #U22(X1,active(X2),X3,X4) -> #U22(X1,X2,X3,X4) #83: #U22(X1,X2,active(X3),X4) -> #U22(X1,X2,X3,X4) #84: #U22(X1,X2,X3,active(X4)) -> #U22(X1,X2,X3,X4) #85: #U23(mark(X1),X2,X3,X4) -> #U23(X1,X2,X3,X4) #86: #U23(X1,mark(X2),X3,X4) -> #U23(X1,X2,X3,X4) #87: #U23(X1,X2,mark(X3),X4) -> #U23(X1,X2,X3,X4) #88: #U23(X1,X2,X3,mark(X4)) -> #U23(X1,X2,X3,X4) #89: #U23(active(X1),X2,X3,X4) -> #U23(X1,X2,X3,X4) #90: #U23(X1,active(X2),X3,X4) -> #U23(X1,X2,X3,X4) #91: #U23(X1,X2,active(X3),X4) -> #U23(X1,X2,X3,X4) #92: #U23(X1,X2,X3,active(X4)) -> #U23(X1,X2,X3,X4) #93: #take(mark(X1),X2) -> #take(X1,X2) #94: #take(X1,mark(X2)) -> #take(X1,X2) #95: #take(active(X1),X2) -> #take(X1,X2) #96: #take(X1,active(X2)) -> #take(X1,X2) Number of SCCs: 10 SCC { #65 #66 } QKBOS(sum)... removes: #65 I(active) = x1 \pi(active) = 1 I(#s) = x1 \pi(#s) = [1] I(mark) = x1 \pi(mark) = [1] PREC: #s = mark USABLE RULES: { } Number of SCCs: 10 SCC { #66 } QKBOS(sum)... removes: #66 I(active) = 1 + x1 \pi(active) = [1] I(#s) = x1 \pi(#s) = 1 PREC: active USABLE RULES: { } Number of SCCs: 9 SCC { #67 #68 } QKBOS(sum)... removes: #67 I(#length) = x1 \pi(#length) = 1 I(active) = x1 \pi(active) = 1 I(mark) = x1 \pi(mark) = [1] PREC: mark USABLE RULES: { } Number of SCCs: 9 SCC { #68 } QKBOS(sum)... removes: #68 I(#length) = x1 \pi(#length) = 1 I(active) = 1 + x1 \pi(active) = [1] PREC: active USABLE RULES: { } Number of SCCs: 8 SCC { #53 #54 #55 #56 } QKBOS(sum)... removes: #54 I(active) = x1 \pi(active) = 1 I(#cons) = x2 \pi(#cons) = 2 I(mark) = x1 \pi(mark) = [1] PREC: mark USABLE RULES: { } Number of SCCs: 8 SCC { #53 #55 #56 } QKBOS(sum)... removes: #53 #55 I(active) = 1 + x1 \pi(active) = [1] I(#cons) = 2 + x1 \pi(#cons) = [1] I(mark) = 1 + x1 \pi(mark) = [1] PREC: #cons > mark > active USABLE RULES: { } Number of SCCs: 8 SCC { #56 } QKBOS(sum)... removes: #56 I(active) = 1 + x1 \pi(active) = [1] I(#cons) = x1 + x2 \pi(#cons) = [1,2] PREC: active = #cons USABLE RULES: { } Number of SCCs: 7 SCC { #61 #62 #63 #64 } QKBOS(sum)... removes: #62 I(active) = x1 \pi(active) = 1 I(#U12) = x2 \pi(#U12) = 2 I(mark) = x1 \pi(mark) = [1] PREC: mark USABLE RULES: { } Number of SCCs: 7 SCC { #61 #63 #64 } QKBOS(sum)... removes: #61 #63 I(active) = 1 + x1 \pi(active) = [1] I(#U12) = 2 + x1 \pi(#U12) = [1] I(mark) = 1 + x1 \pi(mark) = [1] PREC: #U12 > mark > active USABLE RULES: { } Number of SCCs: 7 SCC { #64 } QKBOS(sum)... removes: #64 I(active) = 1 + x1 \pi(active) = [1] I(#U12) = x1 + x2 \pi(#U12) = [1,2] PREC: active = #U12 USABLE RULES: { } Number of SCCs: 6 SCC { #57 #58 #59 #60 } QKBOS(sum)... removes: #58 I(active) = x1 \pi(active) = 1 I(#U11) = x2 \pi(#U11) = 2 I(mark) = x1 \pi(mark) = [1] PREC: mark USABLE RULES: { } Number of SCCs: 6 SCC { #57 #59 #60 } QKBOS(sum)... removes: #57 #59 I(active) = 1 + x1 \pi(active) = [1] I(#U11) = 2 + x1 \pi(#U11) = [1] I(mark) = 1 + x1 \pi(mark) = [1] PREC: #U11 > mark > active USABLE RULES: { } Number of SCCs: 6 SCC { #60 } QKBOS(sum)... removes: #60 I(active) = 1 + x1 \pi(active) = [1] I(#U11) = x1 + x2 \pi(#U11) = [1,2] PREC: active = #U11 USABLE RULES: { } Number of SCCs: 5 SCC { #93 #94 #95 #96 } QKBOS(sum)... removes: #94 I(active) = x1 \pi(active) = 1 I(#take) = x2 \pi(#take) = 2 I(mark) = x1 \pi(mark) = [1] PREC: mark USABLE RULES: { } Number of SCCs: 5 SCC { #93 #95 #96 } QKBOS(sum)... removes: #93 #95 I(active) = 1 + x1 \pi(active) = [1] I(#take) = 2 + x1 \pi(#take) = [1] I(mark) = 1 + x1 \pi(mark) = [1] PREC: #take > mark > active USABLE RULES: { } Number of SCCs: 5 SCC { #96 } QKBOS(sum)... removes: #96 I(active) = 1 + x1 \pi(active) = [1] I(#take) = x1 + x2 \pi(#take) = [1,2] PREC: active = #take USABLE RULES: { } Number of SCCs: 4 SCC { #77 #78 #79 #80 #81 #82 #83 #84 } QKBOS(sum)... removes: #77 #80 #81 #84 I(#U22) = 2 + x1 + x4 \pi(#U22) = [4,1] I(active) = 1 + x1 \pi(active) = [1] I(mark) = x1 \pi(mark) = [1] PREC: #U22 = mark > active USABLE RULES: { } Number of SCCs: 4 SCC { #78 #79 #82 #83 } QKBOS(sum)... removes: #79 I(#U22) = 1 + x1 + x3 + x4 \pi(#U22) = [4,1,3] I(active) = x1 \pi(active) = 1 I(mark) = 2 + x1 \pi(mark) = [1] PREC: #U22 > mark USABLE RULES: { } Number of SCCs: 4 SCC { #78 #82 #83 } QKBOS(sum)... removes: #78 I(#U22) = x2 + x4 \pi(#U22) = [2,4] I(active) = x1 \pi(active) = 1 I(mark) = x1 \pi(mark) = [1] PREC: #U22 = mark USABLE RULES: { } Number of SCCs: 4 SCC { #82 #83 } QKBOS(sum)... removes: #82 #83 I(#U22) = x1 + x2 + x3 \pi(#U22) = [1,2,3] I(active) = x1 \pi(active) = [1] PREC: #U22 = active USABLE RULES: { } Number of SCCs: 3 SCC { #85 #86 #87 #88 #89 #90 #91 #92 } QKBOS(sum)... removes: #85 #88 #89 #92 I(#U23) = 2 + x1 + x4 \pi(#U23) = [4,1] I(active) = 1 + x1 \pi(active) = [1] I(mark) = x1 \pi(mark) = [1] PREC: #U23 = mark > active USABLE RULES: { } Number of SCCs: 3 SCC { #86 #87 #90 #91 } QKBOS(sum)... removes: #87 I(#U23) = 1 + x1 + x3 + x4 \pi(#U23) = [4,1,3] I(active) = x1 \pi(active) = 1 I(mark) = 2 + x1 \pi(mark) = [1] PREC: #U23 > mark USABLE RULES: { } Number of SCCs: 3 SCC { #86 #90 #91 } QKBOS(sum)... removes: #86 I(#U23) = x2 + x4 \pi(#U23) = [2,4] I(active) = x1 \pi(active) = 1 I(mark) = x1 \pi(mark) = [1] PREC: #U23 = mark USABLE RULES: { } Number of SCCs: 3 SCC { #90 #91 } QKBOS(sum)... removes: #90 #91 I(#U23) = x1 + x2 + x3 \pi(#U23) = [1,2,3] I(active) = x1 \pi(active) = [1] PREC: #U23 = active USABLE RULES: { } Number of SCCs: 2 SCC { #69 #70 #71 #72 #73 #74 #75 #76 } QKBOS(sum)... removes: #69 #72 #73 #76 I(#U21) = 2 + x1 + x4 \pi(#U21) = [4,1] I(active) = 1 + x1 \pi(active) = [1] I(mark) = x1 \pi(mark) = [1] PREC: #U21 = mark > active USABLE RULES: { } Number of SCCs: 2 SCC { #70 #71 #74 #75 } QKBOS(sum)... removes: #71 I(#U21) = 1 + x1 + x3 + x4 \pi(#U21) = [4,1,3] I(active) = x1 \pi(active) = 1 I(mark) = 2 + x1 \pi(mark) = [1] PREC: #U21 > mark USABLE RULES: { } Number of SCCs: 2 SCC { #70 #74 #75 } QKBOS(sum)... removes: #70 I(#U21) = x2 + x4 \pi(#U21) = [2,4] I(active) = x1 \pi(active) = 1 I(mark) = x1 \pi(mark) = [1] PREC: #U21 = mark USABLE RULES: { } Number of SCCs: 2 SCC { #74 #75 } QKBOS(sum)... removes: #74 #75 I(#U21) = x1 + x2 + x3 \pi(#U21) = [1,2,3] I(active) = x1 \pi(active) = [1] PREC: #U21 = active USABLE RULES: { } Number of SCCs: 1 SCC { #1 #3 #5 #8 #10 #12 #16 #19 #21 #22 #24 #26 #28 #30 #32 #33 #35 #36 #38 #39 #41 #42 #44 #45 #47 #48 #50 #51 } QKBOS(sum)... removes: #22 #33 I(zeros) = 6 I(U21) = 6 \pi(U21) = [] I(cons) = 3 \pi(cons) = [] I(U22) = 6 \pi(U22) = [] I(U23) = 6 \pi(U23) = [] I(active) = x1 \pi(active) = 1 I(#mark) = 6 \pi(#mark) = [] I(0) = 2 I(tt) = 2 I(U11) = 6 \pi(U11) = [] I(U12) = 6 \pi(U12) = [] I(s) = 3 \pi(s) = [] I(#active) = x1 \pi(#active) = 1 I(nil) = 5 I(length) = 6 \pi(length) = [] I(mark) = 4 \pi(mark) = [] I(take) = 6 \pi(take) = [] PREC: nil > 0 > zeros = U21 = cons = U22 = U23 = #mark = tt = U11 = U12 = s = length = mark = take USABLE RULES: { 67..24 } Number of SCCs: 1 SCC { #1 #3 #5 #8 #10 #12 #16 #19 #21 #24 #26 #28 #30 #32 #35 #36 #38 #39 #41 #42 #44 #45 #47 #48 #50 #51 } QKBOS(sum)... failed.