R
↳Dependency Pair Analysis
EQ(s(x), s(y)) -> EQ(x, y)
UNION(edge(x, y, i), h) -> UNION(i, h)
REACH(x, y, edge(u, v, i), h) -> IFREACH1(eq(x, u), x, y, edge(u, v, i), h)
REACH(x, y, edge(u, v, i), h) -> EQ(x, u)
IFREACH1(true, x, y, edge(u, v, i), h) -> IFREACH2(eq(y, v), x, y, edge(u, v, i), h)
IFREACH1(true, x, y, edge(u, v, i), h) -> EQ(y, v)
IFREACH1(false, x, y, edge(u, v, i), h) -> REACH(x, y, i, edge(u, v, h))
IFREACH2(false, x, y, edge(u, v, i), h) -> OR(reach(x, y, i, h), reach(v, y, union(i, h), empty))
IFREACH2(false, x, y, edge(u, v, i), h) -> REACH(x, y, i, h)
IFREACH2(false, x, y, edge(u, v, i), h) -> REACH(v, y, union(i, h), empty)
IFREACH2(false, x, y, edge(u, v, i), h) -> UNION(i, h)
R
↳DPs
→DP Problem 1
↳Usable Rules (Innermost)
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
EQ(s(x), s(y)) -> EQ(x, y)
eq(0, 0) -> true
eq(0, s(x)) -> false
eq(s(x), 0) -> false
eq(s(x), s(y)) -> eq(x, y)
or(true, y) -> true
or(false, y) -> y
union(empty, h) -> h
union(edge(x, y, i), h) -> edge(x, y, union(i, h))
reach(x, y, empty, h) -> false
reach(x, y, edge(u, v, i), h) -> ifreach1(eq(x, u), x, y, edge(u, v, i), h)
ifreach1(true, x, y, edge(u, v, i), h) -> ifreach2(eq(y, v), x, y, edge(u, v, i), h)
ifreach1(false, x, y, edge(u, v, i), h) -> reach(x, y, i, edge(u, v, h))
ifreach2(true, x, y, edge(u, v, i), h) -> true
ifreach2(false, x, y, edge(u, v, i), h) -> or(reach(x, y, i, h), reach(v, y, union(i, h), empty))
innermost
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 4
↳Size-Change Principle
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
EQ(s(x), s(y)) -> EQ(x, y)
none
innermost
|
|
trivial
s(x1) -> s(x1)
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳Usable Rules (Innermost)
→DP Problem 3
↳UsableRules
UNION(edge(x, y, i), h) -> UNION(i, h)
eq(0, 0) -> true
eq(0, s(x)) -> false
eq(s(x), 0) -> false
eq(s(x), s(y)) -> eq(x, y)
or(true, y) -> true
or(false, y) -> y
union(empty, h) -> h
union(edge(x, y, i), h) -> edge(x, y, union(i, h))
reach(x, y, empty, h) -> false
reach(x, y, edge(u, v, i), h) -> ifreach1(eq(x, u), x, y, edge(u, v, i), h)
ifreach1(true, x, y, edge(u, v, i), h) -> ifreach2(eq(y, v), x, y, edge(u, v, i), h)
ifreach1(false, x, y, edge(u, v, i), h) -> reach(x, y, i, edge(u, v, h))
ifreach2(true, x, y, edge(u, v, i), h) -> true
ifreach2(false, x, y, edge(u, v, i), h) -> or(reach(x, y, i, h), reach(v, y, union(i, h), empty))
innermost
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 5
↳Size-Change Principle
→DP Problem 3
↳UsableRules
UNION(edge(x, y, i), h) -> UNION(i, h)
none
innermost
|
|
trivial
edge(x1, x2, x3) -> edge(x1, x2, x3)
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳Usable Rules (Innermost)
IFREACH1(false, x, y, edge(u, v, i), h) -> REACH(x, y, i, edge(u, v, h))
IFREACH2(false, x, y, edge(u, v, i), h) -> REACH(v, y, union(i, h), empty)
IFREACH2(false, x, y, edge(u, v, i), h) -> REACH(x, y, i, h)
IFREACH1(true, x, y, edge(u, v, i), h) -> IFREACH2(eq(y, v), x, y, edge(u, v, i), h)
REACH(x, y, edge(u, v, i), h) -> IFREACH1(eq(x, u), x, y, edge(u, v, i), h)
eq(0, 0) -> true
eq(0, s(x)) -> false
eq(s(x), 0) -> false
eq(s(x), s(y)) -> eq(x, y)
or(true, y) -> true
or(false, y) -> y
union(empty, h) -> h
union(edge(x, y, i), h) -> edge(x, y, union(i, h))
reach(x, y, empty, h) -> false
reach(x, y, edge(u, v, i), h) -> ifreach1(eq(x, u), x, y, edge(u, v, i), h)
ifreach1(true, x, y, edge(u, v, i), h) -> ifreach2(eq(y, v), x, y, edge(u, v, i), h)
ifreach1(false, x, y, edge(u, v, i), h) -> reach(x, y, i, edge(u, v, h))
ifreach2(true, x, y, edge(u, v, i), h) -> true
ifreach2(false, x, y, edge(u, v, i), h) -> or(reach(x, y, i, h), reach(v, y, union(i, h), empty))
innermost
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
→DP Problem 6
↳Negative Polynomial Order
IFREACH1(false, x, y, edge(u, v, i), h) -> REACH(x, y, i, edge(u, v, h))
IFREACH2(false, x, y, edge(u, v, i), h) -> REACH(v, y, union(i, h), empty)
IFREACH2(false, x, y, edge(u, v, i), h) -> REACH(x, y, i, h)
IFREACH1(true, x, y, edge(u, v, i), h) -> IFREACH2(eq(y, v), x, y, edge(u, v, i), h)
REACH(x, y, edge(u, v, i), h) -> IFREACH1(eq(x, u), x, y, edge(u, v, i), h)
union(empty, h) -> h
union(edge(x, y, i), h) -> edge(x, y, union(i, h))
eq(0, 0) -> true
eq(s(x), s(y)) -> eq(x, y)
eq(s(x), 0) -> false
eq(0, s(x)) -> false
innermost
IFREACH2(false, x, y, edge(u, v, i), h) -> REACH(v, y, union(i, h), empty)
IFREACH2(false, x, y, edge(u, v, i), h) -> REACH(x, y, i, h)
union(empty, h) -> h
union(edge(x, y, i), h) -> edge(x, y, union(i, h))
eq(0, 0) -> true
eq(s(x), s(y)) -> eq(x, y)
eq(s(x), 0) -> false
eq(0, s(x)) -> false
POL( IFREACH2(x1, ..., x5) ) = x4 + x5
POL( edge(x1, ..., x3) ) = x3 + 1
POL( REACH(x1, ..., x4) ) = x3 + x4
POL( union(x1, x2) ) = x1 + x2
POL( empty ) = 0
POL( IFREACH1(x1, ..., x5) ) = x4 + x5
POL( eq(x1, x2) ) = 0
POL( true ) = 0
POL( false ) = 0
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
→DP Problem 6
↳Neg POLO
...
→DP Problem 7
↳Dependency Graph
IFREACH1(false, x, y, edge(u, v, i), h) -> REACH(x, y, i, edge(u, v, h))
IFREACH1(true, x, y, edge(u, v, i), h) -> IFREACH2(eq(y, v), x, y, edge(u, v, i), h)
REACH(x, y, edge(u, v, i), h) -> IFREACH1(eq(x, u), x, y, edge(u, v, i), h)
union(empty, h) -> h
union(edge(x, y, i), h) -> edge(x, y, union(i, h))
eq(0, 0) -> true
eq(s(x), s(y)) -> eq(x, y)
eq(s(x), 0) -> false
eq(0, s(x)) -> false
innermost
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
→DP Problem 6
↳Neg POLO
...
→DP Problem 8
↳Usable Rules (Innermost)
REACH(x, y, edge(u, v, i), h) -> IFREACH1(eq(x, u), x, y, edge(u, v, i), h)
IFREACH1(false, x, y, edge(u, v, i), h) -> REACH(x, y, i, edge(u, v, h))
union(empty, h) -> h
union(edge(x, y, i), h) -> edge(x, y, union(i, h))
eq(0, 0) -> true
eq(s(x), s(y)) -> eq(x, y)
eq(s(x), 0) -> false
eq(0, s(x)) -> false
innermost
R
↳DPs
→DP Problem 1
↳UsableRules
→DP Problem 2
↳UsableRules
→DP Problem 3
↳UsableRules
→DP Problem 6
↳Neg POLO
...
→DP Problem 9
↳Size-Change Principle
REACH(x, y, edge(u, v, i), h) -> IFREACH1(eq(x, u), x, y, edge(u, v, i), h)
IFREACH1(false, x, y, edge(u, v, i), h) -> REACH(x, y, i, edge(u, v, h))
eq(0, 0) -> true
eq(s(x), s(y)) -> eq(x, y)
eq(s(x), 0) -> false
eq(0, s(x)) -> false
innermost
|
|
|
|
trivial
edge(x1, x2, x3) -> edge(x1, x2, x3)