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

Strict Trs:
  { le(0(), y) -> true()
  , le(s(x), 0()) -> false()
  , le(s(x), s(y)) -> le(x, y)
  , pred(s(x)) -> x
  , minus(x, 0()) -> x
  , minus(x, s(y)) -> pred(minus(x, y))
  , gcd(0(), y) -> y
  , gcd(s(x), 0()) -> s(x)
  , gcd(s(x), s(y)) -> if_gcd(le(y, x), s(x), s(y))
  , if_gcd(true(), s(x), s(y)) -> gcd(minus(x, y), s(y))
  , if_gcd(false(), s(x), s(y)) -> gcd(minus(y, x), s(x)) }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(n^2))

We add the following dependency tuples:

Strict DPs:
  { le^#(0(), y) -> c_1()
  , le^#(s(x), 0()) -> c_2()
  , le^#(s(x), s(y)) -> c_3(le^#(x, y))
  , pred^#(s(x)) -> c_4()
  , minus^#(x, 0()) -> c_5()
  , minus^#(x, s(y)) -> c_6(pred^#(minus(x, y)), minus^#(x, y))
  , gcd^#(0(), y) -> c_7()
  , gcd^#(s(x), 0()) -> c_8()
  , gcd^#(s(x), s(y)) ->
    c_9(if_gcd^#(le(y, x), s(x), s(y)), le^#(y, x))
  , if_gcd^#(true(), s(x), s(y)) ->
    c_10(gcd^#(minus(x, y), s(y)), minus^#(x, y))
  , if_gcd^#(false(), s(x), s(y)) ->
    c_11(gcd^#(minus(y, x), s(x)), minus^#(y, x)) }

and mark the set of starting terms.

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

Strict DPs:
  { le^#(0(), y) -> c_1()
  , le^#(s(x), 0()) -> c_2()
  , le^#(s(x), s(y)) -> c_3(le^#(x, y))
  , pred^#(s(x)) -> c_4()
  , minus^#(x, 0()) -> c_5()
  , minus^#(x, s(y)) -> c_6(pred^#(minus(x, y)), minus^#(x, y))
  , gcd^#(0(), y) -> c_7()
  , gcd^#(s(x), 0()) -> c_8()
  , gcd^#(s(x), s(y)) ->
    c_9(if_gcd^#(le(y, x), s(x), s(y)), le^#(y, x))
  , if_gcd^#(true(), s(x), s(y)) ->
    c_10(gcd^#(minus(x, y), s(y)), minus^#(x, y))
  , if_gcd^#(false(), s(x), s(y)) ->
    c_11(gcd^#(minus(y, x), s(x)), minus^#(y, x)) }
Weak Trs:
  { le(0(), y) -> true()
  , le(s(x), 0()) -> false()
  , le(s(x), s(y)) -> le(x, y)
  , pred(s(x)) -> x
  , minus(x, 0()) -> x
  , minus(x, s(y)) -> pred(minus(x, y))
  , gcd(0(), y) -> y
  , gcd(s(x), 0()) -> s(x)
  , gcd(s(x), s(y)) -> if_gcd(le(y, x), s(x), s(y))
  , if_gcd(true(), s(x), s(y)) -> gcd(minus(x, y), s(y))
  , if_gcd(false(), s(x), s(y)) -> gcd(minus(y, x), s(x)) }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(n^2))

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

  DPs:
    { 1: le^#(0(), y) -> c_1()
    , 2: le^#(s(x), 0()) -> c_2()
    , 3: le^#(s(x), s(y)) -> c_3(le^#(x, y))
    , 4: pred^#(s(x)) -> c_4()
    , 5: minus^#(x, 0()) -> c_5()
    , 6: minus^#(x, s(y)) -> c_6(pred^#(minus(x, y)), minus^#(x, y))
    , 7: gcd^#(0(), y) -> c_7()
    , 8: gcd^#(s(x), 0()) -> c_8()
    , 9: gcd^#(s(x), s(y)) ->
         c_9(if_gcd^#(le(y, x), s(x), s(y)), le^#(y, x))
    , 10: if_gcd^#(true(), s(x), s(y)) ->
          c_10(gcd^#(minus(x, y), s(y)), minus^#(x, y))
    , 11: if_gcd^#(false(), s(x), s(y)) ->
          c_11(gcd^#(minus(y, x), s(x)), minus^#(y, x)) }

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

Strict DPs:
  { le^#(s(x), s(y)) -> c_3(le^#(x, y))
  , minus^#(x, s(y)) -> c_6(pred^#(minus(x, y)), minus^#(x, y))
  , gcd^#(s(x), s(y)) ->
    c_9(if_gcd^#(le(y, x), s(x), s(y)), le^#(y, x))
  , if_gcd^#(true(), s(x), s(y)) ->
    c_10(gcd^#(minus(x, y), s(y)), minus^#(x, y))
  , if_gcd^#(false(), s(x), s(y)) ->
    c_11(gcd^#(minus(y, x), s(x)), minus^#(y, x)) }
Weak DPs:
  { le^#(0(), y) -> c_1()
  , le^#(s(x), 0()) -> c_2()
  , pred^#(s(x)) -> c_4()
  , minus^#(x, 0()) -> c_5()
  , gcd^#(0(), y) -> c_7()
  , gcd^#(s(x), 0()) -> c_8() }
Weak Trs:
  { le(0(), y) -> true()
  , le(s(x), 0()) -> false()
  , le(s(x), s(y)) -> le(x, y)
  , pred(s(x)) -> x
  , minus(x, 0()) -> x
  , minus(x, s(y)) -> pred(minus(x, y))
  , gcd(0(), y) -> y
  , gcd(s(x), 0()) -> s(x)
  , gcd(s(x), s(y)) -> if_gcd(le(y, x), s(x), s(y))
  , if_gcd(true(), s(x), s(y)) -> gcd(minus(x, y), s(y))
  , if_gcd(false(), s(x), s(y)) -> gcd(minus(y, x), s(x)) }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(n^2))

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

{ le^#(0(), y) -> c_1()
, le^#(s(x), 0()) -> c_2()
, pred^#(s(x)) -> c_4()
, minus^#(x, 0()) -> c_5()
, gcd^#(0(), y) -> c_7()
, gcd^#(s(x), 0()) -> c_8() }

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

Strict DPs:
  { le^#(s(x), s(y)) -> c_3(le^#(x, y))
  , minus^#(x, s(y)) -> c_6(pred^#(minus(x, y)), minus^#(x, y))
  , gcd^#(s(x), s(y)) ->
    c_9(if_gcd^#(le(y, x), s(x), s(y)), le^#(y, x))
  , if_gcd^#(true(), s(x), s(y)) ->
    c_10(gcd^#(minus(x, y), s(y)), minus^#(x, y))
  , if_gcd^#(false(), s(x), s(y)) ->
    c_11(gcd^#(minus(y, x), s(x)), minus^#(y, x)) }
Weak Trs:
  { le(0(), y) -> true()
  , le(s(x), 0()) -> false()
  , le(s(x), s(y)) -> le(x, y)
  , pred(s(x)) -> x
  , minus(x, 0()) -> x
  , minus(x, s(y)) -> pred(minus(x, y))
  , gcd(0(), y) -> y
  , gcd(s(x), 0()) -> s(x)
  , gcd(s(x), s(y)) -> if_gcd(le(y, x), s(x), s(y))
  , if_gcd(true(), s(x), s(y)) -> gcd(minus(x, y), s(y))
  , if_gcd(false(), s(x), s(y)) -> gcd(minus(y, x), s(x)) }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(n^2))

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

  { minus^#(x, s(y)) -> c_6(pred^#(minus(x, y)), minus^#(x, y)) }

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

Strict DPs:
  { le^#(s(x), s(y)) -> c_1(le^#(x, y))
  , minus^#(x, s(y)) -> c_2(minus^#(x, y))
  , gcd^#(s(x), s(y)) ->
    c_3(if_gcd^#(le(y, x), s(x), s(y)), le^#(y, x))
  , if_gcd^#(true(), s(x), s(y)) ->
    c_4(gcd^#(minus(x, y), s(y)), minus^#(x, y))
  , if_gcd^#(false(), s(x), s(y)) ->
    c_5(gcd^#(minus(y, x), s(x)), minus^#(y, x)) }
Weak Trs:
  { le(0(), y) -> true()
  , le(s(x), 0()) -> false()
  , le(s(x), s(y)) -> le(x, y)
  , pred(s(x)) -> x
  , minus(x, 0()) -> x
  , minus(x, s(y)) -> pred(minus(x, y))
  , gcd(0(), y) -> y
  , gcd(s(x), 0()) -> s(x)
  , gcd(s(x), s(y)) -> if_gcd(le(y, x), s(x), s(y))
  , if_gcd(true(), s(x), s(y)) -> gcd(minus(x, y), s(y))
  , if_gcd(false(), s(x), s(y)) -> gcd(minus(y, x), s(x)) }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(n^2))

We replace rewrite rules by usable rules:

  Weak Usable Rules:
    { le(0(), y) -> true()
    , le(s(x), 0()) -> false()
    , le(s(x), s(y)) -> le(x, y)
    , pred(s(x)) -> x
    , minus(x, 0()) -> x
    , minus(x, s(y)) -> pred(minus(x, y)) }

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

Strict DPs:
  { le^#(s(x), s(y)) -> c_1(le^#(x, y))
  , minus^#(x, s(y)) -> c_2(minus^#(x, y))
  , gcd^#(s(x), s(y)) ->
    c_3(if_gcd^#(le(y, x), s(x), s(y)), le^#(y, x))
  , if_gcd^#(true(), s(x), s(y)) ->
    c_4(gcd^#(minus(x, y), s(y)), minus^#(x, y))
  , if_gcd^#(false(), s(x), s(y)) ->
    c_5(gcd^#(minus(y, x), s(x)), minus^#(y, x)) }
Weak Trs:
  { le(0(), y) -> true()
  , le(s(x), 0()) -> false()
  , le(s(x), s(y)) -> le(x, y)
  , pred(s(x)) -> x
  , minus(x, 0()) -> x
  , minus(x, s(y)) -> pred(minus(x, y)) }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(n^2))

We decompose the input problem according to the dependency graph
into the upper component

  { gcd^#(s(x), s(y)) ->
    c_3(if_gcd^#(le(y, x), s(x), s(y)), le^#(y, x))
  , if_gcd^#(true(), s(x), s(y)) ->
    c_4(gcd^#(minus(x, y), s(y)), minus^#(x, y))
  , if_gcd^#(false(), s(x), s(y)) ->
    c_5(gcd^#(minus(y, x), s(x)), minus^#(y, x)) }

and lower component

  { le^#(s(x), s(y)) -> c_1(le^#(x, y))
  , minus^#(x, s(y)) -> c_2(minus^#(x, y)) }

Further, following extension rules are added to the lower
component.

{ gcd^#(s(x), s(y)) -> le^#(y, x)
, gcd^#(s(x), s(y)) -> if_gcd^#(le(y, x), s(x), s(y))
, if_gcd^#(true(), s(x), s(y)) -> minus^#(x, y)
, if_gcd^#(true(), s(x), s(y)) -> gcd^#(minus(x, y), s(y))
, if_gcd^#(false(), s(x), s(y)) -> minus^#(y, x)
, if_gcd^#(false(), s(x), s(y)) -> gcd^#(minus(y, x), s(x)) }

TcT solves the upper component with certificate YES(O(1),O(n^1)).

Sub-proof:
----------
  We are left with following problem, upon which TcT provides the
  certificate YES(O(1),O(n^1)).
  
  Strict DPs:
    { gcd^#(s(x), s(y)) ->
      c_3(if_gcd^#(le(y, x), s(x), s(y)), le^#(y, x))
    , if_gcd^#(true(), s(x), s(y)) ->
      c_4(gcd^#(minus(x, y), s(y)), minus^#(x, y))
    , if_gcd^#(false(), s(x), s(y)) ->
      c_5(gcd^#(minus(y, x), s(x)), minus^#(y, x)) }
  Weak Trs:
    { le(0(), y) -> true()
    , le(s(x), 0()) -> false()
    , le(s(x), s(y)) -> le(x, y)
    , pred(s(x)) -> x
    , minus(x, 0()) -> x
    , minus(x, s(y)) -> pred(minus(x, y)) }
  Obligation:
    innermost runtime complexity
  Answer:
    YES(O(1),O(n^1))
  
  We use the processor 'matrix interpretation of dimension 1' to
  orient following rules strictly.
  
  DPs:
    { 1: gcd^#(s(x), s(y)) ->
         c_3(if_gcd^#(le(y, x), s(x), s(y)), le^#(y, x))
    , 3: if_gcd^#(false(), s(x), s(y)) ->
         c_5(gcd^#(minus(y, x), s(x)), minus^#(y, x)) }
  Trs: { pred(s(x)) -> x }
  
  Sub-proof:
  ----------
    The following argument positions are usable:
      Uargs(c_3) = {1}, Uargs(c_4) = {1}, Uargs(c_5) = {1}
    
    TcT has computed the following constructor-based matrix
    interpretation satisfying not(EDA).
    
                [le](x1, x2) = [0]                           
                                                             
                         [0] = [0]                           
                                                             
                      [true] = [0]                           
                                                             
                     [s](x1) = [1] x1 + [3]                  
                                                             
                     [false] = [0]                           
                                                             
                  [pred](x1) = [1] x1 + [0]                  
                                                             
             [minus](x1, x2) = [1] x1 + [0]                  
                                                             
              [le^#](x1, x2) = [0]                           
                                                             
           [minus^#](x1, x2) = [1]                           
                                                             
             [gcd^#](x1, x2) = [1] x1 + [1] x2 + [4]         
                                                             
      [if_gcd^#](x1, x2, x3) = [2] x1 + [1] x2 + [1] x3 + [2]
                                                             
               [c_3](x1, x2) = [1] x1 + [1] x2 + [1]         
                                                             
               [c_4](x1, x2) = [1] x1 + [1] x2 + [0]         
                                                             
               [c_5](x1, x2) = [1] x1 + [0]                  
    
    The order satisfies the following ordering constraints:
    
                         [le(0(), y)] =  [0]                                              
                                      >= [0]                                              
                                      =  [true()]                                         
                                                                                          
                      [le(s(x), 0())] =  [0]                                              
                                      >= [0]                                              
                                      =  [false()]                                        
                                                                                          
                     [le(s(x), s(y))] =  [0]                                              
                                      >= [0]                                              
                                      =  [le(x, y)]                                       
                                                                                          
                         [pred(s(x))] =  [1] x + [3]                                      
                                      >  [1] x + [0]                                      
                                      =  [x]                                              
                                                                                          
                      [minus(x, 0())] =  [1] x + [0]                                      
                                      >= [1] x + [0]                                      
                                      =  [x]                                              
                                                                                          
                     [minus(x, s(y))] =  [1] x + [0]                                      
                                      >= [1] x + [0]                                      
                                      =  [pred(minus(x, y))]                              
                                                                                          
                  [gcd^#(s(x), s(y))] =  [1] y + [1] x + [10]                             
                                      >  [1] y + [1] x + [9]                              
                                      =  [c_3(if_gcd^#(le(y, x), s(x), s(y)), le^#(y, x))]
                                                                                          
       [if_gcd^#(true(), s(x), s(y))] =  [1] y + [1] x + [8]                              
                                      >= [1] y + [1] x + [8]                              
                                      =  [c_4(gcd^#(minus(x, y), s(y)), minus^#(x, y))]   
                                                                                          
      [if_gcd^#(false(), s(x), s(y))] =  [1] y + [1] x + [8]                              
                                      >  [1] y + [1] x + [7]                              
                                      =  [c_5(gcd^#(minus(y, x), s(x)), minus^#(y, x))]   
                                                                                          
  
  We return to the main proof. Consider the set of all dependency
  pairs
  
  :
    { 1: gcd^#(s(x), s(y)) ->
         c_3(if_gcd^#(le(y, x), s(x), s(y)), le^#(y, x))
    , 2: if_gcd^#(true(), s(x), s(y)) ->
         c_4(gcd^#(minus(x, y), s(y)), minus^#(x, y))
    , 3: if_gcd^#(false(), s(x), s(y)) ->
         c_5(gcd^#(minus(y, x), s(x)), minus^#(y, x)) }
  
  Processor 'matrix interpretation of dimension 1' induces the
  complexity certificate YES(?,O(n^1)) on application of dependency
  pairs {1,3}. These cover all (indirect) predecessors of dependency
  pairs {1,2,3}, their number of application is equally bounded. The
  dependency pairs are shifted into the weak component.
  
  We are left with following problem, upon which TcT provides the
  certificate YES(O(1),O(1)).
  
  Weak DPs:
    { gcd^#(s(x), s(y)) ->
      c_3(if_gcd^#(le(y, x), s(x), s(y)), le^#(y, x))
    , if_gcd^#(true(), s(x), s(y)) ->
      c_4(gcd^#(minus(x, y), s(y)), minus^#(x, y))
    , if_gcd^#(false(), s(x), s(y)) ->
      c_5(gcd^#(minus(y, x), s(x)), minus^#(y, x)) }
  Weak Trs:
    { le(0(), y) -> true()
    , le(s(x), 0()) -> false()
    , le(s(x), s(y)) -> le(x, y)
    , pred(s(x)) -> x
    , minus(x, 0()) -> x
    , minus(x, s(y)) -> pred(minus(x, y)) }
  Obligation:
    innermost runtime complexity
  Answer:
    YES(O(1),O(1))
  
  The following weak DPs constitute a sub-graph of the DG that is
  closed under successors. The DPs are removed.
  
  { gcd^#(s(x), s(y)) ->
    c_3(if_gcd^#(le(y, x), s(x), s(y)), le^#(y, x))
  , if_gcd^#(true(), s(x), s(y)) ->
    c_4(gcd^#(minus(x, y), s(y)), minus^#(x, y))
  , if_gcd^#(false(), s(x), s(y)) ->
    c_5(gcd^#(minus(y, x), s(x)), minus^#(y, x)) }
  
  We are left with following problem, upon which TcT provides the
  certificate YES(O(1),O(1)).
  
  Weak Trs:
    { le(0(), y) -> true()
    , le(s(x), 0()) -> false()
    , le(s(x), s(y)) -> le(x, y)
    , pred(s(x)) -> x
    , minus(x, 0()) -> x
    , minus(x, s(y)) -> pred(minus(x, y)) }
  Obligation:
    innermost runtime complexity
  Answer:
    YES(O(1),O(1))
  
  No rule is usable, rules are removed from the input problem.
  
  We are left with following problem, upon which TcT provides the
  certificate YES(O(1),O(1)).
  
  Rules: Empty
  Obligation:
    innermost runtime complexity
  Answer:
    YES(O(1),O(1))
  
  Empty rules are trivially bounded

We return to the main proof.

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

Strict DPs:
  { le^#(s(x), s(y)) -> c_1(le^#(x, y))
  , minus^#(x, s(y)) -> c_2(minus^#(x, y)) }
Weak DPs:
  { gcd^#(s(x), s(y)) -> le^#(y, x)
  , gcd^#(s(x), s(y)) -> if_gcd^#(le(y, x), s(x), s(y))
  , if_gcd^#(true(), s(x), s(y)) -> minus^#(x, y)
  , if_gcd^#(true(), s(x), s(y)) -> gcd^#(minus(x, y), s(y))
  , if_gcd^#(false(), s(x), s(y)) -> minus^#(y, x)
  , if_gcd^#(false(), s(x), s(y)) -> gcd^#(minus(y, x), s(x)) }
Weak Trs:
  { le(0(), y) -> true()
  , le(s(x), 0()) -> false()
  , le(s(x), s(y)) -> le(x, y)
  , pred(s(x)) -> x
  , minus(x, 0()) -> x
  , minus(x, s(y)) -> pred(minus(x, y)) }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(n^1))

We use the processor 'Small Polynomial Path Order (PS,1-bounded)'
to orient following rules strictly.

DPs:
  { 1: le^#(s(x), s(y)) -> c_1(le^#(x, y))
  , 2: minus^#(x, s(y)) -> c_2(minus^#(x, y))
  , 3: gcd^#(s(x), s(y)) -> le^#(y, x)
  , 5: if_gcd^#(true(), s(x), s(y)) -> minus^#(x, y)
  , 6: if_gcd^#(true(), s(x), s(y)) -> gcd^#(minus(x, y), s(y))
  , 7: if_gcd^#(false(), s(x), s(y)) -> minus^#(y, x)
  , 8: if_gcd^#(false(), s(x), s(y)) -> gcd^#(minus(y, x), s(x)) }
Trs: { pred(s(x)) -> x }

Sub-proof:
----------
  The input was oriented with the instance of 'Small Polynomial Path
  Order (PS,1-bounded)' as induced by the safe mapping
  
   safe(le) = {1, 2}, safe(0) = {}, safe(true) = {}, safe(s) = {1},
   safe(false) = {}, safe(pred) = {}, safe(minus) = {},
   safe(le^#) = {}, safe(minus^#) = {1}, safe(gcd^#) = {},
   safe(if_gcd^#) = {1}, safe(c_1) = {}, safe(c_2) = {}
  
  and precedence
  
   minus > pred, if_gcd^# > minus, le^# ~ gcd^#, minus^# ~ if_gcd^#,
   gcd^# ~ if_gcd^# .
  
  Following symbols are considered recursive:
  
   {le^#, minus^#, gcd^#, if_gcd^#}
  
  The recursion depth is 1.
  
  Further, following argument filtering is employed:
  
   pi(le) = [2], pi(0) = [], pi(true) = [], pi(s) = [1],
   pi(false) = [], pi(pred) = 1, pi(minus) = 1, pi(le^#) = [1, 2],
   pi(minus^#) = [2], pi(gcd^#) = [1, 2], pi(if_gcd^#) = [2, 3],
   pi(c_1) = [1], pi(c_2) = [1]
  
  Usable defined function symbols are a subset of:
  
   {pred, minus, le^#, minus^#, gcd^#, if_gcd^#}
  
  For your convenience, here are the satisfied ordering constraints:
  
                 pi(le^#(s(x), s(y))) =  le^#(s(; x),  s(; y);)            
                                      >  c_1(le^#(x,  y;);)                
                                      =  pi(c_1(le^#(x, y)))               
                                                                           
                 pi(minus^#(x, s(y))) =  minus^#(s(; y);)                  
                                      >  c_2(minus^#(y;);)                 
                                      =  pi(c_2(minus^#(x, y)))            
                                                                           
                pi(gcd^#(s(x), s(y))) =  gcd^#(s(; x),  s(; y);)           
                                      >  le^#(y,  x;)                      
                                      =  pi(le^#(y, x))                    
                                                                           
                pi(gcd^#(s(x), s(y))) =  gcd^#(s(; x),  s(; y);)           
                                      >= if_gcd^#(s(; x),  s(; y);)        
                                      =  pi(if_gcd^#(le(y, x), s(x), s(y)))
                                                                           
     pi(if_gcd^#(true(), s(x), s(y))) =  if_gcd^#(s(; x),  s(; y);)        
                                      >  minus^#(y;)                       
                                      =  pi(minus^#(x, y))                 
                                                                           
     pi(if_gcd^#(true(), s(x), s(y))) =  if_gcd^#(s(; x),  s(; y);)        
                                      >  gcd^#(x,  s(; y);)                
                                      =  pi(gcd^#(minus(x, y), s(y)))      
                                                                           
    pi(if_gcd^#(false(), s(x), s(y))) =  if_gcd^#(s(; x),  s(; y);)        
                                      >  minus^#(x;)                       
                                      =  pi(minus^#(y, x))                 
                                                                           
    pi(if_gcd^#(false(), s(x), s(y))) =  if_gcd^#(s(; x),  s(; y);)        
                                      >  gcd^#(y,  s(; x);)                
                                      =  pi(gcd^#(minus(y, x), s(x)))      
                                                                           
                       pi(pred(s(x))) =  s(; x)                            
                                      >  x                                 
                                      =  pi(x)                             
                                                                           
                    pi(minus(x, 0())) =  x                                 
                                      >= x                                 
                                      =  pi(x)                             
                                                                           
                   pi(minus(x, s(y))) =  x                                 
                                      >= x                                 
                                      =  pi(pred(minus(x, y)))             
                                                                           

We return to the main proof. Consider the set of all dependency
pairs

:
  { 1: le^#(s(x), s(y)) -> c_1(le^#(x, y))
  , 2: minus^#(x, s(y)) -> c_2(minus^#(x, y))
  , 3: gcd^#(s(x), s(y)) -> le^#(y, x)
  , 4: gcd^#(s(x), s(y)) -> if_gcd^#(le(y, x), s(x), s(y))
  , 5: if_gcd^#(true(), s(x), s(y)) -> minus^#(x, y)
  , 6: if_gcd^#(true(), s(x), s(y)) -> gcd^#(minus(x, y), s(y))
  , 7: if_gcd^#(false(), s(x), s(y)) -> minus^#(y, x)
  , 8: if_gcd^#(false(), s(x), s(y)) -> gcd^#(minus(y, x), s(x)) }

Processor 'Small Polynomial Path Order (PS,1-bounded)' induces the
complexity certificate YES(?,O(n^1)) on application of dependency
pairs {1,2,3,5,6,7,8}. These cover all (indirect) predecessors of
dependency pairs {1,2,3,4,5,6,7,8}, their number of application is
equally bounded. The dependency pairs are shifted into the weak
component.

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

Weak DPs:
  { le^#(s(x), s(y)) -> c_1(le^#(x, y))
  , minus^#(x, s(y)) -> c_2(minus^#(x, y))
  , gcd^#(s(x), s(y)) -> le^#(y, x)
  , gcd^#(s(x), s(y)) -> if_gcd^#(le(y, x), s(x), s(y))
  , if_gcd^#(true(), s(x), s(y)) -> minus^#(x, y)
  , if_gcd^#(true(), s(x), s(y)) -> gcd^#(minus(x, y), s(y))
  , if_gcd^#(false(), s(x), s(y)) -> minus^#(y, x)
  , if_gcd^#(false(), s(x), s(y)) -> gcd^#(minus(y, x), s(x)) }
Weak Trs:
  { le(0(), y) -> true()
  , le(s(x), 0()) -> false()
  , le(s(x), s(y)) -> le(x, y)
  , pred(s(x)) -> x
  , minus(x, 0()) -> x
  , minus(x, s(y)) -> pred(minus(x, y)) }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(1))

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

{ le^#(s(x), s(y)) -> c_1(le^#(x, y))
, minus^#(x, s(y)) -> c_2(minus^#(x, y))
, gcd^#(s(x), s(y)) -> le^#(y, x)
, gcd^#(s(x), s(y)) -> if_gcd^#(le(y, x), s(x), s(y))
, if_gcd^#(true(), s(x), s(y)) -> minus^#(x, y)
, if_gcd^#(true(), s(x), s(y)) -> gcd^#(minus(x, y), s(y))
, if_gcd^#(false(), s(x), s(y)) -> minus^#(y, x)
, if_gcd^#(false(), s(x), s(y)) -> gcd^#(minus(y, x), s(x)) }

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

Weak Trs:
  { le(0(), y) -> true()
  , le(s(x), 0()) -> false()
  , le(s(x), s(y)) -> le(x, y)
  , pred(s(x)) -> x
  , minus(x, 0()) -> x
  , minus(x, s(y)) -> pred(minus(x, y)) }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(1))

No rule is usable, rules are removed from the input problem.

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

Rules: Empty
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(1))

Empty rules are trivially bounded

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