R
↳Dependency Pair Analysis
ATAIL(cons(X, XS)) -> MARK(XS)
MARK(zeros) -> AZEROS
MARK(tail(X)) -> ATAIL(mark(X))
MARK(tail(X)) -> MARK(X)
MARK(cons(X1, X2)) -> MARK(X1)
R
↳DPs
→DP Problem 1
↳Narrowing Transformation
MARK(cons(X1, X2)) -> MARK(X1)
MARK(tail(X)) -> MARK(X)
MARK(tail(X)) -> ATAIL(mark(X))
ATAIL(cons(X, XS)) -> MARK(XS)
azeros -> cons(0, zeros)
azeros -> zeros
atail(cons(X, XS)) -> mark(XS)
atail(X) -> tail(X)
mark(zeros) -> azeros
mark(tail(X)) -> atail(mark(X))
mark(cons(X1, X2)) -> cons(mark(X1), X2)
mark(0) -> 0
innermost
four new Dependency Pairs are created:
MARK(tail(X)) -> ATAIL(mark(X))
MARK(tail(zeros)) -> ATAIL(azeros)
MARK(tail(tail(X''))) -> ATAIL(atail(mark(X'')))
MARK(tail(cons(X1', X2'))) -> ATAIL(cons(mark(X1'), X2'))
MARK(tail(0)) -> ATAIL(0)
R
↳DPs
→DP Problem 1
↳Nar
→DP Problem 2
↳Remaining Obligation(s)
MARK(tail(cons(X1', X2'))) -> ATAIL(cons(mark(X1'), X2'))
MARK(tail(tail(X''))) -> ATAIL(atail(mark(X'')))
ATAIL(cons(X, XS)) -> MARK(XS)
MARK(tail(zeros)) -> ATAIL(azeros)
MARK(tail(X)) -> MARK(X)
MARK(cons(X1, X2)) -> MARK(X1)
azeros -> cons(0, zeros)
azeros -> zeros
atail(cons(X, XS)) -> mark(XS)
atail(X) -> tail(X)
mark(zeros) -> azeros
mark(tail(X)) -> atail(mark(X))
mark(cons(X1, X2)) -> cons(mark(X1), X2)
mark(0) -> 0
innermost