R
↳Dependency Pair Analysis
ADMIT(x, .(u, .(v, .(w, z)))) -> COND(=(sum(x, u, v), w), .(u, .(v, .(w, admit(carry(x, u, v), z)))))
ADMIT(x, .(u, .(v, .(w, z)))) -> ADMIT(carry(x, u, v), z)
R
↳DPs
→DP Problem 1
↳Argument Filtering and Ordering
ADMIT(x, .(u, .(v, .(w, z)))) -> ADMIT(carry(x, u, v), z)
admit(x, nil) -> nil
admit(x, .(u, .(v, .(w, z)))) -> cond(=(sum(x, u, v), w), .(u, .(v, .(w, admit(carry(x, u, v), z)))))
cond(true, y) -> y
ADMIT(x, .(u, .(v, .(w, z)))) -> ADMIT(carry(x, u, v), z)
admit(x, nil) -> nil
admit(x, .(u, .(v, .(w, z)))) -> cond(=(sum(x, u, v), w), .(u, .(v, .(w, admit(carry(x, u, v), z)))))
cond(true, y) -> y
POL(cond(x1, x2)) = x1 + x2 POL(carry(x1, x2, x3)) = x1 + x2 + x3 POL(=(x1, x2)) = x1 + x2 POL(nil) = 1 POL(true) = 1 POL(.(x1, x2)) = 1 + x1 + x2 POL(sum) = 0 POL(w) = 0 POL(ADMIT(x1, x2)) = 1 + x1 + x2
ADMIT(x1, x2) -> ADMIT(x1, x2)
.(x1, x2) -> .(x1, x2)
carry(x1, x2, x3) -> carry(x1, x2, x3)
admit(x1, x2) -> x2
cond(x1, x2) -> cond(x1, x2)
=(x1, x2) -> =(x1, x2)
sum(x1, x2, x3) -> sum
R
↳DPs
→DP Problem 1
↳AFS
→DP Problem 2
↳Dependency Graph
admit(x, nil) -> nil
admit(x, .(u, .(v, .(w, z)))) -> cond(=(sum(x, u, v), w), .(u, .(v, .(w, admit(carry(x, u, v), z)))))
cond(true, y) -> y