We are left with following problem, upon which TcT provides the
certificate YES(?,O(n^1)).

Strict Trs:
  { f(0()) -> cons(0())
  , f(s(0())) -> f(p(s(0())))
  , p(s(0())) -> 0() }
Obligation:
  runtime complexity
Answer:
  YES(?,O(n^1))

The input is overlay and right-linear. Switching to innermost
rewriting.

We are left with following problem, upon which TcT provides the
certificate YES(?,O(n^1)).

Strict Trs:
  { f(0()) -> cons(0())
  , f(s(0())) -> f(p(s(0())))
  , p(s(0())) -> 0() }
Obligation:
  innermost runtime complexity
Answer:
  YES(?,O(n^1))

The problem is match-bounded by 2. The enriched problem is
compatible with the following automaton.
{ f_0(2) -> 1
, f_1(4) -> 1
, 0_0() -> 2
, 0_1() -> 1
, 0_1() -> 3
, 0_2() -> 4
, cons_0(2) -> 2
, cons_1(3) -> 1
, cons_2(4) -> 1
, s_0(2) -> 2
, s_1(3) -> 5
, p_0(2) -> 1
, p_1(5) -> 4 }

Hurray, we answered YES(?,O(n^1))