R
↳Dependency Pair Analysis
MERGE(++(x, y), ++(u, v)) -> MERGE(y, ++(u, v))
MERGE(++(x, y), ++(u, v)) -> MERGE(++(x, y), v)
R
↳DPs
→DP Problem 1
↳Argument Filtering and Ordering
MERGE(++(x, y), ++(u, v)) -> MERGE(y, ++(u, v))
merge(x, nil) -> x
merge(nil, y) -> y
merge(++(x, y), ++(u, v)) -> ++(x, merge(y, ++(u, v)))
merge(++(x, y), ++(u, v)) -> ++(u, merge(++(x, y), v))
MERGE(++(x, y), ++(u, v)) -> MERGE(y, ++(u, v))
POL(v) = 0 POL(++(x1, x2)) = 1 + x1 + x2 POL(MERGE(x1, x2)) = x1 + x2 POL(u) = 0
MERGE(x1, x2) -> MERGE(x1, x2)
++(x1, x2) -> ++(x1, x2)
R
↳DPs
→DP Problem 1
↳AFS
→DP Problem 2
↳Dependency Graph
merge(x, nil) -> x
merge(nil, y) -> y
merge(++(x, y), ++(u, v)) -> ++(x, merge(y, ++(u, v)))
merge(++(x, y), ++(u, v)) -> ++(u, merge(++(x, y), v))