Termination w.r.t. Q of the following Term Rewriting System could not be shown:
Q restricted rewrite system:
The TRS R consists of the following rules:
function4(iszero, 0, dummy, dummy2) -> true
function4(iszero, s1(x), dummy, dummy2) -> false
function4(p, 0, dummy, dummy2) -> 0
function4(p, s1(0), dummy, dummy2) -> 0
function4(p, s1(s1(x)), dummy, dummy2) -> s1(function4(p, s1(x), x, x))
function4(plus, dummy, x, y) -> function4(if, function4(iszero, x, x, x), x, y)
function4(if, true, x, y) -> y
function4(if, false, x, y) -> function4(plus, function4(third, x, y, y), function4(p, x, x, y), s1(y))
function4(third, x, y, z) -> z
Q is empty.
↳ QTRS
↳ DependencyPairsProof
Q restricted rewrite system:
The TRS R consists of the following rules:
function4(iszero, 0, dummy, dummy2) -> true
function4(iszero, s1(x), dummy, dummy2) -> false
function4(p, 0, dummy, dummy2) -> 0
function4(p, s1(0), dummy, dummy2) -> 0
function4(p, s1(s1(x)), dummy, dummy2) -> s1(function4(p, s1(x), x, x))
function4(plus, dummy, x, y) -> function4(if, function4(iszero, x, x, x), x, y)
function4(if, true, x, y) -> y
function4(if, false, x, y) -> function4(plus, function4(third, x, y, y), function4(p, x, x, y), s1(y))
function4(third, x, y, z) -> z
Q is empty.
Using Dependency Pairs [1,13] we result in the following initial DP problem:
Q DP problem:
The TRS P consists of the following rules:
FUNCTION4(plus, dummy, x, y) -> FUNCTION4(if, function4(iszero, x, x, x), x, y)
FUNCTION4(if, false, x, y) -> FUNCTION4(plus, function4(third, x, y, y), function4(p, x, x, y), s1(y))
FUNCTION4(plus, dummy, x, y) -> FUNCTION4(iszero, x, x, x)
FUNCTION4(if, false, x, y) -> FUNCTION4(p, x, x, y)
FUNCTION4(p, s1(s1(x)), dummy, dummy2) -> FUNCTION4(p, s1(x), x, x)
FUNCTION4(if, false, x, y) -> FUNCTION4(third, x, y, y)
The TRS R consists of the following rules:
function4(iszero, 0, dummy, dummy2) -> true
function4(iszero, s1(x), dummy, dummy2) -> false
function4(p, 0, dummy, dummy2) -> 0
function4(p, s1(0), dummy, dummy2) -> 0
function4(p, s1(s1(x)), dummy, dummy2) -> s1(function4(p, s1(x), x, x))
function4(plus, dummy, x, y) -> function4(if, function4(iszero, x, x, x), x, y)
function4(if, true, x, y) -> y
function4(if, false, x, y) -> function4(plus, function4(third, x, y, y), function4(p, x, x, y), s1(y))
function4(third, x, y, z) -> z
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
Q DP problem:
The TRS P consists of the following rules:
FUNCTION4(plus, dummy, x, y) -> FUNCTION4(if, function4(iszero, x, x, x), x, y)
FUNCTION4(if, false, x, y) -> FUNCTION4(plus, function4(third, x, y, y), function4(p, x, x, y), s1(y))
FUNCTION4(plus, dummy, x, y) -> FUNCTION4(iszero, x, x, x)
FUNCTION4(if, false, x, y) -> FUNCTION4(p, x, x, y)
FUNCTION4(p, s1(s1(x)), dummy, dummy2) -> FUNCTION4(p, s1(x), x, x)
FUNCTION4(if, false, x, y) -> FUNCTION4(third, x, y, y)
The TRS R consists of the following rules:
function4(iszero, 0, dummy, dummy2) -> true
function4(iszero, s1(x), dummy, dummy2) -> false
function4(p, 0, dummy, dummy2) -> 0
function4(p, s1(0), dummy, dummy2) -> 0
function4(p, s1(s1(x)), dummy, dummy2) -> s1(function4(p, s1(x), x, x))
function4(plus, dummy, x, y) -> function4(if, function4(iszero, x, x, x), x, y)
function4(if, true, x, y) -> y
function4(if, false, x, y) -> function4(plus, function4(third, x, y, y), function4(p, x, x, y), s1(y))
function4(third, x, y, z) -> z
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [13,14,18] contains 2 SCCs with 3 less nodes.
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
Q DP problem:
The TRS P consists of the following rules:
FUNCTION4(p, s1(s1(x)), dummy, dummy2) -> FUNCTION4(p, s1(x), x, x)
The TRS R consists of the following rules:
function4(iszero, 0, dummy, dummy2) -> true
function4(iszero, s1(x), dummy, dummy2) -> false
function4(p, 0, dummy, dummy2) -> 0
function4(p, s1(0), dummy, dummy2) -> 0
function4(p, s1(s1(x)), dummy, dummy2) -> s1(function4(p, s1(x), x, x))
function4(plus, dummy, x, y) -> function4(if, function4(iszero, x, x, x), x, y)
function4(if, true, x, y) -> y
function4(if, false, x, y) -> function4(plus, function4(third, x, y, y), function4(p, x, x, y), s1(y))
function4(third, x, y, z) -> z
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
Q DP problem:
The TRS P consists of the following rules:
FUNCTION4(plus, dummy, x, y) -> FUNCTION4(if, function4(iszero, x, x, x), x, y)
FUNCTION4(if, false, x, y) -> FUNCTION4(plus, function4(third, x, y, y), function4(p, x, x, y), s1(y))
The TRS R consists of the following rules:
function4(iszero, 0, dummy, dummy2) -> true
function4(iszero, s1(x), dummy, dummy2) -> false
function4(p, 0, dummy, dummy2) -> 0
function4(p, s1(0), dummy, dummy2) -> 0
function4(p, s1(s1(x)), dummy, dummy2) -> s1(function4(p, s1(x), x, x))
function4(plus, dummy, x, y) -> function4(if, function4(iszero, x, x, x), x, y)
function4(if, true, x, y) -> y
function4(if, false, x, y) -> function4(plus, function4(third, x, y, y), function4(p, x, x, y), s1(y))
function4(third, x, y, z) -> z
Q is empty.
We have to consider all minimal (P,Q,R)-chains.