R
↳Dependency Pair Analysis
REV(ls) -> R1(ls, empty)
R1(cons(x, k), a) -> R1(k, cons(x, a))
R
↳DPs
→DP Problem 1
↳Argument Filtering and Ordering
R1(cons(x, k), a) -> R1(k, cons(x, a))
rev(ls) -> r1(ls, empty)
r1(empty, a) -> a
r1(cons(x, k), a) -> r1(k, cons(x, a))
R1(cons(x, k), a) -> R1(k, cons(x, a))
rev(ls) -> r1(ls, empty)
r1(empty, a) -> a
r1(cons(x, k), a) -> r1(k, cons(x, a))
POL(rev(x1)) = x1 POL(cons(x1, x2)) = 1 + x1 + x2 POL(r1(x1, x2)) = x1 + x2 POL(empty) = 0
R1(x1, x2) -> x1
cons(x1, x2) -> cons(x1, x2)
rev(x1) -> rev(x1)
r1(x1, x2) -> r1(x1, x2)
R
↳DPs
→DP Problem 1
↳AFS
→DP Problem 2
↳Dependency Graph
rev(ls) -> r1(ls, empty)
r1(empty, a) -> a
r1(cons(x, k), a) -> r1(k, cons(x, a))