The rewrite relation of the following TRS is considered.
| eq(0,0) | → | true | (1) |
| eq(0,s(x)) | → | false | (2) |
| eq(s(x),0) | → | false | (3) |
| eq(s(x),s(y)) | → | eq(x,y) | (4) |
| or(true,y) | → | true | (5) |
| or(false,y) | → | y | (6) |
| union(empty,h) | → | h | (7) |
| union(edge(x,y,i),h) | → | edge(x,y,union(i,h)) | (8) |
| reach(x,y,empty,h) | → | false | (9) |
| reach(x,y,edge(u,v,i),h) | → | if_reach_1(eq(x,u),x,y,edge(u,v,i),h) | (10) |
| if_reach_1(true,x,y,edge(u,v,i),h) | → | if_reach_2(eq(y,v),x,y,edge(u,v,i),h) | (11) |
| if_reach_2(true,x,y,edge(u,v,i),h) | → | true | (12) |
| if_reach_2(false,x,y,edge(u,v,i),h) | → | or(reach(x,y,i,h),reach(v,y,union(i,h),empty)) | (13) |
| if_reach_1(false,x,y,edge(u,v,i),h) | → | reach(x,y,i,edge(u,v,h)) | (14) |
| if_reach_2#(false,x,y,edge(u,v,i),h) | → | reach#(x,y,i,h) | (15) |
| if_reach_1#(true,x,y,edge(u,v,i),h) | → | eq#(y,v) | (16) |
| reach#(x,y,edge(u,v,i),h) | → | eq#(x,u) | (17) |
| eq#(s(x),s(y)) | → | eq#(x,y) | (18) |
| if_reach_1#(false,x,y,edge(u,v,i),h) | → | reach#(x,y,i,edge(u,v,h)) | (19) |
| union#(edge(x,y,i),h) | → | union#(i,h) | (20) |
| if_reach_1#(true,x,y,edge(u,v,i),h) | → | if_reach_2#(eq(y,v),x,y,edge(u,v,i),h) | (21) |
| if_reach_2#(false,x,y,edge(u,v,i),h) | → | reach#(v,y,union(i,h),empty) | (22) |
| if_reach_2#(false,x,y,edge(u,v,i),h) | → | or#(reach(x,y,i,h),reach(v,y,union(i,h),empty)) | (23) |
| reach#(x,y,edge(u,v,i),h) | → | if_reach_1#(eq(x,u),x,y,edge(u,v,i),h) | (24) |
| if_reach_2#(false,x,y,edge(u,v,i),h) | → | union#(i,h) | (25) |
The dependency pairs are split into 3 components.
| reach#(x,y,edge(u,v,i),h) | → | if_reach_1#(eq(x,u),x,y,edge(u,v,i),h) | (24) |
| if_reach_2#(false,x,y,edge(u,v,i),h) | → | reach#(v,y,union(i,h),empty) | (22) |
| if_reach_1#(true,x,y,edge(u,v,i),h) | → | if_reach_2#(eq(y,v),x,y,edge(u,v,i),h) | (21) |
| if_reach_1#(false,x,y,edge(u,v,i),h) | → | reach#(x,y,i,edge(u,v,h)) | (19) |
| if_reach_2#(false,x,y,edge(u,v,i),h) | → | reach#(x,y,i,h) | (15) |
| [s(x1)] | = | 1 |
| [if_reach_1#(x1,...,x5)] | = | x2 + x3 + x4 + x5 + 2 |
| [edge(x1, x2, x3)] | = | x2 + x3 + 89206 |
| [if_reach_2#(x1,...,x5)] | = | x1 + x2 + x3 + x4 + x5 + 0 |
| [eq(x1, x2)] | = | 1 |
| [false] | = | 1 |
| [reach(x1,...,x4)] | = | 0 |
| [if_reach_2(x1,...,x5)] | = | 0 |
| [true] | = | 1 |
| [reach#(x1,...,x4)] | = | x1 + x2 + x3 + x4 + 2 |
| [eq#(x1, x2)] | = | 0 |
| [0] | = | 0 |
| [union(x1, x2)] | = | x1 + x2 + 36336 |
| [or(x1, x2)] | = | 0 |
| [empty] | = | 52868 |
| [if_reach_1(x1,...,x5)] | = | 0 |
| [or#(x1, x2)] | = | 0 |
| [union#(x1, x2)] | = | 0 |
| eq(s(x),s(y)) | → | eq(x,y) | (4) |
| union(edge(x,y,i),h) | → | edge(x,y,union(i,h)) | (8) |
| eq(0,0) | → | true | (1) |
| eq(s(x),0) | → | false | (3) |
| union(empty,h) | → | h | (7) |
| eq(0,s(x)) | → | false | (2) |
| if_reach_2#(false,x,y,edge(u,v,i),h) | → | reach#(v,y,union(i,h),empty) | (22) |
| if_reach_1#(true,x,y,edge(u,v,i),h) | → | if_reach_2#(eq(y,v),x,y,edge(u,v,i),h) | (21) |
| if_reach_2#(false,x,y,edge(u,v,i),h) | → | reach#(x,y,i,h) | (15) |
The dependency pairs are split into 1 component.
| reach#(x,y,edge(u,v,i),h) | → | if_reach_1#(eq(x,u),x,y,edge(u,v,i),h) | (24) |
| if_reach_1#(false,x,y,edge(u,v,i),h) | → | reach#(x,y,i,edge(u,v,h)) | (19) |
| [s(x1)] | = | 1 |
| [if_reach_1#(x1,...,x5)] | = | x2 + x4 + 2 |
| [edge(x1, x2, x3)] | = | x2 + x3 + 2 |
| [if_reach_2#(x1,...,x5)] | = | x1 + 0 |
| [eq(x1, x2)] | = | 1 |
| [false] | = | 1 |
| [reach(x1,...,x4)] | = | 0 |
| [if_reach_2(x1,...,x5)] | = | 0 |
| [true] | = | 1 |
| [reach#(x1,...,x4)] | = | x1 + x3 + 3 |
| [eq#(x1, x2)] | = | 0 |
| [0] | = | 0 |
| [union(x1, x2)] | = | x1 + x2 + 36336 |
| [or(x1, x2)] | = | 0 |
| [empty] | = | 52868 |
| [if_reach_1(x1,...,x5)] | = | 0 |
| [or#(x1, x2)] | = | 0 |
| [union#(x1, x2)] | = | 0 |
| eq(s(x),s(y)) | → | eq(x,y) | (4) |
| union(edge(x,y,i),h) | → | edge(x,y,union(i,h)) | (8) |
| eq(0,0) | → | true | (1) |
| eq(s(x),0) | → | false | (3) |
| union(empty,h) | → | h | (7) |
| eq(0,s(x)) | → | false | (2) |
| reach#(x,y,edge(u,v,i),h) | → | if_reach_1#(eq(x,u),x,y,edge(u,v,i),h) | (24) |
| if_reach_1#(false,x,y,edge(u,v,i),h) | → | reach#(x,y,i,edge(u,v,h)) | (19) |
The dependency pairs are split into 0 components.
| union#(edge(x,y,i),h) | → | union#(i,h) | (20) |
| [s(x1)] | = | 1 |
| [if_reach_1#(x1,...,x5)] | = | 2 |
| [edge(x1, x2, x3)] | = | x2 + x3 + 2 |
| [if_reach_2#(x1,...,x5)] | = | x1 + 0 |
| [eq(x1, x2)] | = | 1 |
| [false] | = | 1 |
| [reach(x1,...,x4)] | = | 0 |
| [if_reach_2(x1,...,x5)] | = | 0 |
| [true] | = | 1 |
| [reach#(x1,...,x4)] | = | x3 + 3 |
| [eq#(x1, x2)] | = | 0 |
| [0] | = | 0 |
| [union(x1, x2)] | = | x1 + x2 + 1 |
| [or(x1, x2)] | = | 0 |
| [empty] | = | 1 |
| [if_reach_1(x1,...,x5)] | = | 0 |
| [or#(x1, x2)] | = | 0 |
| [union#(x1, x2)] | = | x1 + 0 |
| eq(s(x),s(y)) | → | eq(x,y) | (4) |
| union(edge(x,y,i),h) | → | edge(x,y,union(i,h)) | (8) |
| eq(0,0) | → | true | (1) |
| eq(s(x),0) | → | false | (3) |
| union(empty,h) | → | h | (7) |
| eq(0,s(x)) | → | false | (2) |
| union#(edge(x,y,i),h) | → | union#(i,h) | (20) |
The dependency pairs are split into 0 components.
| eq#(s(x),s(y)) | → | eq#(x,y) | (18) |
| [s(x1)] | = | x1 + 1 |
| [if_reach_1#(x1,...,x5)] | = | 2 |
| [edge(x1, x2, x3)] | = | x2 + x3 + 2 |
| [if_reach_2#(x1,...,x5)] | = | x1 + 0 |
| [eq(x1, x2)] | = | 1 |
| [false] | = | 1 |
| [reach(x1,...,x4)] | = | 0 |
| [if_reach_2(x1,...,x5)] | = | 0 |
| [true] | = | 1 |
| [reach#(x1,...,x4)] | = | x3 + 3 |
| [eq#(x1, x2)] | = | x1 + 0 |
| [0] | = | 0 |
| [union(x1, x2)] | = | x1 + x2 + 1 |
| [or(x1, x2)] | = | 0 |
| [empty] | = | 1 |
| [if_reach_1(x1,...,x5)] | = | 0 |
| [or#(x1, x2)] | = | 0 |
| [union#(x1, x2)] | = | 0 |
| eq(s(x),s(y)) | → | eq(x,y) | (4) |
| union(edge(x,y,i),h) | → | edge(x,y,union(i,h)) | (8) |
| eq(0,0) | → | true | (1) |
| eq(s(x),0) | → | false | (3) |
| union(empty,h) | → | h | (7) |
| eq(0,s(x)) | → | false | (2) |
| eq#(s(x),s(y)) | → | eq#(x,y) | (18) |
The dependency pairs are split into 0 components.