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

Strict Trs:
  { loop(Cons(x', xs'), Cons(x, xs), pp, ss) ->
    loop[Ite](!EQ(x', x), Cons(x', xs'), Cons(x, xs), pp, ss)
  , loop(Cons(x, xs), Nil(), pp, ss) -> False()
  , loop(Nil(), s, pp, ss) -> True()
  , match1(p, s) -> loop(p, s, p, s) }
Weak Trs:
  { loop[Ite](True(), Cons(x', xs'), Cons(x, xs), pp, ss) ->
    loop(xs', xs, pp, ss)
  , loop[Ite](False(), p, s, pp, Cons(x, xs)) -> loop(pp, xs, pp, xs)
  , !EQ(S(x), S(y)) -> !EQ(x, y)
  , !EQ(S(x), 0()) -> False()
  , !EQ(0(), S(y)) -> False()
  , !EQ(0(), 0()) -> True() }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(n^2))

We add the following weak dependency pairs:

Strict DPs:
  { loop^#(Cons(x', xs'), Cons(x, xs), pp, ss) ->
    c_1(loop[Ite]^#(!EQ(x', x), Cons(x', xs'), Cons(x, xs), pp, ss))
  , loop^#(Cons(x, xs), Nil(), pp, ss) -> c_2()
  , loop^#(Nil(), s, pp, ss) -> c_3()
  , match1^#(p, s) -> c_4(loop^#(p, s, p, s)) }
Weak DPs:
  { loop[Ite]^#(True(), Cons(x', xs'), Cons(x, xs), pp, ss) ->
    c_5(loop^#(xs', xs, pp, ss))
  , loop[Ite]^#(False(), p, s, pp, Cons(x, xs)) ->
    c_6(loop^#(pp, xs, pp, xs))
  , !EQ^#(S(x), S(y)) -> c_7(!EQ^#(x, y))
  , !EQ^#(S(x), 0()) -> c_8()
  , !EQ^#(0(), S(y)) -> c_9()
  , !EQ^#(0(), 0()) -> c_10() }

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:
  { loop^#(Cons(x', xs'), Cons(x, xs), pp, ss) ->
    c_1(loop[Ite]^#(!EQ(x', x), Cons(x', xs'), Cons(x, xs), pp, ss))
  , loop^#(Cons(x, xs), Nil(), pp, ss) -> c_2()
  , loop^#(Nil(), s, pp, ss) -> c_3()
  , match1^#(p, s) -> c_4(loop^#(p, s, p, s)) }
Strict Trs:
  { loop(Cons(x', xs'), Cons(x, xs), pp, ss) ->
    loop[Ite](!EQ(x', x), Cons(x', xs'), Cons(x, xs), pp, ss)
  , loop(Cons(x, xs), Nil(), pp, ss) -> False()
  , loop(Nil(), s, pp, ss) -> True()
  , match1(p, s) -> loop(p, s, p, s) }
Weak DPs:
  { loop[Ite]^#(True(), Cons(x', xs'), Cons(x, xs), pp, ss) ->
    c_5(loop^#(xs', xs, pp, ss))
  , loop[Ite]^#(False(), p, s, pp, Cons(x, xs)) ->
    c_6(loop^#(pp, xs, pp, xs))
  , !EQ^#(S(x), S(y)) -> c_7(!EQ^#(x, y))
  , !EQ^#(S(x), 0()) -> c_8()
  , !EQ^#(0(), S(y)) -> c_9()
  , !EQ^#(0(), 0()) -> c_10() }
Weak Trs:
  { loop[Ite](True(), Cons(x', xs'), Cons(x, xs), pp, ss) ->
    loop(xs', xs, pp, ss)
  , loop[Ite](False(), p, s, pp, Cons(x, xs)) -> loop(pp, xs, pp, xs)
  , !EQ(S(x), S(y)) -> !EQ(x, y)
  , !EQ(S(x), 0()) -> False()
  , !EQ(0(), S(y)) -> False()
  , !EQ(0(), 0()) -> True() }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(n^2))

We replace rewrite rules by usable rules:

  Weak Usable Rules:
    { !EQ(S(x), S(y)) -> !EQ(x, y)
    , !EQ(S(x), 0()) -> False()
    , !EQ(0(), S(y)) -> False()
    , !EQ(0(), 0()) -> True() }

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

Strict DPs:
  { loop^#(Cons(x', xs'), Cons(x, xs), pp, ss) ->
    c_1(loop[Ite]^#(!EQ(x', x), Cons(x', xs'), Cons(x, xs), pp, ss))
  , loop^#(Cons(x, xs), Nil(), pp, ss) -> c_2()
  , loop^#(Nil(), s, pp, ss) -> c_3()
  , match1^#(p, s) -> c_4(loop^#(p, s, p, s)) }
Weak DPs:
  { loop[Ite]^#(True(), Cons(x', xs'), Cons(x, xs), pp, ss) ->
    c_5(loop^#(xs', xs, pp, ss))
  , loop[Ite]^#(False(), p, s, pp, Cons(x, xs)) ->
    c_6(loop^#(pp, xs, pp, xs))
  , !EQ^#(S(x), S(y)) -> c_7(!EQ^#(x, y))
  , !EQ^#(S(x), 0()) -> c_8()
  , !EQ^#(0(), S(y)) -> c_9()
  , !EQ^#(0(), 0()) -> c_10() }
Weak Trs:
  { !EQ(S(x), S(y)) -> !EQ(x, y)
  , !EQ(S(x), 0()) -> False()
  , !EQ(0(), S(y)) -> False()
  , !EQ(0(), 0()) -> True() }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(n^2))

The weightgap principle applies (using the following constant
growth matrix-interpretation)

The following argument positions are usable:
  Uargs(c_1) = {1}, Uargs(loop[Ite]^#) = {1}, Uargs(c_4) = {1},
  Uargs(c_5) = {1}, Uargs(c_6) = {1}, Uargs(c_7) = {1}

TcT has computed the following constructor-restricted matrix
interpretation.

                      [!EQ](x1, x2) = [0]                      
                                      [0]                      
                                                               
                             [True] = [0]                      
                                      [0]                      
                                                               
                            [S](x1) = [1 0] x1 + [0]           
                                      [0 0]      [0]           
                                                               
                     [Cons](x1, x2) = [0]                      
                                      [0]                      
                                                               
                              [Nil] = [0]                      
                                      [0]                      
                                                               
                                [0] = [0]                      
                                      [0]                      
                                                               
                            [False] = [0]                      
                                      [0]                      
                                                               
           [loop^#](x1, x2, x3, x4) = [0]                      
                                      [0]                      
                                                               
                          [c_1](x1) = [1 0] x1 + [0]           
                                      [0 1]      [0]           
                                                               
  [loop[Ite]^#](x1, x2, x3, x4, x5) = [2 0] x1 + [0 0] x4 + [0]
                                      [0 0]      [2 2]      [0]
                                                               
                              [c_2] = [0]                      
                                      [0]                      
                                                               
                              [c_3] = [0]                      
                                      [0]                      
                                                               
                 [match1^#](x1, x2) = [2 2] x1 + [1 2] x2 + [2]
                                      [2 1]      [1 2]      [1]
                                                               
                          [c_4](x1) = [1 0] x1 + [0]           
                                      [0 1]      [0]           
                                                               
                          [c_5](x1) = [1 0] x1 + [0]           
                                      [0 1]      [0]           
                                                               
                          [c_6](x1) = [1 0] x1 + [0]           
                                      [0 1]      [0]           
                                                               
                    [!EQ^#](x1, x2) = [0]                      
                                      [0]                      
                                                               
                          [c_7](x1) = [1 0] x1 + [0]           
                                      [0 1]      [0]           
                                                               
                              [c_8] = [0]                      
                                      [0]                      
                                                               
                              [c_9] = [0]                      
                                      [0]                      
                                                               
                             [c_10] = [0]                      
                                      [0]                      

The order satisfies the following ordering constraints:

                                          [!EQ(S(x), S(y))] =  [0]                                                               
                                                               [0]                                                               
                                                            >= [0]                                                               
                                                               [0]                                                               
                                                            =  [!EQ(x, y)]                                                       
                                                                                                                                 
                                           [!EQ(S(x), 0())] =  [0]                                                               
                                                               [0]                                                               
                                                            >= [0]                                                               
                                                               [0]                                                               
                                                            =  [False()]                                                         
                                                                                                                                 
                                           [!EQ(0(), S(y))] =  [0]                                                               
                                                               [0]                                                               
                                                            >= [0]                                                               
                                                               [0]                                                               
                                                            =  [False()]                                                         
                                                                                                                                 
                                            [!EQ(0(), 0())] =  [0]                                                               
                                                               [0]                                                               
                                                            >= [0]                                                               
                                                               [0]                                                               
                                                            =  [True()]                                                          
                                                                                                                                 
               [loop^#(Cons(x', xs'), Cons(x, xs), pp, ss)] =  [0]                                                               
                                                               [0]                                                               
                                                            ?  [0 0] pp + [0]                                                    
                                                               [2 2]      [0]                                                    
                                                            =  [c_1(loop[Ite]^#(!EQ(x', x), Cons(x', xs'), Cons(x, xs), pp, ss))]
                                                                                                                                 
                       [loop^#(Cons(x, xs), Nil(), pp, ss)] =  [0]                                                               
                                                               [0]                                                               
                                                            >= [0]                                                               
                                                               [0]                                                               
                                                            =  [c_2()]                                                           
                                                                                                                                 
                                 [loop^#(Nil(), s, pp, ss)] =  [0]                                                               
                                                               [0]                                                               
                                                            >= [0]                                                               
                                                               [0]                                                               
                                                            =  [c_3()]                                                           
                                                                                                                                 
  [loop[Ite]^#(True(), Cons(x', xs'), Cons(x, xs), pp, ss)] =  [0 0] pp + [0]                                                    
                                                               [2 2]      [0]                                                    
                                                            >= [0]                                                               
                                                               [0]                                                               
                                                            =  [c_5(loop^#(xs', xs, pp, ss))]                                    
                                                                                                                                 
              [loop[Ite]^#(False(), p, s, pp, Cons(x, xs))] =  [0 0] pp + [0]                                                    
                                                               [2 2]      [0]                                                    
                                                            >= [0]                                                               
                                                               [0]                                                               
                                                            =  [c_6(loop^#(pp, xs, pp, xs))]                                     
                                                                                                                                 
                                           [match1^#(p, s)] =  [1 2] s + [2 2] p + [2]                                           
                                                               [1 2]     [2 1]     [1]                                           
                                                            >  [0]                                                               
                                                               [0]                                                               
                                                            =  [c_4(loop^#(p, s, p, s))]                                         
                                                                                                                                 
                                        [!EQ^#(S(x), S(y))] =  [0]                                                               
                                                               [0]                                                               
                                                            >= [0]                                                               
                                                               [0]                                                               
                                                            =  [c_7(!EQ^#(x, y))]                                                
                                                                                                                                 
                                         [!EQ^#(S(x), 0())] =  [0]                                                               
                                                               [0]                                                               
                                                            >= [0]                                                               
                                                               [0]                                                               
                                                            =  [c_8()]                                                           
                                                                                                                                 
                                         [!EQ^#(0(), S(y))] =  [0]                                                               
                                                               [0]                                                               
                                                            >= [0]                                                               
                                                               [0]                                                               
                                                            =  [c_9()]                                                           
                                                                                                                                 
                                          [!EQ^#(0(), 0())] =  [0]                                                               
                                                               [0]                                                               
                                                            >= [0]                                                               
                                                               [0]                                                               
                                                            =  [c_10()]                                                          
                                                                                                                                 

Further, it can be verified that all rules not oriented are covered by the weightgap condition.

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

Strict DPs:
  { loop^#(Cons(x', xs'), Cons(x, xs), pp, ss) ->
    c_1(loop[Ite]^#(!EQ(x', x), Cons(x', xs'), Cons(x, xs), pp, ss))
  , loop^#(Cons(x, xs), Nil(), pp, ss) -> c_2()
  , loop^#(Nil(), s, pp, ss) -> c_3() }
Weak DPs:
  { loop[Ite]^#(True(), Cons(x', xs'), Cons(x, xs), pp, ss) ->
    c_5(loop^#(xs', xs, pp, ss))
  , loop[Ite]^#(False(), p, s, pp, Cons(x, xs)) ->
    c_6(loop^#(pp, xs, pp, xs))
  , match1^#(p, s) -> c_4(loop^#(p, s, p, s))
  , !EQ^#(S(x), S(y)) -> c_7(!EQ^#(x, y))
  , !EQ^#(S(x), 0()) -> c_8()
  , !EQ^#(0(), S(y)) -> c_9()
  , !EQ^#(0(), 0()) -> c_10() }
Weak Trs:
  { !EQ(S(x), S(y)) -> !EQ(x, y)
  , !EQ(S(x), 0()) -> False()
  , !EQ(0(), S(y)) -> False()
  , !EQ(0(), 0()) -> True() }
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.

{ !EQ^#(S(x), S(y)) -> c_7(!EQ^#(x, y))
, !EQ^#(S(x), 0()) -> c_8()
, !EQ^#(0(), S(y)) -> c_9()
, !EQ^#(0(), 0()) -> c_10() }

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

Strict DPs:
  { loop^#(Cons(x', xs'), Cons(x, xs), pp, ss) ->
    c_1(loop[Ite]^#(!EQ(x', x), Cons(x', xs'), Cons(x, xs), pp, ss))
  , loop^#(Cons(x, xs), Nil(), pp, ss) -> c_2()
  , loop^#(Nil(), s, pp, ss) -> c_3() }
Weak DPs:
  { loop[Ite]^#(True(), Cons(x', xs'), Cons(x, xs), pp, ss) ->
    c_5(loop^#(xs', xs, pp, ss))
  , loop[Ite]^#(False(), p, s, pp, Cons(x, xs)) ->
    c_6(loop^#(pp, xs, pp, xs))
  , match1^#(p, s) -> c_4(loop^#(p, s, p, s)) }
Weak Trs:
  { !EQ(S(x), S(y)) -> !EQ(x, y)
  , !EQ(S(x), 0()) -> False()
  , !EQ(0(), S(y)) -> False()
  , !EQ(0(), 0()) -> True() }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(n^2))

Consider the dependency graph

  1: loop^#(Cons(x', xs'), Cons(x, xs), pp, ss) ->
     c_1(loop[Ite]^#(!EQ(x', x), Cons(x', xs'), Cons(x, xs), pp, ss))
     -->_1 loop[Ite]^#(False(), p, s, pp, Cons(x, xs)) ->
           c_6(loop^#(pp, xs, pp, xs)) :5
     -->_1 loop[Ite]^#(True(), Cons(x', xs'), Cons(x, xs), pp, ss) ->
           c_5(loop^#(xs', xs, pp, ss)) :4
  
  2: loop^#(Cons(x, xs), Nil(), pp, ss) -> c_2()
  
  3: loop^#(Nil(), s, pp, ss) -> c_3()
  
  4: loop[Ite]^#(True(), Cons(x', xs'), Cons(x, xs), pp, ss) ->
     c_5(loop^#(xs', xs, pp, ss))
     -->_1 loop^#(Nil(), s, pp, ss) -> c_3() :3
     -->_1 loop^#(Cons(x, xs), Nil(), pp, ss) -> c_2() :2
     -->_1 loop^#(Cons(x', xs'), Cons(x, xs), pp, ss) ->
           c_1(loop[Ite]^#(!EQ(x', x), Cons(x', xs'), Cons(x, xs), pp, ss)) :1
  
  5: loop[Ite]^#(False(), p, s, pp, Cons(x, xs)) ->
     c_6(loop^#(pp, xs, pp, xs))
     -->_1 loop^#(Nil(), s, pp, ss) -> c_3() :3
     -->_1 loop^#(Cons(x, xs), Nil(), pp, ss) -> c_2() :2
     -->_1 loop^#(Cons(x', xs'), Cons(x, xs), pp, ss) ->
           c_1(loop[Ite]^#(!EQ(x', x), Cons(x', xs'), Cons(x, xs), pp, ss)) :1
  
  6: match1^#(p, s) -> c_4(loop^#(p, s, p, s))
     -->_1 loop^#(Nil(), s, pp, ss) -> c_3() :3
     -->_1 loop^#(Cons(x, xs), Nil(), pp, ss) -> c_2() :2
     -->_1 loop^#(Cons(x', xs'), Cons(x, xs), pp, ss) ->
           c_1(loop[Ite]^#(!EQ(x', x), Cons(x', xs'), Cons(x, xs), pp, ss)) :1
  

Following roots of the dependency graph are removed, as the
considered set of starting terms is closed under reduction with
respect to these rules (modulo compound contexts).

  { match1^#(p, s) -> c_4(loop^#(p, s, p, s)) }


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

Strict DPs:
  { loop^#(Cons(x', xs'), Cons(x, xs), pp, ss) ->
    c_1(loop[Ite]^#(!EQ(x', x), Cons(x', xs'), Cons(x, xs), pp, ss))
  , loop^#(Cons(x, xs), Nil(), pp, ss) -> c_2()
  , loop^#(Nil(), s, pp, ss) -> c_3() }
Weak DPs:
  { loop[Ite]^#(True(), Cons(x', xs'), Cons(x, xs), pp, ss) ->
    c_5(loop^#(xs', xs, pp, ss))
  , loop[Ite]^#(False(), p, s, pp, Cons(x, xs)) ->
    c_6(loop^#(pp, xs, pp, xs)) }
Weak Trs:
  { !EQ(S(x), S(y)) -> !EQ(x, y)
  , !EQ(S(x), 0()) -> False()
  , !EQ(0(), S(y)) -> False()
  , !EQ(0(), 0()) -> True() }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(n^2))

We use the processor 'matrix interpretation of dimension 1' to
orient following rules strictly.

DPs:
  { 2: loop^#(Cons(x, xs), Nil(), pp, ss) -> c_2()
  , 3: loop^#(Nil(), s, pp, ss) -> c_3() }

Sub-proof:
----------
  The following argument positions are usable:
    Uargs(c_1) = {1}, Uargs(c_5) = {1}, Uargs(c_6) = {1}
  
  TcT has computed the following constructor-restricted matrix
  interpretation. Note that the diagonal of the component-wise maxima
  of interpretation-entries (of constructors) contains no more than 0
  non-zero entries.
  
                        [!EQ](x1, x2) = [0]         
                                                    
                               [True] = [0]         
                                                    
                              [S](x1) = [0]         
                                                    
                       [Cons](x1, x2) = [0]         
                                                    
                                [Nil] = [0]         
                                                    
                                  [0] = [0]         
                                                    
                              [False] = [0]         
                                                    
             [loop^#](x1, x2, x3, x4) = [1]         
                                                    
                            [c_1](x1) = [1] x1 + [0]
                                                    
    [loop[Ite]^#](x1, x2, x3, x4, x5) = [1]         
                                                    
                                [c_2] = [0]         
                                                    
                                [c_3] = [0]         
                                                    
                            [c_5](x1) = [1] x1 + [0]
                                                    
                            [c_6](x1) = [1] x1 + [0]
  
  The order satisfies the following ordering constraints:
  
                                            [!EQ(S(x), S(y))] =  [0]                                                               
                                                              >= [0]                                                               
                                                              =  [!EQ(x, y)]                                                       
                                                                                                                                   
                                             [!EQ(S(x), 0())] =  [0]                                                               
                                                              >= [0]                                                               
                                                              =  [False()]                                                         
                                                                                                                                   
                                             [!EQ(0(), S(y))] =  [0]                                                               
                                                              >= [0]                                                               
                                                              =  [False()]                                                         
                                                                                                                                   
                                              [!EQ(0(), 0())] =  [0]                                                               
                                                              >= [0]                                                               
                                                              =  [True()]                                                          
                                                                                                                                   
                 [loop^#(Cons(x', xs'), Cons(x, xs), pp, ss)] =  [1]                                                               
                                                              >= [1]                                                               
                                                              =  [c_1(loop[Ite]^#(!EQ(x', x), Cons(x', xs'), Cons(x, xs), pp, ss))]
                                                                                                                                   
                         [loop^#(Cons(x, xs), Nil(), pp, ss)] =  [1]                                                               
                                                              >  [0]                                                               
                                                              =  [c_2()]                                                           
                                                                                                                                   
                                   [loop^#(Nil(), s, pp, ss)] =  [1]                                                               
                                                              >  [0]                                                               
                                                              =  [c_3()]                                                           
                                                                                                                                   
    [loop[Ite]^#(True(), Cons(x', xs'), Cons(x, xs), pp, ss)] =  [1]                                                               
                                                              >= [1]                                                               
                                                              =  [c_5(loop^#(xs', xs, pp, ss))]                                    
                                                                                                                                   
                [loop[Ite]^#(False(), p, s, pp, Cons(x, xs))] =  [1]                                                               
                                                              >= [1]                                                               
                                                              =  [c_6(loop^#(pp, xs, pp, xs))]                                     
                                                                                                                                   

The strictly oriented rules are moved into the weak component.

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

Strict DPs:
  { loop^#(Cons(x', xs'), Cons(x, xs), pp, ss) ->
    c_1(loop[Ite]^#(!EQ(x', x), Cons(x', xs'), Cons(x, xs), pp, ss)) }
Weak DPs:
  { loop^#(Cons(x, xs), Nil(), pp, ss) -> c_2()
  , loop^#(Nil(), s, pp, ss) -> c_3()
  , loop[Ite]^#(True(), Cons(x', xs'), Cons(x, xs), pp, ss) ->
    c_5(loop^#(xs', xs, pp, ss))
  , loop[Ite]^#(False(), p, s, pp, Cons(x, xs)) ->
    c_6(loop^#(pp, xs, pp, xs)) }
Weak Trs:
  { !EQ(S(x), S(y)) -> !EQ(x, y)
  , !EQ(S(x), 0()) -> False()
  , !EQ(0(), S(y)) -> False()
  , !EQ(0(), 0()) -> True() }
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.

{ loop^#(Cons(x, xs), Nil(), pp, ss) -> c_2()
, loop^#(Nil(), s, pp, ss) -> c_3() }

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

Strict DPs:
  { loop^#(Cons(x', xs'), Cons(x, xs), pp, ss) ->
    c_1(loop[Ite]^#(!EQ(x', x), Cons(x', xs'), Cons(x, xs), pp, ss)) }
Weak DPs:
  { loop[Ite]^#(True(), Cons(x', xs'), Cons(x, xs), pp, ss) ->
    c_5(loop^#(xs', xs, pp, ss))
  , loop[Ite]^#(False(), p, s, pp, Cons(x, xs)) ->
    c_6(loop^#(pp, xs, pp, xs)) }
Weak Trs:
  { !EQ(S(x), S(y)) -> !EQ(x, y)
  , !EQ(S(x), 0()) -> False()
  , !EQ(0(), S(y)) -> False()
  , !EQ(0(), 0()) -> True() }
Obligation:
  innermost runtime complexity
Answer:
  YES(O(1),O(n^2))

We use the processor 'matrix interpretation of dimension 2' to
orient following rules strictly.

DPs:
  { 2: loop[Ite]^#(True(), Cons(x', xs'), Cons(x, xs), pp, ss) ->
       c_5(loop^#(xs', xs, pp, ss))
  , 3: loop[Ite]^#(False(), p, s, pp, Cons(x, xs)) ->
       c_6(loop^#(pp, xs, pp, xs)) }

Sub-proof:
----------
  The following argument positions are usable:
    Uargs(c_1) = {1}, Uargs(c_5) = {1}, Uargs(c_6) = {1}
  
  TcT has computed the following constructor-based matrix
  interpretation satisfying not(EDA).
  
                        [!EQ](x1, x2) = [2]                                          
                                        [3]                                          
                                                                                     
                               [True] = [2]                                          
                                        [2]                                          
                                                                                     
                              [S](x1) = [1 0] x1 + [0]                               
                                        [0 1]      [0]                               
                                                                                     
                       [Cons](x1, x2) = [0 0] x1 + [1 1] x2 + [1]                    
                                        [0 1]      [0 1]      [2]                    
                                                                                     
                                [Nil] = [0]                                          
                                        [0]                                          
                                                                                     
                                  [0] = [4]                                          
                                        [2]                                          
                                                                                     
                              [False] = [2]                                          
                                        [0]                                          
                                                                                     
             [loop^#](x1, x2, x3, x4) = [0 3] x2 + [0 4] x3 + [3                     
                                                               4] x4 + [7]           
                                        [0 0]      [0 0]      [0                     
                                                               0]      [1]           
                                                                                     
                            [c_1](x1) = [1 1] x1 + [0]                               
                                        [0 0]      [0]                               
                                                                                     
    [loop[Ite]^#](x1, x2, x3, x4, x5) = [2 1] x1 + [0 3] x3 + [0                     
                                                               4] x4 + [3 4] x5 + [0]
                                        [0 0]      [0 0]      [0                     
                                                               0]      [0 0]      [0]
                                                                                     
                                [c_2] = [0]                                          
                                        [0]                                          
                                                                                     
                                [c_3] = [0]                                          
                                        [0]                                          
                                                                                     
                            [c_5](x1) = [1 3] x1 + [1]                               
                                        [0 0]      [0]                               
                                                                                     
                            [c_6](x1) = [1 7] x1 + [0]                               
                                        [0 0]      [0]                               
  
  The order satisfies the following ordering constraints:
  
                                            [!EQ(S(x), S(y))] =  [2]                                                               
                                                                 [3]                                                               
                                                              >= [2]                                                               
                                                                 [3]                                                               
                                                              =  [!EQ(x, y)]                                                       
                                                                                                                                   
                                             [!EQ(S(x), 0())] =  [2]                                                               
                                                                 [3]                                                               
                                                              >= [2]                                                               
                                                                 [0]                                                               
                                                              =  [False()]                                                         
                                                                                                                                   
                                             [!EQ(0(), S(y))] =  [2]                                                               
                                                                 [3]                                                               
                                                              >= [2]                                                               
                                                                 [0]                                                               
                                                              =  [False()]                                                         
                                                                                                                                   
                                              [!EQ(0(), 0())] =  [2]                                                               
                                                                 [3]                                                               
                                                              >= [2]                                                               
                                                                 [2]                                                               
                                                              =  [True()]                                                          
                                                                                                                                   
                 [loop^#(Cons(x', xs'), Cons(x, xs), pp, ss)] =  [0 3] x + [0 3] xs + [0 4] pp + [3 4] ss + [13]                   
                                                                 [0 0]     [0 0]      [0 0]      [0 0]      [1]                    
                                                              >= [0 3] x + [0 3] xs + [0 4] pp + [3 4] ss + [13]                   
                                                                 [0 0]     [0 0]      [0 0]      [0 0]      [0]                    
                                                              =  [c_1(loop[Ite]^#(!EQ(x', x), Cons(x', xs'), Cons(x, xs), pp, ss))]
                                                                                                                                   
    [loop[Ite]^#(True(), Cons(x', xs'), Cons(x, xs), pp, ss)] =  [0 3] x + [0 3] xs + [0 4] pp + [3 4] ss + [12]                   
                                                                 [0 0]     [0 0]      [0 0]      [0 0]      [0]                    
                                                              >  [0 3] xs + [0 4] pp + [3 4] ss + [11]                             
                                                                 [0 0]      [0 0]      [0 0]      [0]                              
                                                              =  [c_5(loop^#(xs', xs, pp, ss))]                                    
                                                                                                                                   
                [loop[Ite]^#(False(), p, s, pp, Cons(x, xs))] =  [0 4] x + [3 7] xs + [0 4] pp + [0 3] s + [15]                    
                                                                 [0 0]     [0 0]      [0 0]      [0 0]     [0]                     
                                                              >  [3 7] xs + [0 4] pp + [14]                                        
                                                                 [0 0]      [0 0]      [0]                                         
                                                              =  [c_6(loop^#(pp, xs, pp, xs))]                                     
                                                                                                                                   

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

:
  { 1: loop^#(Cons(x', xs'), Cons(x, xs), pp, ss) ->
       c_1(loop[Ite]^#(!EQ(x', x), Cons(x', xs'), Cons(x, xs), pp, ss))
  , 2: loop[Ite]^#(True(), Cons(x', xs'), Cons(x, xs), pp, ss) ->
       c_5(loop^#(xs', xs, pp, ss))
  , 3: loop[Ite]^#(False(), p, s, pp, Cons(x, xs)) ->
       c_6(loop^#(pp, xs, pp, xs)) }

Processor 'matrix interpretation of dimension 2' induces the
complexity certificate YES(?,O(n^2)) on application of dependency
pairs {2,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:
  { loop^#(Cons(x', xs'), Cons(x, xs), pp, ss) ->
    c_1(loop[Ite]^#(!EQ(x', x), Cons(x', xs'), Cons(x, xs), pp, ss))
  , loop[Ite]^#(True(), Cons(x', xs'), Cons(x, xs), pp, ss) ->
    c_5(loop^#(xs', xs, pp, ss))
  , loop[Ite]^#(False(), p, s, pp, Cons(x, xs)) ->
    c_6(loop^#(pp, xs, pp, xs)) }
Weak Trs:
  { !EQ(S(x), S(y)) -> !EQ(x, y)
  , !EQ(S(x), 0()) -> False()
  , !EQ(0(), S(y)) -> False()
  , !EQ(0(), 0()) -> True() }
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.

{ loop^#(Cons(x', xs'), Cons(x, xs), pp, ss) ->
  c_1(loop[Ite]^#(!EQ(x', x), Cons(x', xs'), Cons(x, xs), pp, ss))
, loop[Ite]^#(True(), Cons(x', xs'), Cons(x, xs), pp, ss) ->
  c_5(loop^#(xs', xs, pp, ss))
, loop[Ite]^#(False(), p, s, pp, Cons(x, xs)) ->
  c_6(loop^#(pp, xs, pp, xs)) }

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

Weak Trs:
  { !EQ(S(x), S(y)) -> !EQ(x, y)
  , !EQ(S(x), 0()) -> False()
  , !EQ(0(), S(y)) -> False()
  , !EQ(0(), 0()) -> True() }
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))