R
↳Dependency Pair Analysis
LE(s(x), s(y)) -> LE(x, y)
MINUS(s(x), y) -> IFMINUS(le(s(x), y), s(x), y)
MINUS(s(x), y) -> LE(s(x), y)
IFMINUS(false, s(x), y) -> MINUS(x, y)
GCD(s(x), s(y)) -> IFGCD(le(y, x), s(x), s(y))
GCD(s(x), s(y)) -> LE(y, x)
IFGCD(true, s(x), s(y)) -> GCD(minus(x, y), s(y))
IFGCD(true, s(x), s(y)) -> MINUS(x, y)
IFGCD(false, s(x), s(y)) -> GCD(minus(y, x), s(x))
IFGCD(false, s(x), s(y)) -> MINUS(y, x)
R
↳DPs
→DP Problem 1
↳Forward Instantiation Transformation
→DP Problem 2
↳Nar
→DP Problem 3
↳Remaining
LE(s(x), s(y)) -> LE(x, y)
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost
one new Dependency Pair is created:
LE(s(x), s(y)) -> LE(x, y)
LE(s(s(x'')), s(s(y''))) -> LE(s(x''), s(y''))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 4
↳Forward Instantiation Transformation
→DP Problem 2
↳Nar
→DP Problem 3
↳Remaining
LE(s(s(x'')), s(s(y''))) -> LE(s(x''), s(y''))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost
one new Dependency Pair is created:
LE(s(s(x'')), s(s(y''))) -> LE(s(x''), s(y''))
LE(s(s(s(x''''))), s(s(s(y'''')))) -> LE(s(s(x'''')), s(s(y'''')))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 4
↳FwdInst
...
→DP Problem 5
↳Argument Filtering and Ordering
→DP Problem 2
↳Nar
→DP Problem 3
↳Remaining
LE(s(s(s(x''''))), s(s(s(y'''')))) -> LE(s(s(x'''')), s(s(y'''')))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost
LE(s(s(s(x''''))), s(s(s(y'''')))) -> LE(s(s(x'''')), s(s(y'''')))
LE(x1, x2) -> LE(x1, x2)
s(x1) -> s(x1)
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 4
↳FwdInst
...
→DP Problem 6
↳Dependency Graph
→DP Problem 2
↳Nar
→DP Problem 3
↳Remaining
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Narrowing Transformation
→DP Problem 3
↳Remaining
IFMINUS(false, s(x), y) -> MINUS(x, y)
MINUS(s(x), y) -> IFMINUS(le(s(x), y), s(x), y)
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost
two new Dependency Pairs are created:
MINUS(s(x), y) -> IFMINUS(le(s(x), y), s(x), y)
MINUS(s(x''), 0) -> IFMINUS(false, s(x''), 0)
MINUS(s(x''), s(y'')) -> IFMINUS(le(x'', y''), s(x''), s(y''))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 7
↳Narrowing Transformation
→DP Problem 3
↳Remaining
MINUS(s(x''), s(y'')) -> IFMINUS(le(x'', y''), s(x''), s(y''))
MINUS(s(x''), 0) -> IFMINUS(false, s(x''), 0)
IFMINUS(false, s(x), y) -> MINUS(x, y)
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost
three new Dependency Pairs are created:
MINUS(s(x''), s(y'')) -> IFMINUS(le(x'', y''), s(x''), s(y''))
MINUS(s(0), s(y''')) -> IFMINUS(true, s(0), s(y'''))
MINUS(s(s(x')), s(0)) -> IFMINUS(false, s(s(x')), s(0))
MINUS(s(s(x')), s(s(y'))) -> IFMINUS(le(x', y'), s(s(x')), s(s(y')))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 7
↳Nar
...
→DP Problem 8
↳Instantiation Transformation
→DP Problem 3
↳Remaining
MINUS(s(s(x')), s(s(y'))) -> IFMINUS(le(x', y'), s(s(x')), s(s(y')))
MINUS(s(s(x')), s(0)) -> IFMINUS(false, s(s(x')), s(0))
IFMINUS(false, s(x), y) -> MINUS(x, y)
MINUS(s(x''), 0) -> IFMINUS(false, s(x''), 0)
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost
three new Dependency Pairs are created:
IFMINUS(false, s(x), y) -> MINUS(x, y)
IFMINUS(false, s(x'), 0) -> MINUS(x', 0)
IFMINUS(false, s(s(x''')), s(0)) -> MINUS(s(x'''), s(0))
IFMINUS(false, s(s(x'0')), s(s(y'''))) -> MINUS(s(x'0'), s(s(y''')))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 7
↳Nar
...
→DP Problem 9
↳Forward Instantiation Transformation
→DP Problem 3
↳Remaining
IFMINUS(false, s(s(x'0')), s(s(y'''))) -> MINUS(s(x'0'), s(s(y''')))
MINUS(s(s(x')), s(s(y'))) -> IFMINUS(le(x', y'), s(s(x')), s(s(y')))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost
one new Dependency Pair is created:
IFMINUS(false, s(s(x'0')), s(s(y'''))) -> MINUS(s(x'0'), s(s(y''')))
IFMINUS(false, s(s(s(x'''))), s(s(y''''))) -> MINUS(s(s(x''')), s(s(y'''')))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 7
↳Nar
...
→DP Problem 12
↳Narrowing Transformation
→DP Problem 3
↳Remaining
IFMINUS(false, s(s(s(x'''))), s(s(y''''))) -> MINUS(s(s(x''')), s(s(y'''')))
MINUS(s(s(x')), s(s(y'))) -> IFMINUS(le(x', y'), s(s(x')), s(s(y')))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost
three new Dependency Pairs are created:
MINUS(s(s(x')), s(s(y'))) -> IFMINUS(le(x', y'), s(s(x')), s(s(y')))
MINUS(s(s(0)), s(s(y''))) -> IFMINUS(true, s(s(0)), s(s(y'')))
MINUS(s(s(s(x''))), s(s(0))) -> IFMINUS(false, s(s(s(x''))), s(s(0)))
MINUS(s(s(s(x''))), s(s(s(y'')))) -> IFMINUS(le(x'', y''), s(s(s(x''))), s(s(s(y''))))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 7
↳Nar
...
→DP Problem 18
↳Narrowing Transformation
→DP Problem 3
↳Remaining
MINUS(s(s(s(x''))), s(s(s(y'')))) -> IFMINUS(le(x'', y''), s(s(s(x''))), s(s(s(y''))))
MINUS(s(s(s(x''))), s(s(0))) -> IFMINUS(false, s(s(s(x''))), s(s(0)))
IFMINUS(false, s(s(s(x'''))), s(s(y''''))) -> MINUS(s(s(x''')), s(s(y'''')))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost
three new Dependency Pairs are created:
MINUS(s(s(s(x''))), s(s(s(y'')))) -> IFMINUS(le(x'', y''), s(s(s(x''))), s(s(s(y''))))
MINUS(s(s(s(0))), s(s(s(y''')))) -> IFMINUS(true, s(s(s(0))), s(s(s(y'''))))
MINUS(s(s(s(s(x')))), s(s(s(0)))) -> IFMINUS(false, s(s(s(s(x')))), s(s(s(0))))
MINUS(s(s(s(s(x')))), s(s(s(s(y'))))) -> IFMINUS(le(x', y'), s(s(s(s(x')))), s(s(s(s(y')))))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 7
↳Nar
...
→DP Problem 19
↳Narrowing Transformation
→DP Problem 3
↳Remaining
MINUS(s(s(s(s(x')))), s(s(s(s(y'))))) -> IFMINUS(le(x', y'), s(s(s(s(x')))), s(s(s(s(y')))))
MINUS(s(s(s(s(x')))), s(s(s(0)))) -> IFMINUS(false, s(s(s(s(x')))), s(s(s(0))))
IFMINUS(false, s(s(s(x'''))), s(s(y''''))) -> MINUS(s(s(x''')), s(s(y'''')))
MINUS(s(s(s(x''))), s(s(0))) -> IFMINUS(false, s(s(s(x''))), s(s(0)))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost
three new Dependency Pairs are created:
MINUS(s(s(s(s(x')))), s(s(s(s(y'))))) -> IFMINUS(le(x', y'), s(s(s(s(x')))), s(s(s(s(y')))))
MINUS(s(s(s(s(0)))), s(s(s(s(y''))))) -> IFMINUS(true, s(s(s(s(0)))), s(s(s(s(y'')))))
MINUS(s(s(s(s(s(x''))))), s(s(s(s(0))))) -> IFMINUS(false, s(s(s(s(s(x''))))), s(s(s(s(0)))))
MINUS(s(s(s(s(s(x''))))), s(s(s(s(s(y'')))))) -> IFMINUS(le(x'', y''), s(s(s(s(s(x''))))), s(s(s(s(s(y''))))))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 7
↳Nar
...
→DP Problem 20
↳Instantiation Transformation
→DP Problem 3
↳Remaining
MINUS(s(s(s(s(s(x''))))), s(s(s(s(s(y'')))))) -> IFMINUS(le(x'', y''), s(s(s(s(s(x''))))), s(s(s(s(s(y''))))))
MINUS(s(s(s(s(s(x''))))), s(s(s(s(0))))) -> IFMINUS(false, s(s(s(s(s(x''))))), s(s(s(s(0)))))
MINUS(s(s(s(x''))), s(s(0))) -> IFMINUS(false, s(s(s(x''))), s(s(0)))
IFMINUS(false, s(s(s(x'''))), s(s(y''''))) -> MINUS(s(s(x''')), s(s(y'''')))
MINUS(s(s(s(s(x')))), s(s(s(0)))) -> IFMINUS(false, s(s(s(s(x')))), s(s(s(0))))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost
four new Dependency Pairs are created:
IFMINUS(false, s(s(s(x'''))), s(s(y''''))) -> MINUS(s(s(x''')), s(s(y'''')))
IFMINUS(false, s(s(s(x'''''))), s(s(0))) -> MINUS(s(s(x''''')), s(s(0)))
IFMINUS(false, s(s(s(s(x'''')))), s(s(s(0)))) -> MINUS(s(s(s(x''''))), s(s(s(0))))
IFMINUS(false, s(s(s(s(s(x'''''))))), s(s(s(s(0))))) -> MINUS(s(s(s(s(x''''')))), s(s(s(s(0)))))
IFMINUS(false, s(s(s(s(s(x'''''))))), s(s(s(s(s(y''''')))))) -> MINUS(s(s(s(s(x''''')))), s(s(s(s(s(y'''''))))))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 7
↳Nar
...
→DP Problem 21
↳Forward Instantiation Transformation
→DP Problem 3
↳Remaining
IFMINUS(false, s(s(s(s(s(x'''''))))), s(s(s(s(s(y''''')))))) -> MINUS(s(s(s(s(x''''')))), s(s(s(s(s(y'''''))))))
MINUS(s(s(s(s(s(x''))))), s(s(s(s(s(y'')))))) -> IFMINUS(le(x'', y''), s(s(s(s(s(x''))))), s(s(s(s(s(y''))))))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost
one new Dependency Pair is created:
IFMINUS(false, s(s(s(s(s(x'''''))))), s(s(s(s(s(y''''')))))) -> MINUS(s(s(s(s(x''''')))), s(s(s(s(s(y'''''))))))
IFMINUS(false, s(s(s(s(s(s(x'''')))))), s(s(s(s(s(y'''''')))))) -> MINUS(s(s(s(s(s(x''''))))), s(s(s(s(s(y''''''))))))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 3
↳Remaining Obligation(s)
IFMINUS(false, s(s(s(s(s(s(x'''')))))), s(s(s(s(s(y'''''')))))) -> MINUS(s(s(s(s(s(x''''))))), s(s(s(s(s(y''''''))))))
MINUS(s(s(s(s(s(x''))))), s(s(s(s(s(y'')))))) -> IFMINUS(le(x'', y''), s(s(s(s(s(x''))))), s(s(s(s(s(y''))))))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost
IFGCD(false, s(x), s(y)) -> GCD(minus(y, x), s(x))
IFGCD(true, s(x), s(y)) -> GCD(minus(x, y), s(y))
GCD(s(x), s(y)) -> IFGCD(le(y, x), s(x), s(y))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 7
↳Nar
...
→DP Problem 22
↳Forward Instantiation Transformation
→DP Problem 3
↳Remaining
IFMINUS(false, s(s(s(s(s(x'''''))))), s(s(s(s(0))))) -> MINUS(s(s(s(s(x''''')))), s(s(s(s(0)))))
MINUS(s(s(s(s(s(x''))))), s(s(s(s(0))))) -> IFMINUS(false, s(s(s(s(s(x''))))), s(s(s(s(0)))))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost
one new Dependency Pair is created:
IFMINUS(false, s(s(s(s(s(x'''''))))), s(s(s(s(0))))) -> MINUS(s(s(s(s(x''''')))), s(s(s(s(0)))))
IFMINUS(false, s(s(s(s(s(s(x'''')))))), s(s(s(s(0))))) -> MINUS(s(s(s(s(s(x''''))))), s(s(s(s(0)))))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 7
↳Nar
...
→DP Problem 26
↳Argument Filtering and Ordering
→DP Problem 3
↳Remaining
IFMINUS(false, s(s(s(s(s(s(x'''')))))), s(s(s(s(0))))) -> MINUS(s(s(s(s(s(x''''))))), s(s(s(s(0)))))
MINUS(s(s(s(s(s(x''))))), s(s(s(s(0))))) -> IFMINUS(false, s(s(s(s(s(x''))))), s(s(s(s(0)))))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost
IFMINUS(false, s(s(s(s(s(s(x'''')))))), s(s(s(s(0))))) -> MINUS(s(s(s(s(s(x''''))))), s(s(s(s(0)))))
IFMINUS(x1, x2, x3) -> x2
s(x1) -> s(x1)
MINUS(x1, x2) -> x1
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 7
↳Nar
...
→DP Problem 34
↳Dependency Graph
→DP Problem 3
↳Remaining
MINUS(s(s(s(s(s(x''))))), s(s(s(s(0))))) -> IFMINUS(false, s(s(s(s(s(x''))))), s(s(s(s(0)))))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 7
↳Nar
...
→DP Problem 23
↳Forward Instantiation Transformation
→DP Problem 3
↳Remaining
IFMINUS(false, s(s(s(x'''''))), s(s(0))) -> MINUS(s(s(x''''')), s(s(0)))
MINUS(s(s(s(x''))), s(s(0))) -> IFMINUS(false, s(s(s(x''))), s(s(0)))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost
one new Dependency Pair is created:
IFMINUS(false, s(s(s(x'''''))), s(s(0))) -> MINUS(s(s(x''''')), s(s(0)))
IFMINUS(false, s(s(s(s(x'''')))), s(s(0))) -> MINUS(s(s(s(x''''))), s(s(0)))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 7
↳Nar
...
→DP Problem 27
↳Forward Instantiation Transformation
→DP Problem 3
↳Remaining
IFMINUS(false, s(s(s(s(x'''')))), s(s(0))) -> MINUS(s(s(s(x''''))), s(s(0)))
MINUS(s(s(s(x''))), s(s(0))) -> IFMINUS(false, s(s(s(x''))), s(s(0)))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost
one new Dependency Pair is created:
MINUS(s(s(s(x''))), s(s(0))) -> IFMINUS(false, s(s(s(x''))), s(s(0)))
MINUS(s(s(s(s(x'''''')))), s(s(0))) -> IFMINUS(false, s(s(s(s(x'''''')))), s(s(0)))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 7
↳Nar
...
→DP Problem 29
↳Forward Instantiation Transformation
→DP Problem 3
↳Remaining
MINUS(s(s(s(s(x'''''')))), s(s(0))) -> IFMINUS(false, s(s(s(s(x'''''')))), s(s(0)))
IFMINUS(false, s(s(s(s(x'''')))), s(s(0))) -> MINUS(s(s(s(x''''))), s(s(0)))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost
one new Dependency Pair is created:
IFMINUS(false, s(s(s(s(x'''')))), s(s(0))) -> MINUS(s(s(s(x''''))), s(s(0)))
IFMINUS(false, s(s(s(s(s(x''''''''))))), s(s(0))) -> MINUS(s(s(s(s(x'''''''')))), s(s(0)))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 7
↳Nar
...
→DP Problem 31
↳Forward Instantiation Transformation
→DP Problem 3
↳Remaining
IFMINUS(false, s(s(s(s(s(x''''''''))))), s(s(0))) -> MINUS(s(s(s(s(x'''''''')))), s(s(0)))
MINUS(s(s(s(s(x'''''')))), s(s(0))) -> IFMINUS(false, s(s(s(s(x'''''')))), s(s(0)))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost
one new Dependency Pair is created:
MINUS(s(s(s(s(x'''''')))), s(s(0))) -> IFMINUS(false, s(s(s(s(x'''''')))), s(s(0)))
MINUS(s(s(s(s(s(x''''''''''))))), s(s(0))) -> IFMINUS(false, s(s(s(s(s(x''''''''''))))), s(s(0)))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 7
↳Nar
...
→DP Problem 33
↳Argument Filtering and Ordering
→DP Problem 3
↳Remaining
MINUS(s(s(s(s(s(x''''''''''))))), s(s(0))) -> IFMINUS(false, s(s(s(s(s(x''''''''''))))), s(s(0)))
IFMINUS(false, s(s(s(s(s(x''''''''))))), s(s(0))) -> MINUS(s(s(s(s(x'''''''')))), s(s(0)))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost
IFMINUS(false, s(s(s(s(s(x''''''''))))), s(s(0))) -> MINUS(s(s(s(s(x'''''''')))), s(s(0)))
MINUS(x1, x2) -> x1
s(x1) -> s(x1)
IFMINUS(x1, x2, x3) -> x2
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 7
↳Nar
...
→DP Problem 36
↳Dependency Graph
→DP Problem 3
↳Remaining
MINUS(s(s(s(s(s(x''''''''''))))), s(s(0))) -> IFMINUS(false, s(s(s(s(s(x''''''''''))))), s(s(0)))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 7
↳Nar
...
→DP Problem 24
↳Forward Instantiation Transformation
→DP Problem 3
↳Remaining
IFMINUS(false, s(s(s(s(x'''')))), s(s(s(0)))) -> MINUS(s(s(s(x''''))), s(s(s(0))))
MINUS(s(s(s(s(x')))), s(s(s(0)))) -> IFMINUS(false, s(s(s(s(x')))), s(s(s(0))))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost
one new Dependency Pair is created:
IFMINUS(false, s(s(s(s(x'''')))), s(s(s(0)))) -> MINUS(s(s(s(x''''))), s(s(s(0))))
IFMINUS(false, s(s(s(s(s(x'''))))), s(s(s(0)))) -> MINUS(s(s(s(s(x''')))), s(s(s(0))))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 7
↳Nar
...
→DP Problem 28
↳Forward Instantiation Transformation
→DP Problem 3
↳Remaining
IFMINUS(false, s(s(s(s(s(x'''))))), s(s(s(0)))) -> MINUS(s(s(s(s(x''')))), s(s(s(0))))
MINUS(s(s(s(s(x')))), s(s(s(0)))) -> IFMINUS(false, s(s(s(s(x')))), s(s(s(0))))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost
one new Dependency Pair is created:
MINUS(s(s(s(s(x')))), s(s(s(0)))) -> IFMINUS(false, s(s(s(s(x')))), s(s(s(0))))
MINUS(s(s(s(s(s(x'''''))))), s(s(s(0)))) -> IFMINUS(false, s(s(s(s(s(x'''''))))), s(s(s(0))))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 7
↳Nar
...
→DP Problem 30
↳Forward Instantiation Transformation
→DP Problem 3
↳Remaining
MINUS(s(s(s(s(s(x'''''))))), s(s(s(0)))) -> IFMINUS(false, s(s(s(s(s(x'''''))))), s(s(s(0))))
IFMINUS(false, s(s(s(s(s(x'''))))), s(s(s(0)))) -> MINUS(s(s(s(s(x''')))), s(s(s(0))))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost
one new Dependency Pair is created:
IFMINUS(false, s(s(s(s(s(x'''))))), s(s(s(0)))) -> MINUS(s(s(s(s(x''')))), s(s(s(0))))
IFMINUS(false, s(s(s(s(s(s(x''''''')))))), s(s(s(0)))) -> MINUS(s(s(s(s(s(x'''''''))))), s(s(s(0))))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 7
↳Nar
...
→DP Problem 32
↳Argument Filtering and Ordering
→DP Problem 3
↳Remaining
IFMINUS(false, s(s(s(s(s(s(x''''''')))))), s(s(s(0)))) -> MINUS(s(s(s(s(s(x'''''''))))), s(s(s(0))))
MINUS(s(s(s(s(s(x'''''))))), s(s(s(0)))) -> IFMINUS(false, s(s(s(s(s(x'''''))))), s(s(s(0))))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost
IFMINUS(false, s(s(s(s(s(s(x''''''')))))), s(s(s(0)))) -> MINUS(s(s(s(s(s(x'''''''))))), s(s(s(0))))
MINUS(x1, x2) -> x1
s(x1) -> s(x1)
IFMINUS(x1, x2, x3) -> x2
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 7
↳Nar
...
→DP Problem 35
↳Dependency Graph
→DP Problem 3
↳Remaining
MINUS(s(s(s(s(s(x'''''))))), s(s(s(0)))) -> IFMINUS(false, s(s(s(s(s(x'''''))))), s(s(s(0))))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 7
↳Nar
...
→DP Problem 10
↳Forward Instantiation Transformation
→DP Problem 3
↳Remaining
IFMINUS(false, s(s(x''')), s(0)) -> MINUS(s(x'''), s(0))
MINUS(s(s(x')), s(0)) -> IFMINUS(false, s(s(x')), s(0))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost
one new Dependency Pair is created:
IFMINUS(false, s(s(x''')), s(0)) -> MINUS(s(x'''), s(0))
IFMINUS(false, s(s(s(x''''))), s(0)) -> MINUS(s(s(x'''')), s(0))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 7
↳Nar
...
→DP Problem 13
↳Argument Filtering and Ordering
→DP Problem 3
↳Remaining
IFMINUS(false, s(s(s(x''''))), s(0)) -> MINUS(s(s(x'''')), s(0))
MINUS(s(s(x')), s(0)) -> IFMINUS(false, s(s(x')), s(0))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost
IFMINUS(false, s(s(s(x''''))), s(0)) -> MINUS(s(s(x'''')), s(0))
IFMINUS(x1, x2, x3) -> x2
s(x1) -> s(x1)
MINUS(x1, x2) -> x1
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 7
↳Nar
...
→DP Problem 16
↳Dependency Graph
→DP Problem 3
↳Remaining
MINUS(s(s(x')), s(0)) -> IFMINUS(false, s(s(x')), s(0))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 7
↳Nar
...
→DP Problem 11
↳Forward Instantiation Transformation
→DP Problem 3
↳Remaining
IFMINUS(false, s(x'), 0) -> MINUS(x', 0)
MINUS(s(x''), 0) -> IFMINUS(false, s(x''), 0)
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost
one new Dependency Pair is created:
IFMINUS(false, s(x'), 0) -> MINUS(x', 0)
IFMINUS(false, s(s(x'''')), 0) -> MINUS(s(x''''), 0)
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 7
↳Nar
...
→DP Problem 14
↳Forward Instantiation Transformation
→DP Problem 3
↳Remaining
IFMINUS(false, s(s(x'''')), 0) -> MINUS(s(x''''), 0)
MINUS(s(x''), 0) -> IFMINUS(false, s(x''), 0)
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost
one new Dependency Pair is created:
MINUS(s(x''), 0) -> IFMINUS(false, s(x''), 0)
MINUS(s(s(x'''''')), 0) -> IFMINUS(false, s(s(x'''''')), 0)
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 7
↳Nar
...
→DP Problem 15
↳Argument Filtering and Ordering
→DP Problem 3
↳Remaining
MINUS(s(s(x'''''')), 0) -> IFMINUS(false, s(s(x'''''')), 0)
IFMINUS(false, s(s(x'''')), 0) -> MINUS(s(x''''), 0)
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost
IFMINUS(false, s(s(x'''')), 0) -> MINUS(s(x''''), 0)
MINUS(x1, x2) -> x1
s(x1) -> s(x1)
IFMINUS(x1, x2, x3) -> x2
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 7
↳Nar
...
→DP Problem 17
↳Dependency Graph
→DP Problem 3
↳Remaining
MINUS(s(s(x'''''')), 0) -> IFMINUS(false, s(s(x'''''')), 0)
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Nar
→DP Problem 3
↳Remaining Obligation(s)
IFMINUS(false, s(s(s(s(s(s(x'''')))))), s(s(s(s(s(y'''''')))))) -> MINUS(s(s(s(s(s(x''''))))), s(s(s(s(s(y''''''))))))
MINUS(s(s(s(s(s(x''))))), s(s(s(s(s(y'')))))) -> IFMINUS(le(x'', y''), s(s(s(s(s(x''))))), s(s(s(s(s(y''))))))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost
IFGCD(false, s(x), s(y)) -> GCD(minus(y, x), s(x))
IFGCD(true, s(x), s(y)) -> GCD(minus(x, y), s(y))
GCD(s(x), s(y)) -> IFGCD(le(y, x), s(x), s(y))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
minus(0, y) -> 0
minus(s(x), y) -> ifminus(le(s(x), y), s(x), y)
ifminus(true, s(x), y) -> 0
ifminus(false, s(x), y) -> s(minus(x, y))
gcd(0, y) -> y
gcd(s(x), 0) -> s(x)
gcd(s(x), s(y)) -> ifgcd(le(y, x), s(x), s(y))
ifgcd(true, s(x), s(y)) -> gcd(minus(x, y), s(y))
ifgcd(false, s(x), s(y)) -> gcd(minus(y, x), s(x))
innermost