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: reach(x,y,empty,h) -> false 10: reach(x,y,edge(u,v,i),h) -> if_reach_1(eq(x,u),x,y,edge(u,v,i),h) 11: if_reach_1(true,x,y,edge(u,v,i),h) -> if_reach_2(eq(y,v),x,y,edge(u,v,i),h) 12: if_reach_2(true,x,y,edge(u,v,i),h) -> true 13: if_reach_2(false,x,y,edge(u,v,i),h) -> or(reach(x,y,i,h),reach(v,y,union(i,h),empty)) 14: if_reach_1(false,x,y,edge(u,v,i),h) -> reach(x,y,i,edge(u,v,h)) 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,edge(u,v,i),h) -> #if_reach_1(eq(x,u),x,y,edge(u,v,i),h) #4: #reach(x,y,edge(u,v,i),h) -> #eq(x,u) #5: #if_reach_1(true,x,y,edge(u,v,i),h) -> #if_reach_2(eq(y,v),x,y,edge(u,v,i),h) #6: #if_reach_1(true,x,y,edge(u,v,i),h) -> #eq(y,v) #7: #if_reach_2(false,x,y,edge(u,v,i),h) -> #or(reach(x,y,i,h),reach(v,y,union(i,h),empty)) #8: #if_reach_2(false,x,y,edge(u,v,i),h) -> #reach(x,y,i,h) #9: #if_reach_2(false,x,y,edge(u,v,i),h) -> #reach(v,y,union(i,h),empty) #10: #if_reach_2(false,x,y,edge(u,v,i),h) -> #union(i,h) #11: #if_reach_1(false,x,y,edge(u,v,i),h) -> #reach(x,y,i,edge(u,v,h)) Number of SCCs: 3 SCC { #1 } QKBOPS(sum)... removes: #1 I(#eq) = x1 + x2 \pi(#eq) = [] I(s) = 1 + x1 \pi(s) = [1] PREC: #eq > s USABLE RULES: { } Number of SCCs: 2 SCC { #2 } QKBOPS(sum)... removes: #2 I(#union) = x1 + x2 \pi(#union) = [1,2] I(edge) = x1 + x2 + x3 \pi(edge) = [1,2,3] PREC: #union > edge USABLE RULES: { } Number of SCCs: 1 SCC { #3 #5 #8 #9 #11 } QKBOPS(sum)... removes: #3 #5 #8 #9 #11 I(edge) = 3 + x1 + x2 + x3 \pi(edge) = [] I(empty) = 2 I(false) = 21 I(0) = 1 I(eq) = 8 + x1 + x2 \pi(eq) = [] I(true) = 5 I(s) = 10 + x1 \pi(s) = [] I(#if_reach_1) = 2 + x4 + x5 \pi(#if_reach_1) = [4] I(#if_reach_2) = 1 + x4 + x5 \pi(#if_reach_2) = [] I(union) = 1 + x1 + x2 \pi(union) = [] I(#reach) = 2 + x3 + x4 \pi(#reach) = [3,4] PREC: edge = union > 0 > true > eq > s = #if_reach_1 = #reach > false = #if_reach_2 > empty USABLE RULES: { 8 7 } Number of SCCs: 0