/export/starexec/sandbox/solver/bin/starexec_run_default /export/starexec/sandbox/benchmark/theBenchmark.xml /export/starexec/sandbox/output/output_files -------------------------------------------------------------------------------- YES Problem 1: (VAR l x y) (RULES empty(cons(x,l)) -> false empty(nil) -> true head(cons(x,l)) -> x if(false,x,l) -> last(head(l),tail(l)) if(true,x,l) -> x last(x,l) -> if(empty(l),x,l) rev(cons(x,l)) -> cons(rev1(x,l),rev2(x,l)) rev(nil) -> nil rev2(x,cons(y,l)) -> rev(cons(x,rev2(y,l))) rev2(x,nil) -> nil tail(cons(x,l)) -> l tail(nil) -> nil ) Problem 1: Innermost Equivalent Processor: -> Rules: empty(cons(x,l)) -> false empty(nil) -> true head(cons(x,l)) -> x if(false,x,l) -> last(head(l),tail(l)) if(true,x,l) -> x last(x,l) -> if(empty(l),x,l) rev(cons(x,l)) -> cons(rev1(x,l),rev2(x,l)) rev(nil) -> nil rev2(x,cons(y,l)) -> rev(cons(x,rev2(y,l))) rev2(x,nil) -> nil tail(cons(x,l)) -> l tail(nil) -> nil -> The term rewriting system is non-overlaping or locally confluent overlay system. Therefore, innermost termination implies termination. Problem 1: Dependency Pairs Processor: -> Pairs: IF(false,x,l) -> HEAD(l) IF(false,x,l) -> LAST(head(l),tail(l)) IF(false,x,l) -> TAIL(l) LAST(x,l) -> EMPTY(l) LAST(x,l) -> IF(empty(l),x,l) REV(cons(x,l)) -> REV2(x,l) REV2(x,cons(y,l)) -> REV(cons(x,rev2(y,l))) REV2(x,cons(y,l)) -> REV2(y,l) -> Rules: empty(cons(x,l)) -> false empty(nil) -> true head(cons(x,l)) -> x if(false,x,l) -> last(head(l),tail(l)) if(true,x,l) -> x last(x,l) -> if(empty(l),x,l) rev(cons(x,l)) -> cons(rev1(x,l),rev2(x,l)) rev(nil) -> nil rev2(x,cons(y,l)) -> rev(cons(x,rev2(y,l))) rev2(x,nil) -> nil tail(cons(x,l)) -> l tail(nil) -> nil Problem 1: SCC Processor: -> Pairs: IF(false,x,l) -> HEAD(l) IF(false,x,l) -> LAST(head(l),tail(l)) IF(false,x,l) -> TAIL(l) LAST(x,l) -> EMPTY(l) LAST(x,l) -> IF(empty(l),x,l) REV(cons(x,l)) -> REV2(x,l) REV2(x,cons(y,l)) -> REV(cons(x,rev2(y,l))) REV2(x,cons(y,l)) -> REV2(y,l) -> Rules: empty(cons(x,l)) -> false empty(nil) -> true head(cons(x,l)) -> x if(false,x,l) -> last(head(l),tail(l)) if(true,x,l) -> x last(x,l) -> if(empty(l),x,l) rev(cons(x,l)) -> cons(rev1(x,l),rev2(x,l)) rev(nil) -> nil rev2(x,cons(y,l)) -> rev(cons(x,rev2(y,l))) rev2(x,nil) -> nil tail(cons(x,l)) -> l tail(nil) -> nil ->Strongly Connected Components: ->->Cycle: ->->-> Pairs: REV(cons(x,l)) -> REV2(x,l) REV2(x,cons(y,l)) -> REV(cons(x,rev2(y,l))) REV2(x,cons(y,l)) -> REV2(y,l) ->->-> Rules: empty(cons(x,l)) -> false empty(nil) -> true head(cons(x,l)) -> x if(false,x,l) -> last(head(l),tail(l)) if(true,x,l) -> x last(x,l) -> if(empty(l),x,l) rev(cons(x,l)) -> cons(rev1(x,l),rev2(x,l)) rev(nil) -> nil rev2(x,cons(y,l)) -> rev(cons(x,rev2(y,l))) rev2(x,nil) -> nil tail(cons(x,l)) -> l tail(nil) -> nil ->->Cycle: ->->-> Pairs: IF(false,x,l) -> LAST(head(l),tail(l)) LAST(x,l) -> IF(empty(l),x,l) ->->-> Rules: empty(cons(x,l)) -> false empty(nil) -> true head(cons(x,l)) -> x if(false,x,l) -> last(head(l),tail(l)) if(true,x,l) -> x last(x,l) -> if(empty(l),x,l) rev(cons(x,l)) -> cons(rev1(x,l),rev2(x,l)) rev(nil) -> nil rev2(x,cons(y,l)) -> rev(cons(x,rev2(y,l))) rev2(x,nil) -> nil tail(cons(x,l)) -> l tail(nil) -> nil The problem is decomposed in 2 subproblems. Problem 1.1: Reduction Pairs Processor: -> Pairs: REV(cons(x,l)) -> REV2(x,l) REV2(x,cons(y,l)) -> REV(cons(x,rev2(y,l))) REV2(x,cons(y,l)) -> REV2(y,l) -> Rules: empty(cons(x,l)) -> false empty(nil) -> true head(cons(x,l)) -> x if(false,x,l) -> last(head(l),tail(l)) if(true,x,l) -> x last(x,l) -> if(empty(l),x,l) rev(cons(x,l)) -> cons(rev1(x,l),rev2(x,l)) rev(nil) -> nil rev2(x,cons(y,l)) -> rev(cons(x,rev2(y,l))) rev2(x,nil) -> nil tail(cons(x,l)) -> l tail(nil) -> nil -> Usable rules: rev(cons(x,l)) -> cons(rev1(x,l),rev2(x,l)) rev(nil) -> nil rev2(x,cons(y,l)) -> rev(cons(x,rev2(y,l))) rev2(x,nil) -> nil ->Interpretation type: Linear ->Coefficients: Natural Numbers ->Dimension: 1 ->Bound: 2 ->Interpretation: [rev](X) = X [rev2](X1,X2) = X2 [cons](X1,X2) = 2.X2 + 2 [nil] = 0 [rev1](X1,X2) = 2.X2 + 1 [REV](X) = 2.X + 2 [REV2](X1,X2) = 2.X2 + 2 Problem 1.1: SCC Processor: -> Pairs: REV2(x,cons(y,l)) -> REV(cons(x,rev2(y,l))) REV2(x,cons(y,l)) -> REV2(y,l) -> Rules: empty(cons(x,l)) -> false empty(nil) -> true head(cons(x,l)) -> x if(false,x,l) -> last(head(l),tail(l)) if(true,x,l) -> x last(x,l) -> if(empty(l),x,l) rev(cons(x,l)) -> cons(rev1(x,l),rev2(x,l)) rev(nil) -> nil rev2(x,cons(y,l)) -> rev(cons(x,rev2(y,l))) rev2(x,nil) -> nil tail(cons(x,l)) -> l tail(nil) -> nil ->Strongly Connected Components: ->->Cycle: ->->-> Pairs: REV2(x,cons(y,l)) -> REV2(y,l) ->->-> Rules: empty(cons(x,l)) -> false empty(nil) -> true head(cons(x,l)) -> x if(false,x,l) -> last(head(l),tail(l)) if(true,x,l) -> x last(x,l) -> if(empty(l),x,l) rev(cons(x,l)) -> cons(rev1(x,l),rev2(x,l)) rev(nil) -> nil rev2(x,cons(y,l)) -> rev(cons(x,rev2(y,l))) rev2(x,nil) -> nil tail(cons(x,l)) -> l tail(nil) -> nil Problem 1.1: Subterm Processor: -> Pairs: REV2(x,cons(y,l)) -> REV2(y,l) -> Rules: empty(cons(x,l)) -> false empty(nil) -> true head(cons(x,l)) -> x if(false,x,l) -> last(head(l),tail(l)) if(true,x,l) -> x last(x,l) -> if(empty(l),x,l) rev(cons(x,l)) -> cons(rev1(x,l),rev2(x,l)) rev(nil) -> nil rev2(x,cons(y,l)) -> rev(cons(x,rev2(y,l))) rev2(x,nil) -> nil tail(cons(x,l)) -> l tail(nil) -> nil ->Projection: pi(REV2) = 2 Problem 1.1: SCC Processor: -> Pairs: Empty -> Rules: empty(cons(x,l)) -> false empty(nil) -> true head(cons(x,l)) -> x if(false,x,l) -> last(head(l),tail(l)) if(true,x,l) -> x last(x,l) -> if(empty(l),x,l) rev(cons(x,l)) -> cons(rev1(x,l),rev2(x,l)) rev(nil) -> nil rev2(x,cons(y,l)) -> rev(cons(x,rev2(y,l))) rev2(x,nil) -> nil tail(cons(x,l)) -> l tail(nil) -> nil ->Strongly Connected Components: There is no strongly connected component The problem is finite. Problem 1.2: Reduction Pairs Processor: -> Pairs: IF(false,x,l) -> LAST(head(l),tail(l)) LAST(x,l) -> IF(empty(l),x,l) -> Rules: empty(cons(x,l)) -> false empty(nil) -> true head(cons(x,l)) -> x if(false,x,l) -> last(head(l),tail(l)) if(true,x,l) -> x last(x,l) -> if(empty(l),x,l) rev(cons(x,l)) -> cons(rev1(x,l),rev2(x,l)) rev(nil) -> nil rev2(x,cons(y,l)) -> rev(cons(x,rev2(y,l))) rev2(x,nil) -> nil tail(cons(x,l)) -> l tail(nil) -> nil -> Usable rules: empty(cons(x,l)) -> false empty(nil) -> true head(cons(x,l)) -> x tail(cons(x,l)) -> l tail(nil) -> nil ->Interpretation type: Linear ->Coefficients: All rationals ->Dimension: 1 ->Bound: 2 ->Interpretation: [empty](X) = X [head](X) = 2.X + 2 [tail](X) = 1/2.X [cons](X1,X2) = 2.X1 + 2.X2 + 2 [false] = 2 [nil] = 0 [true] = 0 [IF](X1,X2,X3) = 1/2.X1 + 1/2.X3 [LAST](X1,X2) = X2 + 1/2 Problem 1.2: SCC Processor: -> Pairs: LAST(x,l) -> IF(empty(l),x,l) -> Rules: empty(cons(x,l)) -> false empty(nil) -> true head(cons(x,l)) -> x if(false,x,l) -> last(head(l),tail(l)) if(true,x,l) -> x last(x,l) -> if(empty(l),x,l) rev(cons(x,l)) -> cons(rev1(x,l),rev2(x,l)) rev(nil) -> nil rev2(x,cons(y,l)) -> rev(cons(x,rev2(y,l))) rev2(x,nil) -> nil tail(cons(x,l)) -> l tail(nil) -> nil ->Strongly Connected Components: There is no strongly connected component The problem is finite.