Input TRS: 1: eq(0,0) -> true 2: eq(0,s(x)) -> false 3: eq(s(x),0) -> false 4: eq(s(x),s(y)) -> eq(x,y) 5: or(true,y) -> true 6: or(false,y) -> y 7: union(empty,h) -> h 8: union(edge(x,y,i),h) -> edge(x,y,union(i,h)) 9: isEmpty(empty) -> true 10: isEmpty(edge(x,y,i)) -> false 11: from(edge(x,y,i)) -> x 12: to(edge(x,y,i)) -> y 13: rest(edge(x,y,i)) -> i 14: rest(empty) -> empty 15: reach(x,y,i,h) -> if1(eq(x,y),isEmpty(i),eq(x,from(i)),eq(y,to(i)),x,y,i,h) 16: if1(true,b1,b2,b3,x,y,i,h) -> true 17: if1(false,b1,b2,b3,x,y,i,h) -> if2(b1,b2,b3,x,y,i,h) 18: if2(true,b2,b3,x,y,i,h) -> false 19: if2(false,b2,b3,x,y,i,h) -> if3(b2,b3,x,y,i,h) 20: if3(false,b3,x,y,i,h) -> reach(x,y,rest(i),edge(from(i),to(i),h)) 21: if3(true,b3,x,y,i,h) -> if4(b3,x,y,i,h) 22: if4(true,x,y,i,h) -> true 23: if4(false,x,y,i,h) -> or(reach(x,y,rest(i),h),reach(to(i),y,union(rest(i),h),empty)) Dependency Pairs: #1: #eq(s(x),s(y)) -> #eq(x,y) #2: #union(edge(x,y,i),h) -> #union(i,h) #3: #reach(x,y,i,h) -> #if1(eq(x,y),isEmpty(i),eq(x,from(i)),eq(y,to(i)),x,y,i,h) #4: #reach(x,y,i,h) -> #eq(x,y) #5: #reach(x,y,i,h) -> #isEmpty(i) #6: #reach(x,y,i,h) -> #eq(x,from(i)) #7: #reach(x,y,i,h) -> #from(i) #8: #reach(x,y,i,h) -> #eq(y,to(i)) #9: #reach(x,y,i,h) -> #to(i) #10: #if1(false,b1,b2,b3,x,y,i,h) -> #if2(b1,b2,b3,x,y,i,h) #11: #if2(false,b2,b3,x,y,i,h) -> #if3(b2,b3,x,y,i,h) #12: #if3(false,b3,x,y,i,h) -> #reach(x,y,rest(i),edge(from(i),to(i),h)) #13: #if3(false,b3,x,y,i,h) -> #rest(i) #14: #if3(false,b3,x,y,i,h) -> #from(i) #15: #if3(false,b3,x,y,i,h) -> #to(i) #16: #if3(true,b3,x,y,i,h) -> #if4(b3,x,y,i,h) #17: #if4(false,x,y,i,h) -> #or(reach(x,y,rest(i),h),reach(to(i),y,union(rest(i),h),empty)) #18: #if4(false,x,y,i,h) -> #reach(x,y,rest(i),h) #19: #if4(false,x,y,i,h) -> #rest(i) #20: #if4(false,x,y,i,h) -> #reach(to(i),y,union(rest(i),h),empty) #21: #if4(false,x,y,i,h) -> #to(i) #22: #if4(false,x,y,i,h) -> #union(rest(i),h) #23: #if4(false,x,y,i,h) -> #rest(i) Number of SCCs: 3 SCC { #1 } QKBOS(sum)... removes: #1 I(#eq) = 1 + x1 + x2 \pi(#eq) = [2,1] I(s) = x1 \pi(s) = [1] PREC: #eq = s USABLE RULES: { } Number of SCCs: 2 SCC { #2 } QKBOS(sum)... removes: #2 I(#union) = x1 + x2 \pi(#union) = [2,1] I(edge) = x1 + x3 \pi(edge) = [1,3] PREC: #union > edge USABLE RULES: { } Number of SCCs: 1 SCC { #3 #10 #11 #12 #16 #18 #20 } QKBOS(sum)... failed.