MAYBE

We are left with following problem, upon which TcT provides the
certificate MAYBE.

Strict Trs:
  { cond1(true(), x, y) -> cond2(gr(x, y), x, y)
  , cond2(true(), x, y) -> cond1(gr0(x), y, y)
  , cond2(false(), x, y) -> cond1(gr0(x), p(x), y)
  , gr(0(), x) -> false()
  , gr(s(x), 0()) -> true()
  , gr(s(x), s(y)) -> gr(x, y)
  , gr0(0()) -> false()
  , gr0(s(x)) -> true()
  , p(0()) -> 0()
  , p(s(x)) -> x }
Obligation:
  innermost runtime complexity
Answer:
  MAYBE

We add following dependency tuples:

Strict DPs:
  { cond1^#(true(), x, y) -> c_1(cond2^#(gr(x, y), x, y), gr^#(x, y))
  , cond2^#(true(), x, y) -> c_2(cond1^#(gr0(x), y, y), gr0^#(x))
  , cond2^#(false(), x, y) ->
    c_3(cond1^#(gr0(x), p(x), y), gr0^#(x), p^#(x))
  , gr^#(0(), x) -> c_4()
  , gr^#(s(x), 0()) -> c_5()
  , gr^#(s(x), s(y)) -> c_6(gr^#(x, y))
  , gr0^#(0()) -> c_7()
  , gr0^#(s(x)) -> c_8()
  , p^#(0()) -> c_9()
  , p^#(s(x)) -> c_10() }

and mark the set of starting terms.

We are left with following problem, upon which TcT provides the
certificate MAYBE.

Strict DPs:
  { cond1^#(true(), x, y) -> c_1(cond2^#(gr(x, y), x, y), gr^#(x, y))
  , cond2^#(true(), x, y) -> c_2(cond1^#(gr0(x), y, y), gr0^#(x))
  , cond2^#(false(), x, y) ->
    c_3(cond1^#(gr0(x), p(x), y), gr0^#(x), p^#(x))
  , gr^#(0(), x) -> c_4()
  , gr^#(s(x), 0()) -> c_5()
  , gr^#(s(x), s(y)) -> c_6(gr^#(x, y))
  , gr0^#(0()) -> c_7()
  , gr0^#(s(x)) -> c_8()
  , p^#(0()) -> c_9()
  , p^#(s(x)) -> c_10() }
Weak Trs:
  { cond1(true(), x, y) -> cond2(gr(x, y), x, y)
  , cond2(true(), x, y) -> cond1(gr0(x), y, y)
  , cond2(false(), x, y) -> cond1(gr0(x), p(x), y)
  , gr(0(), x) -> false()
  , gr(s(x), 0()) -> true()
  , gr(s(x), s(y)) -> gr(x, y)
  , gr0(0()) -> false()
  , gr0(s(x)) -> true()
  , p(0()) -> 0()
  , p(s(x)) -> x }
Obligation:
  innermost runtime complexity
Answer:
  MAYBE

We estimate the number of application of {4,5,7,8,9,10} by
applications of Pre({4,5,7,8,9,10}) = {1,2,3,6}. Here rules are
labeled as follows:

  DPs:
    { 1: cond1^#(true(), x, y) ->
         c_1(cond2^#(gr(x, y), x, y), gr^#(x, y))
    , 2: cond2^#(true(), x, y) -> c_2(cond1^#(gr0(x), y, y), gr0^#(x))
    , 3: cond2^#(false(), x, y) ->
         c_3(cond1^#(gr0(x), p(x), y), gr0^#(x), p^#(x))
    , 4: gr^#(0(), x) -> c_4()
    , 5: gr^#(s(x), 0()) -> c_5()
    , 6: gr^#(s(x), s(y)) -> c_6(gr^#(x, y))
    , 7: gr0^#(0()) -> c_7()
    , 8: gr0^#(s(x)) -> c_8()
    , 9: p^#(0()) -> c_9()
    , 10: p^#(s(x)) -> c_10() }

We are left with following problem, upon which TcT provides the
certificate MAYBE.

Strict DPs:
  { cond1^#(true(), x, y) -> c_1(cond2^#(gr(x, y), x, y), gr^#(x, y))
  , cond2^#(true(), x, y) -> c_2(cond1^#(gr0(x), y, y), gr0^#(x))
  , cond2^#(false(), x, y) ->
    c_3(cond1^#(gr0(x), p(x), y), gr0^#(x), p^#(x))
  , gr^#(s(x), s(y)) -> c_6(gr^#(x, y)) }
Weak DPs:
  { gr^#(0(), x) -> c_4()
  , gr^#(s(x), 0()) -> c_5()
  , gr0^#(0()) -> c_7()
  , gr0^#(s(x)) -> c_8()
  , p^#(0()) -> c_9()
  , p^#(s(x)) -> c_10() }
Weak Trs:
  { cond1(true(), x, y) -> cond2(gr(x, y), x, y)
  , cond2(true(), x, y) -> cond1(gr0(x), y, y)
  , cond2(false(), x, y) -> cond1(gr0(x), p(x), y)
  , gr(0(), x) -> false()
  , gr(s(x), 0()) -> true()
  , gr(s(x), s(y)) -> gr(x, y)
  , gr0(0()) -> false()
  , gr0(s(x)) -> true()
  , p(0()) -> 0()
  , p(s(x)) -> x }
Obligation:
  innermost runtime complexity
Answer:
  MAYBE

The following weak DPs constitute a sub-graph of the DG that is
closed under successors. The DPs are removed.

{ gr^#(0(), x) -> c_4()
, gr^#(s(x), 0()) -> c_5()
, gr0^#(0()) -> c_7()
, gr0^#(s(x)) -> c_8()
, p^#(0()) -> c_9()
, p^#(s(x)) -> c_10() }

We are left with following problem, upon which TcT provides the
certificate MAYBE.

Strict DPs:
  { cond1^#(true(), x, y) -> c_1(cond2^#(gr(x, y), x, y), gr^#(x, y))
  , cond2^#(true(), x, y) -> c_2(cond1^#(gr0(x), y, y), gr0^#(x))
  , cond2^#(false(), x, y) ->
    c_3(cond1^#(gr0(x), p(x), y), gr0^#(x), p^#(x))
  , gr^#(s(x), s(y)) -> c_6(gr^#(x, y)) }
Weak Trs:
  { cond1(true(), x, y) -> cond2(gr(x, y), x, y)
  , cond2(true(), x, y) -> cond1(gr0(x), y, y)
  , cond2(false(), x, y) -> cond1(gr0(x), p(x), y)
  , gr(0(), x) -> false()
  , gr(s(x), 0()) -> true()
  , gr(s(x), s(y)) -> gr(x, y)
  , gr0(0()) -> false()
  , gr0(s(x)) -> true()
  , p(0()) -> 0()
  , p(s(x)) -> x }
Obligation:
  innermost runtime complexity
Answer:
  MAYBE

Due to missing edges in the dependency-graph, the right-hand sides
of following rules could be simplified:

  { cond2^#(true(), x, y) -> c_2(cond1^#(gr0(x), y, y), gr0^#(x))
  , cond2^#(false(), x, y) ->
    c_3(cond1^#(gr0(x), p(x), y), gr0^#(x), p^#(x)) }

We are left with following problem, upon which TcT provides the
certificate MAYBE.

Strict DPs:
  { cond1^#(true(), x, y) -> c_1(cond2^#(gr(x, y), x, y), gr^#(x, y))
  , cond2^#(true(), x, y) -> c_2(cond1^#(gr0(x), y, y))
  , cond2^#(false(), x, y) -> c_3(cond1^#(gr0(x), p(x), y))
  , gr^#(s(x), s(y)) -> c_4(gr^#(x, y)) }
Weak Trs:
  { cond1(true(), x, y) -> cond2(gr(x, y), x, y)
  , cond2(true(), x, y) -> cond1(gr0(x), y, y)
  , cond2(false(), x, y) -> cond1(gr0(x), p(x), y)
  , gr(0(), x) -> false()
  , gr(s(x), 0()) -> true()
  , gr(s(x), s(y)) -> gr(x, y)
  , gr0(0()) -> false()
  , gr0(s(x)) -> true()
  , p(0()) -> 0()
  , p(s(x)) -> x }
Obligation:
  innermost runtime complexity
Answer:
  MAYBE

We replace rewrite rules by usable rules:

  Weak Usable Rules:
    { gr(0(), x) -> false()
    , gr(s(x), 0()) -> true()
    , gr(s(x), s(y)) -> gr(x, y)
    , gr0(0()) -> false()
    , gr0(s(x)) -> true()
    , p(0()) -> 0()
    , p(s(x)) -> x }

We are left with following problem, upon which TcT provides the
certificate MAYBE.

Strict DPs:
  { cond1^#(true(), x, y) -> c_1(cond2^#(gr(x, y), x, y), gr^#(x, y))
  , cond2^#(true(), x, y) -> c_2(cond1^#(gr0(x), y, y))
  , cond2^#(false(), x, y) -> c_3(cond1^#(gr0(x), p(x), y))
  , gr^#(s(x), s(y)) -> c_4(gr^#(x, y)) }
Weak Trs:
  { gr(0(), x) -> false()
  , gr(s(x), 0()) -> true()
  , gr(s(x), s(y)) -> gr(x, y)
  , gr0(0()) -> false()
  , gr0(s(x)) -> true()
  , p(0()) -> 0()
  , p(s(x)) -> x }
Obligation:
  innermost runtime complexity
Answer:
  MAYBE

None of the processors succeeded.

Details of failed attempt(s):
-----------------------------
1) 'matrices' failed due to the following reason:
   
   None of the processors succeeded.
   
   Details of failed attempt(s):
   -----------------------------
   1) 'matrix interpretation of dimension 4' failed due to the
      following reason:
      
      The input cannot be shown compatible
   
   2) 'matrix interpretation of dimension 3' failed due to the
      following reason:
      
      The input cannot be shown compatible
   
   3) 'matrix interpretation of dimension 3' failed due to the
      following reason:
      
      The input cannot be shown compatible
   
   4) 'matrix interpretation of dimension 2' failed due to the
      following reason:
      
      The input cannot be shown compatible
   
   5) 'matrix interpretation of dimension 2' failed due to the
      following reason:
      
      The input cannot be shown compatible
   
   6) 'matrix interpretation of dimension 1' failed due to the
      following reason:
      
      The input cannot be shown compatible
   

2) 'empty' failed due to the following reason:
   
   Empty strict component of the problem is NOT empty.


Arrrr..