R
↳Dependency Pair Analysis
LE(s(x), s(y)) -> LE(x, y)
APP(add(n, x), y) -> APP(x, y)
LOW(n, add(m, x)) -> IFLOW(le(m, n), n, add(m, x))
LOW(n, add(m, x)) -> LE(m, n)
IFLOW(true, n, add(m, x)) -> LOW(n, x)
IFLOW(false, n, add(m, x)) -> LOW(n, x)
HIGH(n, add(m, x)) -> IFHIGH(le(m, n), n, add(m, x))
HIGH(n, add(m, x)) -> LE(m, n)
IFHIGH(true, n, add(m, x)) -> HIGH(n, x)
IFHIGH(false, n, add(m, x)) -> HIGH(n, x)
QUICKSORT(add(n, x)) -> APP(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
QUICKSORT(add(n, x)) -> QUICKSORT(low(n, x))
QUICKSORT(add(n, x)) -> LOW(n, x)
QUICKSORT(add(n, x)) -> QUICKSORT(high(n, x))
QUICKSORT(add(n, x)) -> HIGH(n, x)
R
↳DPs
→DP Problem 1
↳Forward Instantiation Transformation
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
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)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, 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 6
↳Forward Instantiation Transformation
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
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)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, 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 6
↳FwdInst
...
→DP Problem 7
↳Polynomial Ordering
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
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)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
LE(s(s(s(x''''))), s(s(s(y'''')))) -> LE(s(s(x'''')), s(s(y'''')))
POL(LE(x1, x2)) = 1 + x1 POL(s(x1)) = 1 + x1
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 6
↳FwdInst
...
→DP Problem 8
↳Dependency Graph
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Forward Instantiation Transformation
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
APP(add(n, x), y) -> APP(x, y)
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
one new Dependency Pair is created:
APP(add(n, x), y) -> APP(x, y)
APP(add(n, add(n'', x'')), y'') -> APP(add(n'', x''), y'')
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 9
↳Forward Instantiation Transformation
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
APP(add(n, add(n'', x'')), y'') -> APP(add(n'', x''), y'')
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
one new Dependency Pair is created:
APP(add(n, add(n'', x'')), y'') -> APP(add(n'', x''), y'')
APP(add(n, add(n'''', add(n''''', x''''))), y'''') -> APP(add(n'''', add(n''''', x'''')), y'''')
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 9
↳FwdInst
...
→DP Problem 10
↳Polynomial Ordering
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
APP(add(n, add(n'''', add(n''''', x''''))), y'''') -> APP(add(n'''', add(n''''', x'''')), y'''')
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
APP(add(n, add(n'''', add(n''''', x''''))), y'''') -> APP(add(n'''', add(n''''', x'''')), y'''')
POL(APP(x1, x2)) = 1 + x1 POL(add(x1, x2)) = 1 + x2
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 9
↳FwdInst
...
→DP Problem 11
↳Dependency Graph
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Narrowing Transformation
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
IFLOW(false, n, add(m, x)) -> LOW(n, x)
IFLOW(true, n, add(m, x)) -> LOW(n, x)
LOW(n, add(m, x)) -> IFLOW(le(m, n), n, add(m, x))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
three new Dependency Pairs are created:
LOW(n, add(m, x)) -> IFLOW(le(m, n), n, add(m, x))
LOW(n', add(0, x)) -> IFLOW(true, n', add(0, x))
LOW(0, add(s(x''), x)) -> IFLOW(false, 0, add(s(x''), x))
LOW(s(y'), add(s(x''), x)) -> IFLOW(le(x'', y'), s(y'), add(s(x''), x))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 12
↳Narrowing Transformation
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
LOW(s(y'), add(s(x''), x)) -> IFLOW(le(x'', y'), s(y'), add(s(x''), x))
LOW(0, add(s(x''), x)) -> IFLOW(false, 0, add(s(x''), x))
IFLOW(true, n, add(m, x)) -> LOW(n, x)
LOW(n', add(0, x)) -> IFLOW(true, n', add(0, x))
IFLOW(false, n, add(m, x)) -> LOW(n, x)
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
three new Dependency Pairs are created:
LOW(s(y'), add(s(x''), x)) -> IFLOW(le(x'', y'), s(y'), add(s(x''), x))
LOW(s(y''), add(s(0), x)) -> IFLOW(true, s(y''), add(s(0), x))
LOW(s(0), add(s(s(x''')), x)) -> IFLOW(false, s(0), add(s(s(x''')), x))
LOW(s(s(y'')), add(s(s(x''')), x)) -> IFLOW(le(x''', y''), s(s(y'')), add(s(s(x''')), x))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 12
↳Nar
...
→DP Problem 13
↳Instantiation Transformation
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
LOW(s(s(y'')), add(s(s(x''')), x)) -> IFLOW(le(x''', y''), s(s(y'')), add(s(s(x''')), x))
LOW(s(0), add(s(s(x''')), x)) -> IFLOW(false, s(0), add(s(s(x''')), x))
LOW(s(y''), add(s(0), x)) -> IFLOW(true, s(y''), add(s(0), x))
IFLOW(true, n, add(m, x)) -> LOW(n, x)
LOW(n', add(0, x)) -> IFLOW(true, n', add(0, x))
IFLOW(false, n, add(m, x)) -> LOW(n, x)
LOW(0, add(s(x''), x)) -> IFLOW(false, 0, add(s(x''), x))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
three new Dependency Pairs are created:
IFLOW(true, n, add(m, x)) -> LOW(n, x)
IFLOW(true, n', add(0, x'')) -> LOW(n', x'')
IFLOW(true, s(y''''), add(s(0), x'')) -> LOW(s(y''''), x'')
IFLOW(true, s(s(y'''')), add(s(s(x''''')), x')) -> LOW(s(s(y'''')), x')
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 12
↳Nar
...
→DP Problem 14
↳Instantiation Transformation
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
IFLOW(true, s(s(y'''')), add(s(s(x''''')), x')) -> LOW(s(s(y'''')), x')
LOW(s(0), add(s(s(x''')), x)) -> IFLOW(false, s(0), add(s(s(x''')), x))
IFLOW(true, s(y''''), add(s(0), x'')) -> LOW(s(y''''), x'')
LOW(s(y''), add(s(0), x)) -> IFLOW(true, s(y''), add(s(0), x))
LOW(0, add(s(x''), x)) -> IFLOW(false, 0, add(s(x''), x))
IFLOW(true, n', add(0, x'')) -> LOW(n', x'')
LOW(n', add(0, x)) -> IFLOW(true, n', add(0, x))
IFLOW(false, n, add(m, x)) -> LOW(n, x)
LOW(s(s(y'')), add(s(s(x''')), x)) -> IFLOW(le(x''', y''), s(s(y'')), add(s(s(x''')), x))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
three new Dependency Pairs are created:
IFLOW(false, n, add(m, x)) -> LOW(n, x)
IFLOW(false, 0, add(s(x''''), x'')) -> LOW(0, x'')
IFLOW(false, s(0), add(s(s(x''''')), x'')) -> LOW(s(0), x'')
IFLOW(false, s(s(y'''')), add(s(s(x''''')), x')) -> LOW(s(s(y'''')), x')
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 12
↳Nar
...
→DP Problem 15
↳Forward Instantiation Transformation
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
IFLOW(false, s(s(y'''')), add(s(s(x''''')), x')) -> LOW(s(s(y'''')), x')
LOW(s(s(y'')), add(s(s(x''')), x)) -> IFLOW(le(x''', y''), s(s(y'')), add(s(s(x''')), x))
IFLOW(false, s(0), add(s(s(x''''')), x'')) -> LOW(s(0), x'')
LOW(s(0), add(s(s(x''')), x)) -> IFLOW(false, s(0), add(s(s(x''')), x))
IFLOW(true, s(y''''), add(s(0), x'')) -> LOW(s(y''''), x'')
LOW(s(y''), add(s(0), x)) -> IFLOW(true, s(y''), add(s(0), x))
IFLOW(false, 0, add(s(x''''), x'')) -> LOW(0, x'')
LOW(0, add(s(x''), x)) -> IFLOW(false, 0, add(s(x''), x))
IFLOW(true, n', add(0, x'')) -> LOW(n', x'')
LOW(n', add(0, x)) -> IFLOW(true, n', add(0, x))
IFLOW(true, s(s(y'''')), add(s(s(x''''')), x')) -> LOW(s(s(y'''')), x')
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
five new Dependency Pairs are created:
IFLOW(true, n', add(0, x'')) -> LOW(n', x'')
IFLOW(true, n''', add(0, add(0, x'''))) -> LOW(n''', add(0, x'''))
IFLOW(true, 0, add(0, add(s(x''''), x'0))) -> LOW(0, add(s(x''''), x'0))
IFLOW(true, s(y''''), add(0, add(s(0), x'''))) -> LOW(s(y''''), add(s(0), x'''))
IFLOW(true, s(0), add(0, add(s(s(x''''')), x'''))) -> LOW(s(0), add(s(s(x''''')), x'''))
IFLOW(true, s(s(y'''')), add(0, add(s(s(x''''')), x'''))) -> LOW(s(s(y'''')), add(s(s(x''''')), x'''))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 12
↳Nar
...
→DP Problem 16
↳Forward Instantiation Transformation
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
IFLOW(true, s(s(y'''')), add(0, add(s(s(x''''')), x'''))) -> LOW(s(s(y'''')), add(s(s(x''''')), x'''))
IFLOW(true, s(0), add(0, add(s(s(x''''')), x'''))) -> LOW(s(0), add(s(s(x''''')), x'''))
IFLOW(true, s(s(y'''')), add(s(s(x''''')), x')) -> LOW(s(s(y'''')), x')
LOW(s(s(y'')), add(s(s(x''')), x)) -> IFLOW(le(x''', y''), s(s(y'')), add(s(s(x''')), x))
IFLOW(false, s(0), add(s(s(x''''')), x'')) -> LOW(s(0), x'')
LOW(s(0), add(s(s(x''')), x)) -> IFLOW(false, s(0), add(s(s(x''')), x))
IFLOW(true, s(y''''), add(s(0), x'')) -> LOW(s(y''''), x'')
LOW(s(y''), add(s(0), x)) -> IFLOW(true, s(y''), add(s(0), x))
IFLOW(true, s(y''''), add(0, add(s(0), x'''))) -> LOW(s(y''''), add(s(0), x'''))
IFLOW(false, 0, add(s(x''''), x'')) -> LOW(0, x'')
LOW(0, add(s(x''), x)) -> IFLOW(false, 0, add(s(x''), x))
IFLOW(true, 0, add(0, add(s(x''''), x'0))) -> LOW(0, add(s(x''''), x'0))
IFLOW(true, n''', add(0, add(0, x'''))) -> LOW(n''', add(0, x'''))
LOW(n', add(0, x)) -> IFLOW(true, n', add(0, x))
IFLOW(false, s(s(y'''')), add(s(s(x''''')), x')) -> LOW(s(s(y'''')), x')
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
five new Dependency Pairs are created:
LOW(n', add(0, x)) -> IFLOW(true, n', add(0, x))
LOW(n'', add(0, add(0, x'''''))) -> IFLOW(true, n'', add(0, add(0, x''''')))
LOW(0, add(0, add(s(x''''''), x'0''))) -> IFLOW(true, 0, add(0, add(s(x''''''), x'0'')))
LOW(s(y''''''), add(0, add(s(0), x'''''))) -> IFLOW(true, s(y''''''), add(0, add(s(0), x''''')))
LOW(s(0), add(0, add(s(s(x''''''')), x'''''))) -> IFLOW(true, s(0), add(0, add(s(s(x''''''')), x''''')))
LOW(s(s(y'''''')), add(0, add(s(s(x''''''')), x'''''))) -> IFLOW(true, s(s(y'''''')), add(0, add(s(s(x''''''')), x''''')))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 12
↳Nar
...
→DP Problem 17
↳Forward Instantiation Transformation
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
IFLOW(false, s(s(y'''')), add(s(s(x''''')), x')) -> LOW(s(s(y'''')), x')
LOW(s(s(y'''''')), add(0, add(s(s(x''''''')), x'''''))) -> IFLOW(true, s(s(y'''''')), add(0, add(s(s(x''''''')), x''''')))
IFLOW(true, s(0), add(0, add(s(s(x''''')), x'''))) -> LOW(s(0), add(s(s(x''''')), x'''))
LOW(s(0), add(0, add(s(s(x''''''')), x'''''))) -> IFLOW(true, s(0), add(0, add(s(s(x''''''')), x''''')))
IFLOW(true, s(y''''), add(0, add(s(0), x'''))) -> LOW(s(y''''), add(s(0), x'''))
LOW(s(y''''''), add(0, add(s(0), x'''''))) -> IFLOW(true, s(y''''''), add(0, add(s(0), x''''')))
IFLOW(false, 0, add(s(x''''), x'')) -> LOW(0, x'')
LOW(0, add(s(x''), x)) -> IFLOW(false, 0, add(s(x''), x))
IFLOW(true, 0, add(0, add(s(x''''), x'0))) -> LOW(0, add(s(x''''), x'0))
LOW(0, add(0, add(s(x''''''), x'0''))) -> IFLOW(true, 0, add(0, add(s(x''''''), x'0'')))
IFLOW(true, n''', add(0, add(0, x'''))) -> LOW(n''', add(0, x'''))
LOW(n'', add(0, add(0, x'''''))) -> IFLOW(true, n'', add(0, add(0, x''''')))
IFLOW(false, s(0), add(s(s(x''''')), x'')) -> LOW(s(0), x'')
LOW(s(0), add(s(s(x''')), x)) -> IFLOW(false, s(0), add(s(s(x''')), x))
IFLOW(true, s(y''''), add(s(0), x'')) -> LOW(s(y''''), x'')
LOW(s(y''), add(s(0), x)) -> IFLOW(true, s(y''), add(s(0), x))
IFLOW(true, s(s(y'''')), add(s(s(x''''')), x')) -> LOW(s(s(y'''')), x')
LOW(s(s(y'')), add(s(s(x''')), x)) -> IFLOW(le(x''', y''), s(s(y'')), add(s(s(x''')), x))
IFLOW(true, s(s(y'''')), add(0, add(s(s(x''''')), x'''))) -> LOW(s(s(y'''')), add(s(s(x''''')), x'''))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
seven new Dependency Pairs are created:
IFLOW(true, s(y''''), add(s(0), x'')) -> LOW(s(y''''), x'')
IFLOW(true, s(y'''''), add(s(0), add(s(0), x'''))) -> LOW(s(y'''''), add(s(0), x'''))
IFLOW(true, s(0), add(s(0), add(s(s(x''''')), x'''))) -> LOW(s(0), add(s(s(x''''')), x'''))
IFLOW(true, s(s(y''''')), add(s(0), add(s(s(x''''')), x'''))) -> LOW(s(s(y''''')), add(s(s(x''''')), x'''))
IFLOW(true, s(y'''''), add(s(0), add(0, add(0, x''''''')))) -> LOW(s(y'''''), add(0, add(0, x''''''')))
IFLOW(true, s(y'''''), add(s(0), add(0, add(s(0), x''''''')))) -> LOW(s(y'''''), add(0, add(s(0), x''''''')))
IFLOW(true, s(0), add(s(0), add(0, add(s(s(x''''''''')), x''''''')))) -> LOW(s(0), add(0, add(s(s(x''''''''')), x''''''')))
IFLOW(true, s(s(y'''''''')), add(s(0), add(0, add(s(s(x''''''''')), x''''''')))) -> LOW(s(s(y'''''''')), add(0, add(s(s(x''''''''')), x''''''')))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 12
↳Nar
...
→DP Problem 18
↳Forward Instantiation Transformation
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
IFLOW(true, s(s(y'''''''')), add(s(0), add(0, add(s(s(x''''''''')), x''''''')))) -> LOW(s(s(y'''''''')), add(0, add(s(s(x''''''''')), x''''''')))
IFLOW(true, s(0), add(s(0), add(0, add(s(s(x''''''''')), x''''''')))) -> LOW(s(0), add(0, add(s(s(x''''''''')), x''''''')))
IFLOW(true, s(y'''''), add(s(0), add(0, add(s(0), x''''''')))) -> LOW(s(y'''''), add(0, add(s(0), x''''''')))
IFLOW(true, s(y'''''), add(s(0), add(0, add(0, x''''''')))) -> LOW(s(y'''''), add(0, add(0, x''''''')))
IFLOW(true, s(s(y''''')), add(s(0), add(s(s(x''''')), x'''))) -> LOW(s(s(y''''')), add(s(s(x''''')), x'''))
IFLOW(true, s(s(y'''')), add(s(s(x''''')), x')) -> LOW(s(s(y'''')), x')
LOW(s(s(y'')), add(s(s(x''')), x)) -> IFLOW(le(x''', y''), s(s(y'')), add(s(s(x''')), x))
IFLOW(true, s(s(y'''')), add(0, add(s(s(x''''')), x'''))) -> LOW(s(s(y'''')), add(s(s(x''''')), x'''))
LOW(s(s(y'''''')), add(0, add(s(s(x''''''')), x'''''))) -> IFLOW(true, s(s(y'''''')), add(0, add(s(s(x''''''')), x''''')))
IFLOW(true, s(0), add(0, add(s(s(x''''')), x'''))) -> LOW(s(0), add(s(s(x''''')), x'''))
LOW(s(0), add(0, add(s(s(x''''''')), x'''''))) -> IFLOW(true, s(0), add(0, add(s(s(x''''''')), x''''')))
IFLOW(true, s(y''''), add(0, add(s(0), x'''))) -> LOW(s(y''''), add(s(0), x'''))
LOW(s(y''''''), add(0, add(s(0), x'''''))) -> IFLOW(true, s(y''''''), add(0, add(s(0), x''''')))
IFLOW(false, 0, add(s(x''''), x'')) -> LOW(0, x'')
LOW(0, add(s(x''), x)) -> IFLOW(false, 0, add(s(x''), x))
IFLOW(true, 0, add(0, add(s(x''''), x'0))) -> LOW(0, add(s(x''''), x'0))
LOW(0, add(0, add(s(x''''''), x'0''))) -> IFLOW(true, 0, add(0, add(s(x''''''), x'0'')))
IFLOW(true, n''', add(0, add(0, x'''))) -> LOW(n''', add(0, x'''))
LOW(n'', add(0, add(0, x'''''))) -> IFLOW(true, n'', add(0, add(0, x''''')))
IFLOW(false, s(0), add(s(s(x''''')), x'')) -> LOW(s(0), x'')
LOW(s(0), add(s(s(x''')), x)) -> IFLOW(false, s(0), add(s(s(x''')), x))
IFLOW(true, s(0), add(s(0), add(s(s(x''''')), x'''))) -> LOW(s(0), add(s(s(x''''')), x'''))
IFLOW(true, s(y'''''), add(s(0), add(s(0), x'''))) -> LOW(s(y'''''), add(s(0), x'''))
LOW(s(y''), add(s(0), x)) -> IFLOW(true, s(y''), add(s(0), x))
IFLOW(false, s(s(y'''')), add(s(s(x''''')), x')) -> LOW(s(s(y'''')), x')
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
five new Dependency Pairs are created:
IFLOW(true, s(s(y'''')), add(s(s(x''''')), x')) -> LOW(s(s(y'''')), x')
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(s(0), x'''))) -> LOW(s(s(y''''')), add(s(0), x'''))
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> LOW(s(s(y''''')), add(s(s(x''''')), x'''))
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(0, add(0, x''''''')))) -> LOW(s(s(y''''')), add(0, add(0, x''''''')))
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(0, add(s(0), x''''''')))) -> LOW(s(s(y''''')), add(0, add(s(0), x''''''')))
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(0, add(s(s(x''''''''')), x''''''')))) -> LOW(s(s(y''''')), add(0, add(s(s(x''''''''')), x''''''')))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 12
↳Nar
...
→DP Problem 19
↳Forward Instantiation Transformation
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(0, add(s(s(x''''''''')), x''''''')))) -> LOW(s(s(y''''')), add(0, add(s(s(x''''''''')), x''''''')))
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(0, add(s(0), x''''''')))) -> LOW(s(s(y''''')), add(0, add(s(0), x''''''')))
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(0, add(0, x''''''')))) -> LOW(s(s(y''''')), add(0, add(0, x''''''')))
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> LOW(s(s(y''''')), add(s(s(x''''')), x'''))
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(s(0), x'''))) -> LOW(s(s(y''''')), add(s(0), x'''))
IFLOW(true, s(0), add(s(0), add(0, add(s(s(x''''''''')), x''''''')))) -> LOW(s(0), add(0, add(s(s(x''''''''')), x''''''')))
IFLOW(true, s(y'''''), add(s(0), add(0, add(s(0), x''''''')))) -> LOW(s(y'''''), add(0, add(s(0), x''''''')))
IFLOW(true, s(y'''''), add(s(0), add(0, add(0, x''''''')))) -> LOW(s(y'''''), add(0, add(0, x''''''')))
IFLOW(true, s(s(y''''')), add(s(0), add(s(s(x''''')), x'''))) -> LOW(s(s(y''''')), add(s(s(x''''')), x'''))
IFLOW(true, s(0), add(0, add(s(s(x''''')), x'''))) -> LOW(s(0), add(s(s(x''''')), x'''))
LOW(s(0), add(0, add(s(s(x''''''')), x'''''))) -> IFLOW(true, s(0), add(0, add(s(s(x''''''')), x''''')))
IFLOW(true, s(y''''), add(0, add(s(0), x'''))) -> LOW(s(y''''), add(s(0), x'''))
LOW(s(y''''''), add(0, add(s(0), x'''''))) -> IFLOW(true, s(y''''''), add(0, add(s(0), x''''')))
IFLOW(false, 0, add(s(x''''), x'')) -> LOW(0, x'')
LOW(0, add(s(x''), x)) -> IFLOW(false, 0, add(s(x''), x))
IFLOW(true, 0, add(0, add(s(x''''), x'0))) -> LOW(0, add(s(x''''), x'0))
LOW(0, add(0, add(s(x''''''), x'0''))) -> IFLOW(true, 0, add(0, add(s(x''''''), x'0'')))
IFLOW(true, n''', add(0, add(0, x'''))) -> LOW(n''', add(0, x'''))
LOW(n'', add(0, add(0, x'''''))) -> IFLOW(true, n'', add(0, add(0, x''''')))
IFLOW(false, s(0), add(s(s(x''''')), x'')) -> LOW(s(0), x'')
LOW(s(0), add(s(s(x''')), x)) -> IFLOW(false, s(0), add(s(s(x''')), x))
IFLOW(true, s(0), add(s(0), add(s(s(x''''')), x'''))) -> LOW(s(0), add(s(s(x''''')), x'''))
IFLOW(true, s(y'''''), add(s(0), add(s(0), x'''))) -> LOW(s(y'''''), add(s(0), x'''))
LOW(s(y''), add(s(0), x)) -> IFLOW(true, s(y''), add(s(0), x))
IFLOW(false, s(s(y'''')), add(s(s(x''''')), x')) -> LOW(s(s(y'''')), x')
LOW(s(s(y'')), add(s(s(x''')), x)) -> IFLOW(le(x''', y''), s(s(y'')), add(s(s(x''')), x))
IFLOW(true, s(s(y'''')), add(0, add(s(s(x''''')), x'''))) -> LOW(s(s(y'''')), add(s(s(x''''')), x'''))
LOW(s(s(y'''''')), add(0, add(s(s(x''''''')), x'''''))) -> IFLOW(true, s(s(y'''''')), add(0, add(s(s(x''''''')), x''''')))
IFLOW(true, s(s(y'''''''')), add(s(0), add(0, add(s(s(x''''''''')), x''''''')))) -> LOW(s(s(y'''''''')), add(0, add(s(s(x''''''''')), x''''''')))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
three new Dependency Pairs are created:
IFLOW(false, 0, add(s(x''''), x'')) -> LOW(0, x'')
IFLOW(false, 0, add(s(x''''), add(s(x''''), x'0))) -> LOW(0, add(s(x''''), x'0))
IFLOW(false, 0, add(s(x''''), add(0, add(0, x''''''')))) -> LOW(0, add(0, add(0, x''''''')))
IFLOW(false, 0, add(s(x''''), add(0, add(s(x''''''''), x'0'''')))) -> LOW(0, add(0, add(s(x''''''''), x'0'''')))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 12
↳Nar
...
→DP Problem 20
↳Forward Instantiation Transformation
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(0, add(s(0), x''''''')))) -> LOW(s(s(y''''')), add(0, add(s(0), x''''''')))
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(0, add(0, x''''''')))) -> LOW(s(s(y''''')), add(0, add(0, x''''''')))
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> LOW(s(s(y''''')), add(s(s(x''''')), x'''))
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(s(0), x'''))) -> LOW(s(s(y''''')), add(s(0), x'''))
IFLOW(true, s(s(y'''''''')), add(s(0), add(0, add(s(s(x''''''''')), x''''''')))) -> LOW(s(s(y'''''''')), add(0, add(s(s(x''''''''')), x''''''')))
IFLOW(true, s(0), add(s(0), add(0, add(s(s(x''''''''')), x''''''')))) -> LOW(s(0), add(0, add(s(s(x''''''''')), x''''''')))
IFLOW(true, s(y'''''), add(s(0), add(0, add(s(0), x''''''')))) -> LOW(s(y'''''), add(0, add(s(0), x''''''')))
IFLOW(true, s(y'''''), add(s(0), add(0, add(0, x''''''')))) -> LOW(s(y'''''), add(0, add(0, x''''''')))
IFLOW(true, s(s(y''''')), add(s(0), add(s(s(x''''')), x'''))) -> LOW(s(s(y''''')), add(s(s(x''''')), x'''))
IFLOW(true, s(0), add(0, add(s(s(x''''')), x'''))) -> LOW(s(0), add(s(s(x''''')), x'''))
LOW(s(0), add(0, add(s(s(x''''''')), x'''''))) -> IFLOW(true, s(0), add(0, add(s(s(x''''''')), x''''')))
IFLOW(true, s(y''''), add(0, add(s(0), x'''))) -> LOW(s(y''''), add(s(0), x'''))
LOW(s(y''''''), add(0, add(s(0), x'''''))) -> IFLOW(true, s(y''''''), add(0, add(s(0), x''''')))
IFLOW(false, 0, add(s(x''''), add(0, add(s(x''''''''), x'0'''')))) -> LOW(0, add(0, add(s(x''''''''), x'0'''')))
IFLOW(false, 0, add(s(x''''), add(0, add(0, x''''''')))) -> LOW(0, add(0, add(0, x''''''')))
IFLOW(false, 0, add(s(x''''), add(s(x''''), x'0))) -> LOW(0, add(s(x''''), x'0))
LOW(0, add(s(x''), x)) -> IFLOW(false, 0, add(s(x''), x))
IFLOW(true, 0, add(0, add(s(x''''), x'0))) -> LOW(0, add(s(x''''), x'0))
LOW(0, add(0, add(s(x''''''), x'0''))) -> IFLOW(true, 0, add(0, add(s(x''''''), x'0'')))
IFLOW(true, n''', add(0, add(0, x'''))) -> LOW(n''', add(0, x'''))
LOW(n'', add(0, add(0, x'''''))) -> IFLOW(true, n'', add(0, add(0, x''''')))
IFLOW(false, s(0), add(s(s(x''''')), x'')) -> LOW(s(0), x'')
LOW(s(0), add(s(s(x''')), x)) -> IFLOW(false, s(0), add(s(s(x''')), x))
IFLOW(true, s(0), add(s(0), add(s(s(x''''')), x'''))) -> LOW(s(0), add(s(s(x''''')), x'''))
IFLOW(true, s(y'''''), add(s(0), add(s(0), x'''))) -> LOW(s(y'''''), add(s(0), x'''))
LOW(s(y''), add(s(0), x)) -> IFLOW(true, s(y''), add(s(0), x))
IFLOW(false, s(s(y'''')), add(s(s(x''''')), x')) -> LOW(s(s(y'''')), x')
LOW(s(s(y'')), add(s(s(x''')), x)) -> IFLOW(le(x''', y''), s(s(y'')), add(s(s(x''')), x))
IFLOW(true, s(s(y'''')), add(0, add(s(s(x''''')), x'''))) -> LOW(s(s(y'''')), add(s(s(x''''')), x'''))
LOW(s(s(y'''''')), add(0, add(s(s(x''''''')), x'''''))) -> IFLOW(true, s(s(y'''''')), add(0, add(s(s(x''''''')), x''''')))
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(0, add(s(s(x''''''''')), x''''''')))) -> LOW(s(s(y''''')), add(0, add(s(s(x''''''''')), x''''''')))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
three new Dependency Pairs are created:
LOW(0, add(s(x''), x)) -> IFLOW(false, 0, add(s(x''), x))
LOW(0, add(s(x'''), add(s(x'''''''), x'0''))) -> IFLOW(false, 0, add(s(x'''), add(s(x'''''''), x'0'')))
LOW(0, add(s(x'''), add(0, add(0, x''''''''')))) -> IFLOW(false, 0, add(s(x'''), add(0, add(0, x'''''''''))))
LOW(0, add(s(x'''), add(0, add(s(x''''''''''), x'0'''''')))) -> IFLOW(false, 0, add(s(x'''), add(0, add(s(x''''''''''), x'0''''''))))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 12
↳Nar
...
→DP Problem 21
↳Forward Instantiation Transformation
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
IFLOW(true, s(s(y'''''''')), add(s(0), add(0, add(s(s(x''''''''')), x''''''')))) -> LOW(s(s(y'''''''')), add(0, add(s(s(x''''''''')), x''''''')))
IFLOW(true, s(0), add(s(0), add(0, add(s(s(x''''''''')), x''''''')))) -> LOW(s(0), add(0, add(s(s(x''''''''')), x''''''')))
IFLOW(true, s(y'''''), add(s(0), add(0, add(s(0), x''''''')))) -> LOW(s(y'''''), add(0, add(s(0), x''''''')))
IFLOW(true, s(y'''''), add(s(0), add(0, add(0, x''''''')))) -> LOW(s(y'''''), add(0, add(0, x''''''')))
IFLOW(true, s(s(y''''')), add(s(0), add(s(s(x''''')), x'''))) -> LOW(s(s(y''''')), add(s(s(x''''')), x'''))
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(0, add(s(s(x''''''''')), x''''''')))) -> LOW(s(s(y''''')), add(0, add(s(s(x''''''''')), x''''''')))
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(0, add(0, x''''''')))) -> LOW(s(s(y''''')), add(0, add(0, x''''''')))
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> LOW(s(s(y''''')), add(s(s(x''''')), x'''))
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(s(0), x'''))) -> LOW(s(s(y''''')), add(s(0), x'''))
IFLOW(false, s(s(y'''')), add(s(s(x''''')), x')) -> LOW(s(s(y'''')), x')
LOW(s(s(y'')), add(s(s(x''')), x)) -> IFLOW(le(x''', y''), s(s(y'')), add(s(s(x''')), x))
IFLOW(true, s(s(y'''')), add(0, add(s(s(x''''')), x'''))) -> LOW(s(s(y'''')), add(s(s(x''''')), x'''))
LOW(s(s(y'''''')), add(0, add(s(s(x''''''')), x'''''))) -> IFLOW(true, s(s(y'''''')), add(0, add(s(s(x''''''')), x''''')))
IFLOW(true, s(0), add(0, add(s(s(x''''')), x'''))) -> LOW(s(0), add(s(s(x''''')), x'''))
LOW(s(0), add(0, add(s(s(x''''''')), x'''''))) -> IFLOW(true, s(0), add(0, add(s(s(x''''''')), x''''')))
IFLOW(false, 0, add(s(x''''), add(0, add(s(x''''''''), x'0'''')))) -> LOW(0, add(0, add(s(x''''''''), x'0'''')))
LOW(0, add(s(x'''), add(0, add(s(x''''''''''), x'0'''''')))) -> IFLOW(false, 0, add(s(x'''), add(0, add(s(x''''''''''), x'0''''''))))
IFLOW(false, 0, add(s(x''''), add(0, add(0, x''''''')))) -> LOW(0, add(0, add(0, x''''''')))
LOW(0, add(s(x'''), add(0, add(0, x''''''''')))) -> IFLOW(false, 0, add(s(x'''), add(0, add(0, x'''''''''))))
IFLOW(false, 0, add(s(x''''), add(s(x''''), x'0))) -> LOW(0, add(s(x''''), x'0))
LOW(0, add(s(x'''), add(s(x'''''''), x'0''))) -> IFLOW(false, 0, add(s(x'''), add(s(x'''''''), x'0'')))
IFLOW(true, 0, add(0, add(s(x''''), x'0))) -> LOW(0, add(s(x''''), x'0))
LOW(0, add(0, add(s(x''''''), x'0''))) -> IFLOW(true, 0, add(0, add(s(x''''''), x'0'')))
IFLOW(true, n''', add(0, add(0, x'''))) -> LOW(n''', add(0, x'''))
LOW(n'', add(0, add(0, x'''''))) -> IFLOW(true, n'', add(0, add(0, x''''')))
IFLOW(false, s(0), add(s(s(x''''')), x'')) -> LOW(s(0), x'')
LOW(s(0), add(s(s(x''')), x)) -> IFLOW(false, s(0), add(s(s(x''')), x))
IFLOW(true, s(0), add(s(0), add(s(s(x''''')), x'''))) -> LOW(s(0), add(s(s(x''''')), x'''))
IFLOW(true, s(y'''''), add(s(0), add(s(0), x'''))) -> LOW(s(y'''''), add(s(0), x'''))
LOW(s(y''), add(s(0), x)) -> IFLOW(true, s(y''), add(s(0), x))
IFLOW(true, s(y''''), add(0, add(s(0), x'''))) -> LOW(s(y''''), add(s(0), x'''))
LOW(s(y''''''), add(0, add(s(0), x'''''))) -> IFLOW(true, s(y''''''), add(0, add(s(0), x''''')))
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(0, add(s(0), x''''''')))) -> LOW(s(s(y''''')), add(0, add(s(0), x''''''')))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
five new Dependency Pairs are created:
IFLOW(false, s(0), add(s(s(x''''')), x'')) -> LOW(s(0), x'')
IFLOW(false, s(0), add(s(s(x''''')), add(s(0), x'''))) -> LOW(s(0), add(s(0), x'''))
IFLOW(false, s(0), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> LOW(s(0), add(s(s(x''''')), x'''))
IFLOW(false, s(0), add(s(s(x''''')), add(0, add(0, x''''''')))) -> LOW(s(0), add(0, add(0, x''''''')))
IFLOW(false, s(0), add(s(s(x''''')), add(0, add(s(0), x''''''')))) -> LOW(s(0), add(0, add(s(0), x''''''')))
IFLOW(false, s(0), add(s(s(x''''')), add(0, add(s(s(x''''''''')), x''''''')))) -> LOW(s(0), add(0, add(s(s(x''''''''')), x''''''')))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 12
↳Nar
...
→DP Problem 22
↳Forward Instantiation Transformation
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(0, add(s(s(x''''''''')), x''''''')))) -> LOW(s(s(y''''')), add(0, add(s(s(x''''''''')), x''''''')))
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(0, add(s(0), x''''''')))) -> LOW(s(s(y''''')), add(0, add(s(0), x''''''')))
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(0, add(0, x''''''')))) -> LOW(s(s(y''''')), add(0, add(0, x''''''')))
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> LOW(s(s(y''''')), add(s(s(x''''')), x'''))
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(s(0), x'''))) -> LOW(s(s(y''''')), add(s(0), x'''))
IFLOW(true, s(0), add(s(0), add(0, add(s(s(x''''''''')), x''''''')))) -> LOW(s(0), add(0, add(s(s(x''''''''')), x''''''')))
IFLOW(true, s(y'''''), add(s(0), add(0, add(s(0), x''''''')))) -> LOW(s(y'''''), add(0, add(s(0), x''''''')))
IFLOW(true, s(y'''''), add(s(0), add(0, add(0, x''''''')))) -> LOW(s(y'''''), add(0, add(0, x''''''')))
IFLOW(true, s(s(y''''')), add(s(0), add(s(s(x''''')), x'''))) -> LOW(s(s(y''''')), add(s(s(x''''')), x'''))
IFLOW(false, s(0), add(s(s(x''''')), add(0, add(s(s(x''''''''')), x''''''')))) -> LOW(s(0), add(0, add(s(s(x''''''''')), x''''''')))
IFLOW(false, s(0), add(s(s(x''''')), add(0, add(s(0), x''''''')))) -> LOW(s(0), add(0, add(s(0), x''''''')))
IFLOW(true, s(0), add(0, add(s(s(x''''')), x'''))) -> LOW(s(0), add(s(s(x''''')), x'''))
LOW(s(0), add(0, add(s(s(x''''''')), x'''''))) -> IFLOW(true, s(0), add(0, add(s(s(x''''''')), x''''')))
IFLOW(true, s(y''''), add(0, add(s(0), x'''))) -> LOW(s(y''''), add(s(0), x'''))
LOW(s(y''''''), add(0, add(s(0), x'''''))) -> IFLOW(true, s(y''''''), add(0, add(s(0), x''''')))
IFLOW(false, 0, add(s(x''''), add(0, add(s(x''''''''), x'0'''')))) -> LOW(0, add(0, add(s(x''''''''), x'0'''')))
LOW(0, add(s(x'''), add(0, add(s(x''''''''''), x'0'''''')))) -> IFLOW(false, 0, add(s(x'''), add(0, add(s(x''''''''''), x'0''''''))))
IFLOW(false, 0, add(s(x''''), add(0, add(0, x''''''')))) -> LOW(0, add(0, add(0, x''''''')))
LOW(0, add(s(x'''), add(0, add(0, x''''''''')))) -> IFLOW(false, 0, add(s(x'''), add(0, add(0, x'''''''''))))
IFLOW(false, 0, add(s(x''''), add(s(x''''), x'0))) -> LOW(0, add(s(x''''), x'0))
LOW(0, add(s(x'''), add(s(x'''''''), x'0''))) -> IFLOW(false, 0, add(s(x'''), add(s(x'''''''), x'0'')))
IFLOW(true, 0, add(0, add(s(x''''), x'0))) -> LOW(0, add(s(x''''), x'0))
LOW(0, add(0, add(s(x''''''), x'0''))) -> IFLOW(true, 0, add(0, add(s(x''''''), x'0'')))
IFLOW(true, n''', add(0, add(0, x'''))) -> LOW(n''', add(0, x'''))
LOW(n'', add(0, add(0, x'''''))) -> IFLOW(true, n'', add(0, add(0, x''''')))
IFLOW(false, s(0), add(s(s(x''''')), add(0, add(0, x''''''')))) -> LOW(s(0), add(0, add(0, x''''''')))
IFLOW(false, s(0), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> LOW(s(0), add(s(s(x''''')), x'''))
IFLOW(false, s(0), add(s(s(x''''')), add(s(0), x'''))) -> LOW(s(0), add(s(0), x'''))
LOW(s(0), add(s(s(x''')), x)) -> IFLOW(false, s(0), add(s(s(x''')), x))
IFLOW(true, s(0), add(s(0), add(s(s(x''''')), x'''))) -> LOW(s(0), add(s(s(x''''')), x'''))
IFLOW(true, s(y'''''), add(s(0), add(s(0), x'''))) -> LOW(s(y'''''), add(s(0), x'''))
LOW(s(y''), add(s(0), x)) -> IFLOW(true, s(y''), add(s(0), x))
IFLOW(false, s(s(y'''')), add(s(s(x''''')), x')) -> LOW(s(s(y'''')), x')
LOW(s(s(y'')), add(s(s(x''')), x)) -> IFLOW(le(x''', y''), s(s(y'')), add(s(s(x''')), x))
IFLOW(true, s(s(y'''')), add(0, add(s(s(x''''')), x'''))) -> LOW(s(s(y'''')), add(s(s(x''''')), x'''))
LOW(s(s(y'''''')), add(0, add(s(s(x''''''')), x'''''))) -> IFLOW(true, s(s(y'''''')), add(0, add(s(s(x''''''')), x''''')))
IFLOW(true, s(s(y'''''''')), add(s(0), add(0, add(s(s(x''''''''')), x''''''')))) -> LOW(s(s(y'''''''')), add(0, add(s(s(x''''''''')), x''''''')))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
five new Dependency Pairs are created:
IFLOW(false, s(s(y'''')), add(s(s(x''''')), x')) -> LOW(s(s(y'''')), x')
IFLOW(false, s(s(y''''')), add(s(s(x''''')), add(s(0), x'''))) -> LOW(s(s(y''''')), add(s(0), x'''))
IFLOW(false, s(s(y''''')), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> LOW(s(s(y''''')), add(s(s(x''''')), x'''))
IFLOW(false, s(s(y''''')), add(s(s(x''''')), add(0, add(0, x''''''')))) -> LOW(s(s(y''''')), add(0, add(0, x''''''')))
IFLOW(false, s(s(y''''')), add(s(s(x''''')), add(0, add(s(0), x''''''')))) -> LOW(s(s(y''''')), add(0, add(s(0), x''''''')))
IFLOW(false, s(s(y''''')), add(s(s(x''''')), add(0, add(s(s(x''''''''')), x''''''')))) -> LOW(s(s(y''''')), add(0, add(s(s(x''''''''')), x''''''')))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 12
↳Nar
...
→DP Problem 23
↳Polynomial Ordering
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
IFLOW(false, s(s(y''''')), add(s(s(x''''')), add(0, add(s(s(x''''''''')), x''''''')))) -> LOW(s(s(y''''')), add(0, add(s(s(x''''''''')), x''''''')))
IFLOW(false, s(s(y''''')), add(s(s(x''''')), add(0, add(s(0), x''''''')))) -> LOW(s(s(y''''')), add(0, add(s(0), x''''''')))
IFLOW(false, s(s(y''''')), add(s(s(x''''')), add(0, add(0, x''''''')))) -> LOW(s(s(y''''')), add(0, add(0, x''''''')))
IFLOW(false, s(s(y''''')), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> LOW(s(s(y''''')), add(s(s(x''''')), x'''))
IFLOW(false, s(s(y''''')), add(s(s(x''''')), add(s(0), x'''))) -> LOW(s(s(y''''')), add(s(0), x'''))
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(0, add(s(0), x''''''')))) -> LOW(s(s(y''''')), add(0, add(s(0), x''''''')))
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(0, add(0, x''''''')))) -> LOW(s(s(y''''')), add(0, add(0, x''''''')))
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> LOW(s(s(y''''')), add(s(s(x''''')), x'''))
IFLOW(true, s(s(y'''''''')), add(s(0), add(0, add(s(s(x''''''''')), x''''''')))) -> LOW(s(s(y'''''''')), add(0, add(s(s(x''''''''')), x''''''')))
IFLOW(true, s(0), add(s(0), add(0, add(s(s(x''''''''')), x''''''')))) -> LOW(s(0), add(0, add(s(s(x''''''''')), x''''''')))
IFLOW(true, s(y'''''), add(s(0), add(0, add(s(0), x''''''')))) -> LOW(s(y'''''), add(0, add(s(0), x''''''')))
IFLOW(true, s(y'''''), add(s(0), add(0, add(0, x''''''')))) -> LOW(s(y'''''), add(0, add(0, x''''''')))
IFLOW(true, s(s(y''''')), add(s(0), add(s(s(x''''')), x'''))) -> LOW(s(s(y''''')), add(s(s(x''''')), x'''))
IFLOW(false, s(0), add(s(s(x''''')), add(0, add(s(s(x''''''''')), x''''''')))) -> LOW(s(0), add(0, add(s(s(x''''''''')), x''''''')))
IFLOW(false, s(0), add(s(s(x''''')), add(0, add(s(0), x''''''')))) -> LOW(s(0), add(0, add(s(0), x''''''')))
IFLOW(true, s(0), add(0, add(s(s(x''''')), x'''))) -> LOW(s(0), add(s(s(x''''')), x'''))
LOW(s(0), add(0, add(s(s(x''''''')), x'''''))) -> IFLOW(true, s(0), add(0, add(s(s(x''''''')), x''''')))
IFLOW(true, s(y''''), add(0, add(s(0), x'''))) -> LOW(s(y''''), add(s(0), x'''))
LOW(s(y''''''), add(0, add(s(0), x'''''))) -> IFLOW(true, s(y''''''), add(0, add(s(0), x''''')))
IFLOW(false, 0, add(s(x''''), add(0, add(s(x''''''''), x'0'''')))) -> LOW(0, add(0, add(s(x''''''''), x'0'''')))
LOW(0, add(s(x'''), add(0, add(s(x''''''''''), x'0'''''')))) -> IFLOW(false, 0, add(s(x'''), add(0, add(s(x''''''''''), x'0''''''))))
IFLOW(false, 0, add(s(x''''), add(0, add(0, x''''''')))) -> LOW(0, add(0, add(0, x''''''')))
LOW(0, add(s(x'''), add(0, add(0, x''''''''')))) -> IFLOW(false, 0, add(s(x'''), add(0, add(0, x'''''''''))))
IFLOW(false, 0, add(s(x''''), add(s(x''''), x'0))) -> LOW(0, add(s(x''''), x'0))
LOW(0, add(s(x'''), add(s(x'''''''), x'0''))) -> IFLOW(false, 0, add(s(x'''), add(s(x'''''''), x'0'')))
IFLOW(true, 0, add(0, add(s(x''''), x'0))) -> LOW(0, add(s(x''''), x'0))
LOW(0, add(0, add(s(x''''''), x'0''))) -> IFLOW(true, 0, add(0, add(s(x''''''), x'0'')))
IFLOW(true, n''', add(0, add(0, x'''))) -> LOW(n''', add(0, x'''))
LOW(n'', add(0, add(0, x'''''))) -> IFLOW(true, n'', add(0, add(0, x''''')))
IFLOW(false, s(0), add(s(s(x''''')), add(0, add(0, x''''''')))) -> LOW(s(0), add(0, add(0, x''''''')))
IFLOW(false, s(0), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> LOW(s(0), add(s(s(x''''')), x'''))
IFLOW(false, s(0), add(s(s(x''''')), add(s(0), x'''))) -> LOW(s(0), add(s(0), x'''))
LOW(s(0), add(s(s(x''')), x)) -> IFLOW(false, s(0), add(s(s(x''')), x))
IFLOW(true, s(0), add(s(0), add(s(s(x''''')), x'''))) -> LOW(s(0), add(s(s(x''''')), x'''))
IFLOW(true, s(y'''''), add(s(0), add(s(0), x'''))) -> LOW(s(y'''''), add(s(0), x'''))
LOW(s(y''), add(s(0), x)) -> IFLOW(true, s(y''), add(s(0), x))
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(s(0), x'''))) -> LOW(s(s(y''''')), add(s(0), x'''))
LOW(s(s(y'')), add(s(s(x''')), x)) -> IFLOW(le(x''', y''), s(s(y'')), add(s(s(x''')), x))
IFLOW(true, s(s(y'''')), add(0, add(s(s(x''''')), x'''))) -> LOW(s(s(y'''')), add(s(s(x''''')), x'''))
LOW(s(s(y'''''')), add(0, add(s(s(x''''''')), x'''''))) -> IFLOW(true, s(s(y'''''')), add(0, add(s(s(x''''''')), x''''')))
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(0, add(s(s(x''''''''')), x''''''')))) -> LOW(s(s(y''''')), add(0, add(s(s(x''''''''')), x''''''')))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
IFLOW(true, s(0), add(0, add(s(s(x''''')), x'''))) -> LOW(s(0), add(s(s(x''''')), x'''))
IFLOW(true, s(y''''), add(0, add(s(0), x'''))) -> LOW(s(y''''), add(s(0), x'''))
IFLOW(true, 0, add(0, add(s(x''''), x'0))) -> LOW(0, add(s(x''''), x'0))
IFLOW(true, n''', add(0, add(0, x'''))) -> LOW(n''', add(0, x'''))
IFLOW(true, s(s(y'''')), add(0, add(s(s(x''''')), x'''))) -> LOW(s(s(y'''')), add(s(s(x''''')), x'''))
POL(0) = 1 POL(LOW(x1, x2)) = x2 POL(false) = 0 POL(IF_LOW(x1, x2, x3)) = x3 POL(true) = 0 POL(s(x1)) = 0 POL(le(x1, x2)) = 0 POL(add(x1, x2)) = x1 + x2
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 12
↳Nar
...
→DP Problem 24
↳Dependency Graph
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
IFLOW(false, s(s(y''''')), add(s(s(x''''')), add(0, add(s(s(x''''''''')), x''''''')))) -> LOW(s(s(y''''')), add(0, add(s(s(x''''''''')), x''''''')))
IFLOW(false, s(s(y''''')), add(s(s(x''''')), add(0, add(s(0), x''''''')))) -> LOW(s(s(y''''')), add(0, add(s(0), x''''''')))
IFLOW(false, s(s(y''''')), add(s(s(x''''')), add(0, add(0, x''''''')))) -> LOW(s(s(y''''')), add(0, add(0, x''''''')))
IFLOW(false, s(s(y''''')), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> LOW(s(s(y''''')), add(s(s(x''''')), x'''))
IFLOW(false, s(s(y''''')), add(s(s(x''''')), add(s(0), x'''))) -> LOW(s(s(y''''')), add(s(0), x'''))
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(0, add(s(0), x''''''')))) -> LOW(s(s(y''''')), add(0, add(s(0), x''''''')))
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(0, add(0, x''''''')))) -> LOW(s(s(y''''')), add(0, add(0, x''''''')))
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> LOW(s(s(y''''')), add(s(s(x''''')), x'''))
IFLOW(true, s(s(y'''''''')), add(s(0), add(0, add(s(s(x''''''''')), x''''''')))) -> LOW(s(s(y'''''''')), add(0, add(s(s(x''''''''')), x''''''')))
IFLOW(true, s(0), add(s(0), add(0, add(s(s(x''''''''')), x''''''')))) -> LOW(s(0), add(0, add(s(s(x''''''''')), x''''''')))
IFLOW(true, s(y'''''), add(s(0), add(0, add(s(0), x''''''')))) -> LOW(s(y'''''), add(0, add(s(0), x''''''')))
IFLOW(true, s(y'''''), add(s(0), add(0, add(0, x''''''')))) -> LOW(s(y'''''), add(0, add(0, x''''''')))
IFLOW(true, s(s(y''''')), add(s(0), add(s(s(x''''')), x'''))) -> LOW(s(s(y''''')), add(s(s(x''''')), x'''))
IFLOW(false, s(0), add(s(s(x''''')), add(0, add(s(s(x''''''''')), x''''''')))) -> LOW(s(0), add(0, add(s(s(x''''''''')), x''''''')))
IFLOW(false, s(0), add(s(s(x''''')), add(0, add(s(0), x''''''')))) -> LOW(s(0), add(0, add(s(0), x''''''')))
LOW(s(0), add(0, add(s(s(x''''''')), x'''''))) -> IFLOW(true, s(0), add(0, add(s(s(x''''''')), x''''')))
LOW(s(y''''''), add(0, add(s(0), x'''''))) -> IFLOW(true, s(y''''''), add(0, add(s(0), x''''')))
IFLOW(false, 0, add(s(x''''), add(0, add(s(x''''''''), x'0'''')))) -> LOW(0, add(0, add(s(x''''''''), x'0'''')))
LOW(0, add(s(x'''), add(0, add(s(x''''''''''), x'0'''''')))) -> IFLOW(false, 0, add(s(x'''), add(0, add(s(x''''''''''), x'0''''''))))
IFLOW(false, 0, add(s(x''''), add(0, add(0, x''''''')))) -> LOW(0, add(0, add(0, x''''''')))
LOW(0, add(s(x'''), add(0, add(0, x''''''''')))) -> IFLOW(false, 0, add(s(x'''), add(0, add(0, x'''''''''))))
IFLOW(false, 0, add(s(x''''), add(s(x''''), x'0))) -> LOW(0, add(s(x''''), x'0))
LOW(0, add(s(x'''), add(s(x'''''''), x'0''))) -> IFLOW(false, 0, add(s(x'''), add(s(x'''''''), x'0'')))
LOW(0, add(0, add(s(x''''''), x'0''))) -> IFLOW(true, 0, add(0, add(s(x''''''), x'0'')))
LOW(n'', add(0, add(0, x'''''))) -> IFLOW(true, n'', add(0, add(0, x''''')))
IFLOW(false, s(0), add(s(s(x''''')), add(0, add(0, x''''''')))) -> LOW(s(0), add(0, add(0, x''''''')))
IFLOW(false, s(0), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> LOW(s(0), add(s(s(x''''')), x'''))
IFLOW(false, s(0), add(s(s(x''''')), add(s(0), x'''))) -> LOW(s(0), add(s(0), x'''))
LOW(s(0), add(s(s(x''')), x)) -> IFLOW(false, s(0), add(s(s(x''')), x))
IFLOW(true, s(0), add(s(0), add(s(s(x''''')), x'''))) -> LOW(s(0), add(s(s(x''''')), x'''))
IFLOW(true, s(y'''''), add(s(0), add(s(0), x'''))) -> LOW(s(y'''''), add(s(0), x'''))
LOW(s(y''), add(s(0), x)) -> IFLOW(true, s(y''), add(s(0), x))
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(s(0), x'''))) -> LOW(s(s(y''''')), add(s(0), x'''))
LOW(s(s(y'')), add(s(s(x''')), x)) -> IFLOW(le(x''', y''), s(s(y'')), add(s(s(x''')), x))
LOW(s(s(y'''''')), add(0, add(s(s(x''''''')), x'''''))) -> IFLOW(true, s(s(y'''''')), add(0, add(s(s(x''''''')), x''''')))
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(0, add(s(s(x''''''''')), x''''''')))) -> LOW(s(s(y''''')), add(0, add(s(s(x''''''''')), x''''''')))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 12
↳Nar
...
→DP Problem 25
↳Polynomial Ordering
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
IFLOW(false, s(s(y''''')), add(s(s(x''''')), add(s(0), x'''))) -> LOW(s(s(y''''')), add(s(0), x'''))
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> LOW(s(s(y''''')), add(s(s(x''''')), x'''))
IFLOW(true, s(s(y''''')), add(s(0), add(s(s(x''''')), x'''))) -> LOW(s(s(y''''')), add(s(s(x''''')), x'''))
IFLOW(false, s(0), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> LOW(s(0), add(s(s(x''''')), x'''))
IFLOW(false, s(0), add(s(s(x''''')), add(s(0), x'''))) -> LOW(s(0), add(s(0), x'''))
LOW(s(0), add(s(s(x''')), x)) -> IFLOW(false, s(0), add(s(s(x''')), x))
IFLOW(true, s(0), add(s(0), add(s(s(x''''')), x'''))) -> LOW(s(0), add(s(s(x''''')), x'''))
IFLOW(true, s(y'''''), add(s(0), add(s(0), x'''))) -> LOW(s(y'''''), add(s(0), x'''))
LOW(s(y''), add(s(0), x)) -> IFLOW(true, s(y''), add(s(0), x))
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(s(0), x'''))) -> LOW(s(s(y''''')), add(s(0), x'''))
LOW(s(s(y'')), add(s(s(x''')), x)) -> IFLOW(le(x''', y''), s(s(y'')), add(s(s(x''')), x))
IFLOW(false, s(s(y''''')), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> LOW(s(s(y''''')), add(s(s(x''''')), x'''))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
IFLOW(true, s(s(y''''')), add(s(0), add(s(s(x''''')), x'''))) -> LOW(s(s(y''''')), add(s(s(x''''')), x'''))
IFLOW(true, s(0), add(s(0), add(s(s(x''''')), x'''))) -> LOW(s(0), add(s(s(x''''')), x'''))
IFLOW(true, s(y'''''), add(s(0), add(s(0), x'''))) -> LOW(s(y'''''), add(s(0), x'''))
POL(0) = 1 POL(LOW(x1, x2)) = x2 POL(false) = 0 POL(IF_LOW(x1, x2, x3)) = x3 POL(true) = 0 POL(s(x1)) = x1 POL(le(x1, x2)) = 0 POL(add(x1, x2)) = x1 + x2
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 12
↳Nar
...
→DP Problem 27
↳Dependency Graph
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
IFLOW(false, s(s(y''''')), add(s(s(x''''')), add(s(0), x'''))) -> LOW(s(s(y''''')), add(s(0), x'''))
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> LOW(s(s(y''''')), add(s(s(x''''')), x'''))
IFLOW(false, s(0), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> LOW(s(0), add(s(s(x''''')), x'''))
IFLOW(false, s(0), add(s(s(x''''')), add(s(0), x'''))) -> LOW(s(0), add(s(0), x'''))
LOW(s(0), add(s(s(x''')), x)) -> IFLOW(false, s(0), add(s(s(x''')), x))
LOW(s(y''), add(s(0), x)) -> IFLOW(true, s(y''), add(s(0), x))
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(s(0), x'''))) -> LOW(s(s(y''''')), add(s(0), x'''))
LOW(s(s(y'')), add(s(s(x''')), x)) -> IFLOW(le(x''', y''), s(s(y'')), add(s(s(x''')), x))
IFLOW(false, s(s(y''''')), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> LOW(s(s(y''''')), add(s(s(x''''')), x'''))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 12
↳Nar
...
→DP Problem 29
↳Polynomial Ordering
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
IFLOW(false, s(s(y''''')), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> LOW(s(s(y''''')), add(s(s(x''''')), x'''))
LOW(s(s(y'')), add(s(s(x''')), x)) -> IFLOW(le(x''', y''), s(s(y'')), add(s(s(x''')), x))
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> LOW(s(s(y''''')), add(s(s(x''''')), x'''))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
IFLOW(false, s(s(y''''')), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> LOW(s(s(y''''')), add(s(s(x''''')), x'''))
IFLOW(true, s(s(y''''')), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> LOW(s(s(y''''')), add(s(s(x''''')), x'''))
POL(0) = 0 POL(LOW(x1, x2)) = x2 POL(false) = 0 POL(IF_LOW(x1, x2, x3)) = x3 POL(true) = 0 POL(s(x1)) = 0 POL(le(x1, x2)) = 0 POL(add(x1, x2)) = 1 + x2
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 12
↳Nar
...
→DP Problem 31
↳Dependency Graph
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
LOW(s(s(y'')), add(s(s(x''')), x)) -> IFLOW(le(x''', y''), s(s(y'')), add(s(s(x''')), x))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 12
↳Nar
...
→DP Problem 30
↳Polynomial Ordering
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
LOW(s(0), add(s(s(x''')), x)) -> IFLOW(false, s(0), add(s(s(x''')), x))
IFLOW(false, s(0), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> LOW(s(0), add(s(s(x''''')), x'''))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
IFLOW(false, s(0), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> LOW(s(0), add(s(s(x''''')), x'''))
POL(0) = 0 POL(LOW(x1, x2)) = x2 POL(false) = 0 POL(IF_LOW(x1, x2, x3)) = x3 POL(s(x1)) = 1 POL(add(x1, x2)) = x1 + x2
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 12
↳Nar
...
→DP Problem 32
↳Dependency Graph
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
LOW(s(0), add(s(s(x''')), x)) -> IFLOW(false, s(0), add(s(s(x''')), x))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 12
↳Nar
...
→DP Problem 26
↳Polynomial Ordering
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
LOW(0, add(s(x'''), add(s(x'''''''), x'0''))) -> IFLOW(false, 0, add(s(x'''), add(s(x'''''''), x'0'')))
IFLOW(false, 0, add(s(x''''), add(s(x''''), x'0))) -> LOW(0, add(s(x''''), x'0))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
IFLOW(false, 0, add(s(x''''), add(s(x''''), x'0))) -> LOW(0, add(s(x''''), x'0))
POL(0) = 0 POL(LOW(x1, x2)) = x2 POL(false) = 0 POL(IF_LOW(x1, x2, x3)) = x3 POL(s(x1)) = 1 POL(add(x1, x2)) = x1 + x2
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 12
↳Nar
...
→DP Problem 28
↳Dependency Graph
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
LOW(0, add(s(x'''), add(s(x'''''''), x'0''))) -> IFLOW(false, 0, add(s(x'''), add(s(x'''''''), x'0'')))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Narrowing Transformation
→DP Problem 5
↳Nar
IFHIGH(false, n, add(m, x)) -> HIGH(n, x)
IFHIGH(true, n, add(m, x)) -> HIGH(n, x)
HIGH(n, add(m, x)) -> IFHIGH(le(m, n), n, add(m, x))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
three new Dependency Pairs are created:
HIGH(n, add(m, x)) -> IFHIGH(le(m, n), n, add(m, x))
HIGH(n', add(0, x)) -> IFHIGH(true, n', add(0, x))
HIGH(0, add(s(x''), x)) -> IFHIGH(false, 0, add(s(x''), x))
HIGH(s(y'), add(s(x''), x)) -> IFHIGH(le(x'', y'), s(y'), add(s(x''), x))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 33
↳Narrowing Transformation
→DP Problem 5
↳Nar
HIGH(s(y'), add(s(x''), x)) -> IFHIGH(le(x'', y'), s(y'), add(s(x''), x))
HIGH(0, add(s(x''), x)) -> IFHIGH(false, 0, add(s(x''), x))
IFHIGH(true, n, add(m, x)) -> HIGH(n, x)
HIGH(n', add(0, x)) -> IFHIGH(true, n', add(0, x))
IFHIGH(false, n, add(m, x)) -> HIGH(n, x)
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
three new Dependency Pairs are created:
HIGH(s(y'), add(s(x''), x)) -> IFHIGH(le(x'', y'), s(y'), add(s(x''), x))
HIGH(s(y''), add(s(0), x)) -> IFHIGH(true, s(y''), add(s(0), x))
HIGH(s(0), add(s(s(x''')), x)) -> IFHIGH(false, s(0), add(s(s(x''')), x))
HIGH(s(s(y'')), add(s(s(x''')), x)) -> IFHIGH(le(x''', y''), s(s(y'')), add(s(s(x''')), x))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 33
↳Nar
...
→DP Problem 34
↳Instantiation Transformation
→DP Problem 5
↳Nar
HIGH(s(s(y'')), add(s(s(x''')), x)) -> IFHIGH(le(x''', y''), s(s(y'')), add(s(s(x''')), x))
HIGH(s(0), add(s(s(x''')), x)) -> IFHIGH(false, s(0), add(s(s(x''')), x))
HIGH(s(y''), add(s(0), x)) -> IFHIGH(true, s(y''), add(s(0), x))
IFHIGH(true, n, add(m, x)) -> HIGH(n, x)
HIGH(n', add(0, x)) -> IFHIGH(true, n', add(0, x))
IFHIGH(false, n, add(m, x)) -> HIGH(n, x)
HIGH(0, add(s(x''), x)) -> IFHIGH(false, 0, add(s(x''), x))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
three new Dependency Pairs are created:
IFHIGH(true, n, add(m, x)) -> HIGH(n, x)
IFHIGH(true, n', add(0, x'')) -> HIGH(n', x'')
IFHIGH(true, s(y''''), add(s(0), x'')) -> HIGH(s(y''''), x'')
IFHIGH(true, s(s(y'''')), add(s(s(x''''')), x')) -> HIGH(s(s(y'''')), x')
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 33
↳Nar
...
→DP Problem 35
↳Instantiation Transformation
→DP Problem 5
↳Nar
IFHIGH(true, s(s(y'''')), add(s(s(x''''')), x')) -> HIGH(s(s(y'''')), x')
HIGH(s(0), add(s(s(x''')), x)) -> IFHIGH(false, s(0), add(s(s(x''')), x))
IFHIGH(true, s(y''''), add(s(0), x'')) -> HIGH(s(y''''), x'')
HIGH(s(y''), add(s(0), x)) -> IFHIGH(true, s(y''), add(s(0), x))
HIGH(0, add(s(x''), x)) -> IFHIGH(false, 0, add(s(x''), x))
IFHIGH(true, n', add(0, x'')) -> HIGH(n', x'')
HIGH(n', add(0, x)) -> IFHIGH(true, n', add(0, x))
IFHIGH(false, n, add(m, x)) -> HIGH(n, x)
HIGH(s(s(y'')), add(s(s(x''')), x)) -> IFHIGH(le(x''', y''), s(s(y'')), add(s(s(x''')), x))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
three new Dependency Pairs are created:
IFHIGH(false, n, add(m, x)) -> HIGH(n, x)
IFHIGH(false, 0, add(s(x''''), x'')) -> HIGH(0, x'')
IFHIGH(false, s(0), add(s(s(x''''')), x'')) -> HIGH(s(0), x'')
IFHIGH(false, s(s(y'''')), add(s(s(x''''')), x')) -> HIGH(s(s(y'''')), x')
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 33
↳Nar
...
→DP Problem 36
↳Forward Instantiation Transformation
→DP Problem 5
↳Nar
IFHIGH(false, s(s(y'''')), add(s(s(x''''')), x')) -> HIGH(s(s(y'''')), x')
HIGH(s(s(y'')), add(s(s(x''')), x)) -> IFHIGH(le(x''', y''), s(s(y'')), add(s(s(x''')), x))
IFHIGH(false, s(0), add(s(s(x''''')), x'')) -> HIGH(s(0), x'')
HIGH(s(0), add(s(s(x''')), x)) -> IFHIGH(false, s(0), add(s(s(x''')), x))
IFHIGH(true, s(y''''), add(s(0), x'')) -> HIGH(s(y''''), x'')
HIGH(s(y''), add(s(0), x)) -> IFHIGH(true, s(y''), add(s(0), x))
IFHIGH(false, 0, add(s(x''''), x'')) -> HIGH(0, x'')
HIGH(0, add(s(x''), x)) -> IFHIGH(false, 0, add(s(x''), x))
IFHIGH(true, n', add(0, x'')) -> HIGH(n', x'')
HIGH(n', add(0, x)) -> IFHIGH(true, n', add(0, x))
IFHIGH(true, s(s(y'''')), add(s(s(x''''')), x')) -> HIGH(s(s(y'''')), x')
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
five new Dependency Pairs are created:
IFHIGH(true, n', add(0, x'')) -> HIGH(n', x'')
IFHIGH(true, n''', add(0, add(0, x'''))) -> HIGH(n''', add(0, x'''))
IFHIGH(true, 0, add(0, add(s(x''''), x'0))) -> HIGH(0, add(s(x''''), x'0))
IFHIGH(true, s(y''''), add(0, add(s(0), x'''))) -> HIGH(s(y''''), add(s(0), x'''))
IFHIGH(true, s(0), add(0, add(s(s(x''''')), x'''))) -> HIGH(s(0), add(s(s(x''''')), x'''))
IFHIGH(true, s(s(y'''')), add(0, add(s(s(x''''')), x'''))) -> HIGH(s(s(y'''')), add(s(s(x''''')), x'''))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 33
↳Nar
...
→DP Problem 37
↳Forward Instantiation Transformation
→DP Problem 5
↳Nar
IFHIGH(true, s(s(y'''')), add(0, add(s(s(x''''')), x'''))) -> HIGH(s(s(y'''')), add(s(s(x''''')), x'''))
IFHIGH(true, s(0), add(0, add(s(s(x''''')), x'''))) -> HIGH(s(0), add(s(s(x''''')), x'''))
IFHIGH(true, s(s(y'''')), add(s(s(x''''')), x')) -> HIGH(s(s(y'''')), x')
HIGH(s(s(y'')), add(s(s(x''')), x)) -> IFHIGH(le(x''', y''), s(s(y'')), add(s(s(x''')), x))
IFHIGH(false, s(0), add(s(s(x''''')), x'')) -> HIGH(s(0), x'')
HIGH(s(0), add(s(s(x''')), x)) -> IFHIGH(false, s(0), add(s(s(x''')), x))
IFHIGH(true, s(y''''), add(s(0), x'')) -> HIGH(s(y''''), x'')
HIGH(s(y''), add(s(0), x)) -> IFHIGH(true, s(y''), add(s(0), x))
IFHIGH(true, s(y''''), add(0, add(s(0), x'''))) -> HIGH(s(y''''), add(s(0), x'''))
IFHIGH(false, 0, add(s(x''''), x'')) -> HIGH(0, x'')
HIGH(0, add(s(x''), x)) -> IFHIGH(false, 0, add(s(x''), x))
IFHIGH(true, 0, add(0, add(s(x''''), x'0))) -> HIGH(0, add(s(x''''), x'0))
IFHIGH(true, n''', add(0, add(0, x'''))) -> HIGH(n''', add(0, x'''))
HIGH(n', add(0, x)) -> IFHIGH(true, n', add(0, x))
IFHIGH(false, s(s(y'''')), add(s(s(x''''')), x')) -> HIGH(s(s(y'''')), x')
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
five new Dependency Pairs are created:
HIGH(n', add(0, x)) -> IFHIGH(true, n', add(0, x))
HIGH(n'', add(0, add(0, x'''''))) -> IFHIGH(true, n'', add(0, add(0, x''''')))
HIGH(0, add(0, add(s(x''''''), x'0''))) -> IFHIGH(true, 0, add(0, add(s(x''''''), x'0'')))
HIGH(s(y''''''), add(0, add(s(0), x'''''))) -> IFHIGH(true, s(y''''''), add(0, add(s(0), x''''')))
HIGH(s(0), add(0, add(s(s(x''''''')), x'''''))) -> IFHIGH(true, s(0), add(0, add(s(s(x''''''')), x''''')))
HIGH(s(s(y'''''')), add(0, add(s(s(x''''''')), x'''''))) -> IFHIGH(true, s(s(y'''''')), add(0, add(s(s(x''''''')), x''''')))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 33
↳Nar
...
→DP Problem 38
↳Forward Instantiation Transformation
→DP Problem 5
↳Nar
IFHIGH(false, s(s(y'''')), add(s(s(x''''')), x')) -> HIGH(s(s(y'''')), x')
HIGH(s(s(y'''''')), add(0, add(s(s(x''''''')), x'''''))) -> IFHIGH(true, s(s(y'''''')), add(0, add(s(s(x''''''')), x''''')))
IFHIGH(true, s(0), add(0, add(s(s(x''''')), x'''))) -> HIGH(s(0), add(s(s(x''''')), x'''))
HIGH(s(0), add(0, add(s(s(x''''''')), x'''''))) -> IFHIGH(true, s(0), add(0, add(s(s(x''''''')), x''''')))
IFHIGH(true, s(y''''), add(0, add(s(0), x'''))) -> HIGH(s(y''''), add(s(0), x'''))
HIGH(s(y''''''), add(0, add(s(0), x'''''))) -> IFHIGH(true, s(y''''''), add(0, add(s(0), x''''')))
IFHIGH(false, 0, add(s(x''''), x'')) -> HIGH(0, x'')
HIGH(0, add(s(x''), x)) -> IFHIGH(false, 0, add(s(x''), x))
IFHIGH(true, 0, add(0, add(s(x''''), x'0))) -> HIGH(0, add(s(x''''), x'0))
HIGH(0, add(0, add(s(x''''''), x'0''))) -> IFHIGH(true, 0, add(0, add(s(x''''''), x'0'')))
IFHIGH(true, n''', add(0, add(0, x'''))) -> HIGH(n''', add(0, x'''))
HIGH(n'', add(0, add(0, x'''''))) -> IFHIGH(true, n'', add(0, add(0, x''''')))
IFHIGH(false, s(0), add(s(s(x''''')), x'')) -> HIGH(s(0), x'')
HIGH(s(0), add(s(s(x''')), x)) -> IFHIGH(false, s(0), add(s(s(x''')), x))
IFHIGH(true, s(y''''), add(s(0), x'')) -> HIGH(s(y''''), x'')
HIGH(s(y''), add(s(0), x)) -> IFHIGH(true, s(y''), add(s(0), x))
IFHIGH(true, s(s(y'''')), add(s(s(x''''')), x')) -> HIGH(s(s(y'''')), x')
HIGH(s(s(y'')), add(s(s(x''')), x)) -> IFHIGH(le(x''', y''), s(s(y'')), add(s(s(x''')), x))
IFHIGH(true, s(s(y'''')), add(0, add(s(s(x''''')), x'''))) -> HIGH(s(s(y'''')), add(s(s(x''''')), x'''))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
seven new Dependency Pairs are created:
IFHIGH(true, s(y''''), add(s(0), x'')) -> HIGH(s(y''''), x'')
IFHIGH(true, s(y'''''), add(s(0), add(s(0), x'''))) -> HIGH(s(y'''''), add(s(0), x'''))
IFHIGH(true, s(0), add(s(0), add(s(s(x''''')), x'''))) -> HIGH(s(0), add(s(s(x''''')), x'''))
IFHIGH(true, s(s(y''''')), add(s(0), add(s(s(x''''')), x'''))) -> HIGH(s(s(y''''')), add(s(s(x''''')), x'''))
IFHIGH(true, s(y'''''), add(s(0), add(0, add(0, x''''''')))) -> HIGH(s(y'''''), add(0, add(0, x''''''')))
IFHIGH(true, s(y'''''), add(s(0), add(0, add(s(0), x''''''')))) -> HIGH(s(y'''''), add(0, add(s(0), x''''''')))
IFHIGH(true, s(0), add(s(0), add(0, add(s(s(x''''''''')), x''''''')))) -> HIGH(s(0), add(0, add(s(s(x''''''''')), x''''''')))
IFHIGH(true, s(s(y'''''''')), add(s(0), add(0, add(s(s(x''''''''')), x''''''')))) -> HIGH(s(s(y'''''''')), add(0, add(s(s(x''''''''')), x''''''')))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 33
↳Nar
...
→DP Problem 39
↳Forward Instantiation Transformation
→DP Problem 5
↳Nar
IFHIGH(true, s(s(y'''''''')), add(s(0), add(0, add(s(s(x''''''''')), x''''''')))) -> HIGH(s(s(y'''''''')), add(0, add(s(s(x''''''''')), x''''''')))
IFHIGH(true, s(0), add(s(0), add(0, add(s(s(x''''''''')), x''''''')))) -> HIGH(s(0), add(0, add(s(s(x''''''''')), x''''''')))
IFHIGH(true, s(y'''''), add(s(0), add(0, add(s(0), x''''''')))) -> HIGH(s(y'''''), add(0, add(s(0), x''''''')))
IFHIGH(true, s(y'''''), add(s(0), add(0, add(0, x''''''')))) -> HIGH(s(y'''''), add(0, add(0, x''''''')))
IFHIGH(true, s(s(y''''')), add(s(0), add(s(s(x''''')), x'''))) -> HIGH(s(s(y''''')), add(s(s(x''''')), x'''))
IFHIGH(true, s(s(y'''')), add(s(s(x''''')), x')) -> HIGH(s(s(y'''')), x')
HIGH(s(s(y'')), add(s(s(x''')), x)) -> IFHIGH(le(x''', y''), s(s(y'')), add(s(s(x''')), x))
IFHIGH(true, s(s(y'''')), add(0, add(s(s(x''''')), x'''))) -> HIGH(s(s(y'''')), add(s(s(x''''')), x'''))
HIGH(s(s(y'''''')), add(0, add(s(s(x''''''')), x'''''))) -> IFHIGH(true, s(s(y'''''')), add(0, add(s(s(x''''''')), x''''')))
IFHIGH(true, s(0), add(0, add(s(s(x''''')), x'''))) -> HIGH(s(0), add(s(s(x''''')), x'''))
HIGH(s(0), add(0, add(s(s(x''''''')), x'''''))) -> IFHIGH(true, s(0), add(0, add(s(s(x''''''')), x''''')))
IFHIGH(true, s(y''''), add(0, add(s(0), x'''))) -> HIGH(s(y''''), add(s(0), x'''))
HIGH(s(y''''''), add(0, add(s(0), x'''''))) -> IFHIGH(true, s(y''''''), add(0, add(s(0), x''''')))
IFHIGH(false, 0, add(s(x''''), x'')) -> HIGH(0, x'')
HIGH(0, add(s(x''), x)) -> IFHIGH(false, 0, add(s(x''), x))
IFHIGH(true, 0, add(0, add(s(x''''), x'0))) -> HIGH(0, add(s(x''''), x'0))
HIGH(0, add(0, add(s(x''''''), x'0''))) -> IFHIGH(true, 0, add(0, add(s(x''''''), x'0'')))
IFHIGH(true, n''', add(0, add(0, x'''))) -> HIGH(n''', add(0, x'''))
HIGH(n'', add(0, add(0, x'''''))) -> IFHIGH(true, n'', add(0, add(0, x''''')))
IFHIGH(false, s(0), add(s(s(x''''')), x'')) -> HIGH(s(0), x'')
HIGH(s(0), add(s(s(x''')), x)) -> IFHIGH(false, s(0), add(s(s(x''')), x))
IFHIGH(true, s(0), add(s(0), add(s(s(x''''')), x'''))) -> HIGH(s(0), add(s(s(x''''')), x'''))
IFHIGH(true, s(y'''''), add(s(0), add(s(0), x'''))) -> HIGH(s(y'''''), add(s(0), x'''))
HIGH(s(y''), add(s(0), x)) -> IFHIGH(true, s(y''), add(s(0), x))
IFHIGH(false, s(s(y'''')), add(s(s(x''''')), x')) -> HIGH(s(s(y'''')), x')
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
five new Dependency Pairs are created:
IFHIGH(true, s(s(y'''')), add(s(s(x''''')), x')) -> HIGH(s(s(y'''')), x')
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(s(0), x'''))) -> HIGH(s(s(y''''')), add(s(0), x'''))
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> HIGH(s(s(y''''')), add(s(s(x''''')), x'''))
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(0, add(0, x''''''')))) -> HIGH(s(s(y''''')), add(0, add(0, x''''''')))
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(0, add(s(0), x''''''')))) -> HIGH(s(s(y''''')), add(0, add(s(0), x''''''')))
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(0, add(s(s(x''''''''')), x''''''')))) -> HIGH(s(s(y''''')), add(0, add(s(s(x''''''''')), x''''''')))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 33
↳Nar
...
→DP Problem 40
↳Forward Instantiation Transformation
→DP Problem 5
↳Nar
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(0, add(s(s(x''''''''')), x''''''')))) -> HIGH(s(s(y''''')), add(0, add(s(s(x''''''''')), x''''''')))
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(0, add(s(0), x''''''')))) -> HIGH(s(s(y''''')), add(0, add(s(0), x''''''')))
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(0, add(0, x''''''')))) -> HIGH(s(s(y''''')), add(0, add(0, x''''''')))
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> HIGH(s(s(y''''')), add(s(s(x''''')), x'''))
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(s(0), x'''))) -> HIGH(s(s(y''''')), add(s(0), x'''))
IFHIGH(true, s(0), add(s(0), add(0, add(s(s(x''''''''')), x''''''')))) -> HIGH(s(0), add(0, add(s(s(x''''''''')), x''''''')))
IFHIGH(true, s(y'''''), add(s(0), add(0, add(s(0), x''''''')))) -> HIGH(s(y'''''), add(0, add(s(0), x''''''')))
IFHIGH(true, s(y'''''), add(s(0), add(0, add(0, x''''''')))) -> HIGH(s(y'''''), add(0, add(0, x''''''')))
IFHIGH(true, s(s(y''''')), add(s(0), add(s(s(x''''')), x'''))) -> HIGH(s(s(y''''')), add(s(s(x''''')), x'''))
IFHIGH(true, s(0), add(0, add(s(s(x''''')), x'''))) -> HIGH(s(0), add(s(s(x''''')), x'''))
HIGH(s(0), add(0, add(s(s(x''''''')), x'''''))) -> IFHIGH(true, s(0), add(0, add(s(s(x''''''')), x''''')))
IFHIGH(true, s(y''''), add(0, add(s(0), x'''))) -> HIGH(s(y''''), add(s(0), x'''))
HIGH(s(y''''''), add(0, add(s(0), x'''''))) -> IFHIGH(true, s(y''''''), add(0, add(s(0), x''''')))
IFHIGH(false, 0, add(s(x''''), x'')) -> HIGH(0, x'')
HIGH(0, add(s(x''), x)) -> IFHIGH(false, 0, add(s(x''), x))
IFHIGH(true, 0, add(0, add(s(x''''), x'0))) -> HIGH(0, add(s(x''''), x'0))
HIGH(0, add(0, add(s(x''''''), x'0''))) -> IFHIGH(true, 0, add(0, add(s(x''''''), x'0'')))
IFHIGH(true, n''', add(0, add(0, x'''))) -> HIGH(n''', add(0, x'''))
HIGH(n'', add(0, add(0, x'''''))) -> IFHIGH(true, n'', add(0, add(0, x''''')))
IFHIGH(false, s(0), add(s(s(x''''')), x'')) -> HIGH(s(0), x'')
HIGH(s(0), add(s(s(x''')), x)) -> IFHIGH(false, s(0), add(s(s(x''')), x))
IFHIGH(true, s(0), add(s(0), add(s(s(x''''')), x'''))) -> HIGH(s(0), add(s(s(x''''')), x'''))
IFHIGH(true, s(y'''''), add(s(0), add(s(0), x'''))) -> HIGH(s(y'''''), add(s(0), x'''))
HIGH(s(y''), add(s(0), x)) -> IFHIGH(true, s(y''), add(s(0), x))
IFHIGH(false, s(s(y'''')), add(s(s(x''''')), x')) -> HIGH(s(s(y'''')), x')
HIGH(s(s(y'')), add(s(s(x''')), x)) -> IFHIGH(le(x''', y''), s(s(y'')), add(s(s(x''')), x))
IFHIGH(true, s(s(y'''')), add(0, add(s(s(x''''')), x'''))) -> HIGH(s(s(y'''')), add(s(s(x''''')), x'''))
HIGH(s(s(y'''''')), add(0, add(s(s(x''''''')), x'''''))) -> IFHIGH(true, s(s(y'''''')), add(0, add(s(s(x''''''')), x''''')))
IFHIGH(true, s(s(y'''''''')), add(s(0), add(0, add(s(s(x''''''''')), x''''''')))) -> HIGH(s(s(y'''''''')), add(0, add(s(s(x''''''''')), x''''''')))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
three new Dependency Pairs are created:
IFHIGH(false, 0, add(s(x''''), x'')) -> HIGH(0, x'')
IFHIGH(false, 0, add(s(x''''), add(s(x''''), x'0))) -> HIGH(0, add(s(x''''), x'0))
IFHIGH(false, 0, add(s(x''''), add(0, add(0, x''''''')))) -> HIGH(0, add(0, add(0, x''''''')))
IFHIGH(false, 0, add(s(x''''), add(0, add(s(x''''''''), x'0'''')))) -> HIGH(0, add(0, add(s(x''''''''), x'0'''')))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 33
↳Nar
...
→DP Problem 41
↳Forward Instantiation Transformation
→DP Problem 5
↳Nar
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(0, add(s(0), x''''''')))) -> HIGH(s(s(y''''')), add(0, add(s(0), x''''''')))
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(0, add(0, x''''''')))) -> HIGH(s(s(y''''')), add(0, add(0, x''''''')))
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> HIGH(s(s(y''''')), add(s(s(x''''')), x'''))
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(s(0), x'''))) -> HIGH(s(s(y''''')), add(s(0), x'''))
IFHIGH(true, s(s(y'''''''')), add(s(0), add(0, add(s(s(x''''''''')), x''''''')))) -> HIGH(s(s(y'''''''')), add(0, add(s(s(x''''''''')), x''''''')))
IFHIGH(true, s(0), add(s(0), add(0, add(s(s(x''''''''')), x''''''')))) -> HIGH(s(0), add(0, add(s(s(x''''''''')), x''''''')))
IFHIGH(true, s(y'''''), add(s(0), add(0, add(s(0), x''''''')))) -> HIGH(s(y'''''), add(0, add(s(0), x''''''')))
IFHIGH(true, s(y'''''), add(s(0), add(0, add(0, x''''''')))) -> HIGH(s(y'''''), add(0, add(0, x''''''')))
IFHIGH(true, s(s(y''''')), add(s(0), add(s(s(x''''')), x'''))) -> HIGH(s(s(y''''')), add(s(s(x''''')), x'''))
IFHIGH(true, s(0), add(0, add(s(s(x''''')), x'''))) -> HIGH(s(0), add(s(s(x''''')), x'''))
HIGH(s(0), add(0, add(s(s(x''''''')), x'''''))) -> IFHIGH(true, s(0), add(0, add(s(s(x''''''')), x''''')))
IFHIGH(true, s(y''''), add(0, add(s(0), x'''))) -> HIGH(s(y''''), add(s(0), x'''))
HIGH(s(y''''''), add(0, add(s(0), x'''''))) -> IFHIGH(true, s(y''''''), add(0, add(s(0), x''''')))
IFHIGH(false, 0, add(s(x''''), add(0, add(s(x''''''''), x'0'''')))) -> HIGH(0, add(0, add(s(x''''''''), x'0'''')))
IFHIGH(false, 0, add(s(x''''), add(0, add(0, x''''''')))) -> HIGH(0, add(0, add(0, x''''''')))
IFHIGH(false, 0, add(s(x''''), add(s(x''''), x'0))) -> HIGH(0, add(s(x''''), x'0))
HIGH(0, add(s(x''), x)) -> IFHIGH(false, 0, add(s(x''), x))
IFHIGH(true, 0, add(0, add(s(x''''), x'0))) -> HIGH(0, add(s(x''''), x'0))
HIGH(0, add(0, add(s(x''''''), x'0''))) -> IFHIGH(true, 0, add(0, add(s(x''''''), x'0'')))
IFHIGH(true, n''', add(0, add(0, x'''))) -> HIGH(n''', add(0, x'''))
HIGH(n'', add(0, add(0, x'''''))) -> IFHIGH(true, n'', add(0, add(0, x''''')))
IFHIGH(false, s(0), add(s(s(x''''')), x'')) -> HIGH(s(0), x'')
HIGH(s(0), add(s(s(x''')), x)) -> IFHIGH(false, s(0), add(s(s(x''')), x))
IFHIGH(true, s(0), add(s(0), add(s(s(x''''')), x'''))) -> HIGH(s(0), add(s(s(x''''')), x'''))
IFHIGH(true, s(y'''''), add(s(0), add(s(0), x'''))) -> HIGH(s(y'''''), add(s(0), x'''))
HIGH(s(y''), add(s(0), x)) -> IFHIGH(true, s(y''), add(s(0), x))
IFHIGH(false, s(s(y'''')), add(s(s(x''''')), x')) -> HIGH(s(s(y'''')), x')
HIGH(s(s(y'')), add(s(s(x''')), x)) -> IFHIGH(le(x''', y''), s(s(y'')), add(s(s(x''')), x))
IFHIGH(true, s(s(y'''')), add(0, add(s(s(x''''')), x'''))) -> HIGH(s(s(y'''')), add(s(s(x''''')), x'''))
HIGH(s(s(y'''''')), add(0, add(s(s(x''''''')), x'''''))) -> IFHIGH(true, s(s(y'''''')), add(0, add(s(s(x''''''')), x''''')))
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(0, add(s(s(x''''''''')), x''''''')))) -> HIGH(s(s(y''''')), add(0, add(s(s(x''''''''')), x''''''')))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
three new Dependency Pairs are created:
HIGH(0, add(s(x''), x)) -> IFHIGH(false, 0, add(s(x''), x))
HIGH(0, add(s(x'''), add(s(x'''''''), x'0''))) -> IFHIGH(false, 0, add(s(x'''), add(s(x'''''''), x'0'')))
HIGH(0, add(s(x'''), add(0, add(0, x''''''''')))) -> IFHIGH(false, 0, add(s(x'''), add(0, add(0, x'''''''''))))
HIGH(0, add(s(x'''), add(0, add(s(x''''''''''), x'0'''''')))) -> IFHIGH(false, 0, add(s(x'''), add(0, add(s(x''''''''''), x'0''''''))))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 33
↳Nar
...
→DP Problem 42
↳Forward Instantiation Transformation
→DP Problem 5
↳Nar
IFHIGH(true, s(s(y'''''''')), add(s(0), add(0, add(s(s(x''''''''')), x''''''')))) -> HIGH(s(s(y'''''''')), add(0, add(s(s(x''''''''')), x''''''')))
IFHIGH(true, s(0), add(s(0), add(0, add(s(s(x''''''''')), x''''''')))) -> HIGH(s(0), add(0, add(s(s(x''''''''')), x''''''')))
IFHIGH(true, s(y'''''), add(s(0), add(0, add(s(0), x''''''')))) -> HIGH(s(y'''''), add(0, add(s(0), x''''''')))
IFHIGH(true, s(y'''''), add(s(0), add(0, add(0, x''''''')))) -> HIGH(s(y'''''), add(0, add(0, x''''''')))
IFHIGH(true, s(s(y''''')), add(s(0), add(s(s(x''''')), x'''))) -> HIGH(s(s(y''''')), add(s(s(x''''')), x'''))
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(0, add(s(s(x''''''''')), x''''''')))) -> HIGH(s(s(y''''')), add(0, add(s(s(x''''''''')), x''''''')))
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(0, add(0, x''''''')))) -> HIGH(s(s(y''''')), add(0, add(0, x''''''')))
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> HIGH(s(s(y''''')), add(s(s(x''''')), x'''))
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(s(0), x'''))) -> HIGH(s(s(y''''')), add(s(0), x'''))
IFHIGH(false, s(s(y'''')), add(s(s(x''''')), x')) -> HIGH(s(s(y'''')), x')
HIGH(s(s(y'')), add(s(s(x''')), x)) -> IFHIGH(le(x''', y''), s(s(y'')), add(s(s(x''')), x))
IFHIGH(true, s(s(y'''')), add(0, add(s(s(x''''')), x'''))) -> HIGH(s(s(y'''')), add(s(s(x''''')), x'''))
HIGH(s(s(y'''''')), add(0, add(s(s(x''''''')), x'''''))) -> IFHIGH(true, s(s(y'''''')), add(0, add(s(s(x''''''')), x''''')))
IFHIGH(true, s(0), add(0, add(s(s(x''''')), x'''))) -> HIGH(s(0), add(s(s(x''''')), x'''))
HIGH(s(0), add(0, add(s(s(x''''''')), x'''''))) -> IFHIGH(true, s(0), add(0, add(s(s(x''''''')), x''''')))
IFHIGH(false, 0, add(s(x''''), add(0, add(s(x''''''''), x'0'''')))) -> HIGH(0, add(0, add(s(x''''''''), x'0'''')))
HIGH(0, add(s(x'''), add(0, add(s(x''''''''''), x'0'''''')))) -> IFHIGH(false, 0, add(s(x'''), add(0, add(s(x''''''''''), x'0''''''))))
IFHIGH(false, 0, add(s(x''''), add(0, add(0, x''''''')))) -> HIGH(0, add(0, add(0, x''''''')))
HIGH(0, add(s(x'''), add(0, add(0, x''''''''')))) -> IFHIGH(false, 0, add(s(x'''), add(0, add(0, x'''''''''))))
IFHIGH(false, 0, add(s(x''''), add(s(x''''), x'0))) -> HIGH(0, add(s(x''''), x'0))
HIGH(0, add(s(x'''), add(s(x'''''''), x'0''))) -> IFHIGH(false, 0, add(s(x'''), add(s(x'''''''), x'0'')))
IFHIGH(true, 0, add(0, add(s(x''''), x'0))) -> HIGH(0, add(s(x''''), x'0))
HIGH(0, add(0, add(s(x''''''), x'0''))) -> IFHIGH(true, 0, add(0, add(s(x''''''), x'0'')))
IFHIGH(true, n''', add(0, add(0, x'''))) -> HIGH(n''', add(0, x'''))
HIGH(n'', add(0, add(0, x'''''))) -> IFHIGH(true, n'', add(0, add(0, x''''')))
IFHIGH(false, s(0), add(s(s(x''''')), x'')) -> HIGH(s(0), x'')
HIGH(s(0), add(s(s(x''')), x)) -> IFHIGH(false, s(0), add(s(s(x''')), x))
IFHIGH(true, s(0), add(s(0), add(s(s(x''''')), x'''))) -> HIGH(s(0), add(s(s(x''''')), x'''))
IFHIGH(true, s(y'''''), add(s(0), add(s(0), x'''))) -> HIGH(s(y'''''), add(s(0), x'''))
HIGH(s(y''), add(s(0), x)) -> IFHIGH(true, s(y''), add(s(0), x))
IFHIGH(true, s(y''''), add(0, add(s(0), x'''))) -> HIGH(s(y''''), add(s(0), x'''))
HIGH(s(y''''''), add(0, add(s(0), x'''''))) -> IFHIGH(true, s(y''''''), add(0, add(s(0), x''''')))
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(0, add(s(0), x''''''')))) -> HIGH(s(s(y''''')), add(0, add(s(0), x''''''')))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
five new Dependency Pairs are created:
IFHIGH(false, s(0), add(s(s(x''''')), x'')) -> HIGH(s(0), x'')
IFHIGH(false, s(0), add(s(s(x''''')), add(s(0), x'''))) -> HIGH(s(0), add(s(0), x'''))
IFHIGH(false, s(0), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> HIGH(s(0), add(s(s(x''''')), x'''))
IFHIGH(false, s(0), add(s(s(x''''')), add(0, add(0, x''''''')))) -> HIGH(s(0), add(0, add(0, x''''''')))
IFHIGH(false, s(0), add(s(s(x''''')), add(0, add(s(0), x''''''')))) -> HIGH(s(0), add(0, add(s(0), x''''''')))
IFHIGH(false, s(0), add(s(s(x''''')), add(0, add(s(s(x''''''''')), x''''''')))) -> HIGH(s(0), add(0, add(s(s(x''''''''')), x''''''')))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 33
↳Nar
...
→DP Problem 43
↳Forward Instantiation Transformation
→DP Problem 5
↳Nar
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(0, add(s(s(x''''''''')), x''''''')))) -> HIGH(s(s(y''''')), add(0, add(s(s(x''''''''')), x''''''')))
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(0, add(s(0), x''''''')))) -> HIGH(s(s(y''''')), add(0, add(s(0), x''''''')))
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(0, add(0, x''''''')))) -> HIGH(s(s(y''''')), add(0, add(0, x''''''')))
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> HIGH(s(s(y''''')), add(s(s(x''''')), x'''))
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(s(0), x'''))) -> HIGH(s(s(y''''')), add(s(0), x'''))
IFHIGH(true, s(0), add(s(0), add(0, add(s(s(x''''''''')), x''''''')))) -> HIGH(s(0), add(0, add(s(s(x''''''''')), x''''''')))
IFHIGH(true, s(y'''''), add(s(0), add(0, add(s(0), x''''''')))) -> HIGH(s(y'''''), add(0, add(s(0), x''''''')))
IFHIGH(true, s(y'''''), add(s(0), add(0, add(0, x''''''')))) -> HIGH(s(y'''''), add(0, add(0, x''''''')))
IFHIGH(true, s(s(y''''')), add(s(0), add(s(s(x''''')), x'''))) -> HIGH(s(s(y''''')), add(s(s(x''''')), x'''))
IFHIGH(false, s(0), add(s(s(x''''')), add(0, add(s(s(x''''''''')), x''''''')))) -> HIGH(s(0), add(0, add(s(s(x''''''''')), x''''''')))
IFHIGH(false, s(0), add(s(s(x''''')), add(0, add(s(0), x''''''')))) -> HIGH(s(0), add(0, add(s(0), x''''''')))
IFHIGH(true, s(0), add(0, add(s(s(x''''')), x'''))) -> HIGH(s(0), add(s(s(x''''')), x'''))
HIGH(s(0), add(0, add(s(s(x''''''')), x'''''))) -> IFHIGH(true, s(0), add(0, add(s(s(x''''''')), x''''')))
IFHIGH(true, s(y''''), add(0, add(s(0), x'''))) -> HIGH(s(y''''), add(s(0), x'''))
HIGH(s(y''''''), add(0, add(s(0), x'''''))) -> IFHIGH(true, s(y''''''), add(0, add(s(0), x''''')))
IFHIGH(false, 0, add(s(x''''), add(0, add(s(x''''''''), x'0'''')))) -> HIGH(0, add(0, add(s(x''''''''), x'0'''')))
HIGH(0, add(s(x'''), add(0, add(s(x''''''''''), x'0'''''')))) -> IFHIGH(false, 0, add(s(x'''), add(0, add(s(x''''''''''), x'0''''''))))
IFHIGH(false, 0, add(s(x''''), add(0, add(0, x''''''')))) -> HIGH(0, add(0, add(0, x''''''')))
HIGH(0, add(s(x'''), add(0, add(0, x''''''''')))) -> IFHIGH(false, 0, add(s(x'''), add(0, add(0, x'''''''''))))
IFHIGH(false, 0, add(s(x''''), add(s(x''''), x'0))) -> HIGH(0, add(s(x''''), x'0))
HIGH(0, add(s(x'''), add(s(x'''''''), x'0''))) -> IFHIGH(false, 0, add(s(x'''), add(s(x'''''''), x'0'')))
IFHIGH(true, 0, add(0, add(s(x''''), x'0))) -> HIGH(0, add(s(x''''), x'0))
HIGH(0, add(0, add(s(x''''''), x'0''))) -> IFHIGH(true, 0, add(0, add(s(x''''''), x'0'')))
IFHIGH(true, n''', add(0, add(0, x'''))) -> HIGH(n''', add(0, x'''))
HIGH(n'', add(0, add(0, x'''''))) -> IFHIGH(true, n'', add(0, add(0, x''''')))
IFHIGH(false, s(0), add(s(s(x''''')), add(0, add(0, x''''''')))) -> HIGH(s(0), add(0, add(0, x''''''')))
IFHIGH(false, s(0), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> HIGH(s(0), add(s(s(x''''')), x'''))
IFHIGH(false, s(0), add(s(s(x''''')), add(s(0), x'''))) -> HIGH(s(0), add(s(0), x'''))
HIGH(s(0), add(s(s(x''')), x)) -> IFHIGH(false, s(0), add(s(s(x''')), x))
IFHIGH(true, s(0), add(s(0), add(s(s(x''''')), x'''))) -> HIGH(s(0), add(s(s(x''''')), x'''))
IFHIGH(true, s(y'''''), add(s(0), add(s(0), x'''))) -> HIGH(s(y'''''), add(s(0), x'''))
HIGH(s(y''), add(s(0), x)) -> IFHIGH(true, s(y''), add(s(0), x))
IFHIGH(false, s(s(y'''')), add(s(s(x''''')), x')) -> HIGH(s(s(y'''')), x')
HIGH(s(s(y'')), add(s(s(x''')), x)) -> IFHIGH(le(x''', y''), s(s(y'')), add(s(s(x''')), x))
IFHIGH(true, s(s(y'''')), add(0, add(s(s(x''''')), x'''))) -> HIGH(s(s(y'''')), add(s(s(x''''')), x'''))
HIGH(s(s(y'''''')), add(0, add(s(s(x''''''')), x'''''))) -> IFHIGH(true, s(s(y'''''')), add(0, add(s(s(x''''''')), x''''')))
IFHIGH(true, s(s(y'''''''')), add(s(0), add(0, add(s(s(x''''''''')), x''''''')))) -> HIGH(s(s(y'''''''')), add(0, add(s(s(x''''''''')), x''''''')))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
five new Dependency Pairs are created:
IFHIGH(false, s(s(y'''')), add(s(s(x''''')), x')) -> HIGH(s(s(y'''')), x')
IFHIGH(false, s(s(y''''')), add(s(s(x''''')), add(s(0), x'''))) -> HIGH(s(s(y''''')), add(s(0), x'''))
IFHIGH(false, s(s(y''''')), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> HIGH(s(s(y''''')), add(s(s(x''''')), x'''))
IFHIGH(false, s(s(y''''')), add(s(s(x''''')), add(0, add(0, x''''''')))) -> HIGH(s(s(y''''')), add(0, add(0, x''''''')))
IFHIGH(false, s(s(y''''')), add(s(s(x''''')), add(0, add(s(0), x''''''')))) -> HIGH(s(s(y''''')), add(0, add(s(0), x''''''')))
IFHIGH(false, s(s(y''''')), add(s(s(x''''')), add(0, add(s(s(x''''''''')), x''''''')))) -> HIGH(s(s(y''''')), add(0, add(s(s(x''''''''')), x''''''')))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 33
↳Nar
...
→DP Problem 44
↳Polynomial Ordering
→DP Problem 5
↳Nar
IFHIGH(false, s(s(y''''')), add(s(s(x''''')), add(0, add(s(s(x''''''''')), x''''''')))) -> HIGH(s(s(y''''')), add(0, add(s(s(x''''''''')), x''''''')))
IFHIGH(false, s(s(y''''')), add(s(s(x''''')), add(0, add(s(0), x''''''')))) -> HIGH(s(s(y''''')), add(0, add(s(0), x''''''')))
IFHIGH(false, s(s(y''''')), add(s(s(x''''')), add(0, add(0, x''''''')))) -> HIGH(s(s(y''''')), add(0, add(0, x''''''')))
IFHIGH(false, s(s(y''''')), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> HIGH(s(s(y''''')), add(s(s(x''''')), x'''))
IFHIGH(false, s(s(y''''')), add(s(s(x''''')), add(s(0), x'''))) -> HIGH(s(s(y''''')), add(s(0), x'''))
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(0, add(s(0), x''''''')))) -> HIGH(s(s(y''''')), add(0, add(s(0), x''''''')))
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(0, add(0, x''''''')))) -> HIGH(s(s(y''''')), add(0, add(0, x''''''')))
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> HIGH(s(s(y''''')), add(s(s(x''''')), x'''))
IFHIGH(true, s(s(y'''''''')), add(s(0), add(0, add(s(s(x''''''''')), x''''''')))) -> HIGH(s(s(y'''''''')), add(0, add(s(s(x''''''''')), x''''''')))
IFHIGH(true, s(0), add(s(0), add(0, add(s(s(x''''''''')), x''''''')))) -> HIGH(s(0), add(0, add(s(s(x''''''''')), x''''''')))
IFHIGH(true, s(y'''''), add(s(0), add(0, add(s(0), x''''''')))) -> HIGH(s(y'''''), add(0, add(s(0), x''''''')))
IFHIGH(true, s(y'''''), add(s(0), add(0, add(0, x''''''')))) -> HIGH(s(y'''''), add(0, add(0, x''''''')))
IFHIGH(true, s(s(y''''')), add(s(0), add(s(s(x''''')), x'''))) -> HIGH(s(s(y''''')), add(s(s(x''''')), x'''))
IFHIGH(false, s(0), add(s(s(x''''')), add(0, add(s(s(x''''''''')), x''''''')))) -> HIGH(s(0), add(0, add(s(s(x''''''''')), x''''''')))
IFHIGH(false, s(0), add(s(s(x''''')), add(0, add(s(0), x''''''')))) -> HIGH(s(0), add(0, add(s(0), x''''''')))
IFHIGH(true, s(0), add(0, add(s(s(x''''')), x'''))) -> HIGH(s(0), add(s(s(x''''')), x'''))
HIGH(s(0), add(0, add(s(s(x''''''')), x'''''))) -> IFHIGH(true, s(0), add(0, add(s(s(x''''''')), x''''')))
IFHIGH(true, s(y''''), add(0, add(s(0), x'''))) -> HIGH(s(y''''), add(s(0), x'''))
HIGH(s(y''''''), add(0, add(s(0), x'''''))) -> IFHIGH(true, s(y''''''), add(0, add(s(0), x''''')))
IFHIGH(false, 0, add(s(x''''), add(0, add(s(x''''''''), x'0'''')))) -> HIGH(0, add(0, add(s(x''''''''), x'0'''')))
HIGH(0, add(s(x'''), add(0, add(s(x''''''''''), x'0'''''')))) -> IFHIGH(false, 0, add(s(x'''), add(0, add(s(x''''''''''), x'0''''''))))
IFHIGH(false, 0, add(s(x''''), add(0, add(0, x''''''')))) -> HIGH(0, add(0, add(0, x''''''')))
HIGH(0, add(s(x'''), add(0, add(0, x''''''''')))) -> IFHIGH(false, 0, add(s(x'''), add(0, add(0, x'''''''''))))
IFHIGH(false, 0, add(s(x''''), add(s(x''''), x'0))) -> HIGH(0, add(s(x''''), x'0))
HIGH(0, add(s(x'''), add(s(x'''''''), x'0''))) -> IFHIGH(false, 0, add(s(x'''), add(s(x'''''''), x'0'')))
IFHIGH(true, 0, add(0, add(s(x''''), x'0))) -> HIGH(0, add(s(x''''), x'0))
HIGH(0, add(0, add(s(x''''''), x'0''))) -> IFHIGH(true, 0, add(0, add(s(x''''''), x'0'')))
IFHIGH(true, n''', add(0, add(0, x'''))) -> HIGH(n''', add(0, x'''))
HIGH(n'', add(0, add(0, x'''''))) -> IFHIGH(true, n'', add(0, add(0, x''''')))
IFHIGH(false, s(0), add(s(s(x''''')), add(0, add(0, x''''''')))) -> HIGH(s(0), add(0, add(0, x''''''')))
IFHIGH(false, s(0), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> HIGH(s(0), add(s(s(x''''')), x'''))
IFHIGH(false, s(0), add(s(s(x''''')), add(s(0), x'''))) -> HIGH(s(0), add(s(0), x'''))
HIGH(s(0), add(s(s(x''')), x)) -> IFHIGH(false, s(0), add(s(s(x''')), x))
IFHIGH(true, s(0), add(s(0), add(s(s(x''''')), x'''))) -> HIGH(s(0), add(s(s(x''''')), x'''))
IFHIGH(true, s(y'''''), add(s(0), add(s(0), x'''))) -> HIGH(s(y'''''), add(s(0), x'''))
HIGH(s(y''), add(s(0), x)) -> IFHIGH(true, s(y''), add(s(0), x))
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(s(0), x'''))) -> HIGH(s(s(y''''')), add(s(0), x'''))
HIGH(s(s(y'')), add(s(s(x''')), x)) -> IFHIGH(le(x''', y''), s(s(y'')), add(s(s(x''')), x))
IFHIGH(true, s(s(y'''')), add(0, add(s(s(x''''')), x'''))) -> HIGH(s(s(y'''')), add(s(s(x''''')), x'''))
HIGH(s(s(y'''''')), add(0, add(s(s(x''''''')), x'''''))) -> IFHIGH(true, s(s(y'''''')), add(0, add(s(s(x''''''')), x''''')))
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(0, add(s(s(x''''''''')), x''''''')))) -> HIGH(s(s(y''''')), add(0, add(s(s(x''''''''')), x''''''')))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
IFHIGH(true, s(0), add(0, add(s(s(x''''')), x'''))) -> HIGH(s(0), add(s(s(x''''')), x'''))
IFHIGH(true, s(y''''), add(0, add(s(0), x'''))) -> HIGH(s(y''''), add(s(0), x'''))
IFHIGH(true, 0, add(0, add(s(x''''), x'0))) -> HIGH(0, add(s(x''''), x'0))
IFHIGH(true, n''', add(0, add(0, x'''))) -> HIGH(n''', add(0, x'''))
IFHIGH(true, s(s(y'''')), add(0, add(s(s(x''''')), x'''))) -> HIGH(s(s(y'''')), add(s(s(x''''')), x'''))
POL(0) = 1 POL(false) = 0 POL(IF_HIGH(x1, x2, x3)) = x3 POL(HIGH(x1, x2)) = x2 POL(true) = 0 POL(s(x1)) = 0 POL(le(x1, x2)) = 0 POL(add(x1, x2)) = x1 + x2
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 33
↳Nar
...
→DP Problem 45
↳Dependency Graph
→DP Problem 5
↳Nar
IFHIGH(false, s(s(y''''')), add(s(s(x''''')), add(0, add(s(s(x''''''''')), x''''''')))) -> HIGH(s(s(y''''')), add(0, add(s(s(x''''''''')), x''''''')))
IFHIGH(false, s(s(y''''')), add(s(s(x''''')), add(0, add(s(0), x''''''')))) -> HIGH(s(s(y''''')), add(0, add(s(0), x''''''')))
IFHIGH(false, s(s(y''''')), add(s(s(x''''')), add(0, add(0, x''''''')))) -> HIGH(s(s(y''''')), add(0, add(0, x''''''')))
IFHIGH(false, s(s(y''''')), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> HIGH(s(s(y''''')), add(s(s(x''''')), x'''))
IFHIGH(false, s(s(y''''')), add(s(s(x''''')), add(s(0), x'''))) -> HIGH(s(s(y''''')), add(s(0), x'''))
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(0, add(s(0), x''''''')))) -> HIGH(s(s(y''''')), add(0, add(s(0), x''''''')))
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(0, add(0, x''''''')))) -> HIGH(s(s(y''''')), add(0, add(0, x''''''')))
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> HIGH(s(s(y''''')), add(s(s(x''''')), x'''))
IFHIGH(true, s(s(y'''''''')), add(s(0), add(0, add(s(s(x''''''''')), x''''''')))) -> HIGH(s(s(y'''''''')), add(0, add(s(s(x''''''''')), x''''''')))
IFHIGH(true, s(0), add(s(0), add(0, add(s(s(x''''''''')), x''''''')))) -> HIGH(s(0), add(0, add(s(s(x''''''''')), x''''''')))
IFHIGH(true, s(y'''''), add(s(0), add(0, add(s(0), x''''''')))) -> HIGH(s(y'''''), add(0, add(s(0), x''''''')))
IFHIGH(true, s(y'''''), add(s(0), add(0, add(0, x''''''')))) -> HIGH(s(y'''''), add(0, add(0, x''''''')))
IFHIGH(true, s(s(y''''')), add(s(0), add(s(s(x''''')), x'''))) -> HIGH(s(s(y''''')), add(s(s(x''''')), x'''))
IFHIGH(false, s(0), add(s(s(x''''')), add(0, add(s(s(x''''''''')), x''''''')))) -> HIGH(s(0), add(0, add(s(s(x''''''''')), x''''''')))
IFHIGH(false, s(0), add(s(s(x''''')), add(0, add(s(0), x''''''')))) -> HIGH(s(0), add(0, add(s(0), x''''''')))
HIGH(s(0), add(0, add(s(s(x''''''')), x'''''))) -> IFHIGH(true, s(0), add(0, add(s(s(x''''''')), x''''')))
HIGH(s(y''''''), add(0, add(s(0), x'''''))) -> IFHIGH(true, s(y''''''), add(0, add(s(0), x''''')))
IFHIGH(false, 0, add(s(x''''), add(0, add(s(x''''''''), x'0'''')))) -> HIGH(0, add(0, add(s(x''''''''), x'0'''')))
HIGH(0, add(s(x'''), add(0, add(s(x''''''''''), x'0'''''')))) -> IFHIGH(false, 0, add(s(x'''), add(0, add(s(x''''''''''), x'0''''''))))
IFHIGH(false, 0, add(s(x''''), add(0, add(0, x''''''')))) -> HIGH(0, add(0, add(0, x''''''')))
HIGH(0, add(s(x'''), add(0, add(0, x''''''''')))) -> IFHIGH(false, 0, add(s(x'''), add(0, add(0, x'''''''''))))
IFHIGH(false, 0, add(s(x''''), add(s(x''''), x'0))) -> HIGH(0, add(s(x''''), x'0))
HIGH(0, add(s(x'''), add(s(x'''''''), x'0''))) -> IFHIGH(false, 0, add(s(x'''), add(s(x'''''''), x'0'')))
HIGH(0, add(0, add(s(x''''''), x'0''))) -> IFHIGH(true, 0, add(0, add(s(x''''''), x'0'')))
HIGH(n'', add(0, add(0, x'''''))) -> IFHIGH(true, n'', add(0, add(0, x''''')))
IFHIGH(false, s(0), add(s(s(x''''')), add(0, add(0, x''''''')))) -> HIGH(s(0), add(0, add(0, x''''''')))
IFHIGH(false, s(0), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> HIGH(s(0), add(s(s(x''''')), x'''))
IFHIGH(false, s(0), add(s(s(x''''')), add(s(0), x'''))) -> HIGH(s(0), add(s(0), x'''))
HIGH(s(0), add(s(s(x''')), x)) -> IFHIGH(false, s(0), add(s(s(x''')), x))
IFHIGH(true, s(0), add(s(0), add(s(s(x''''')), x'''))) -> HIGH(s(0), add(s(s(x''''')), x'''))
IFHIGH(true, s(y'''''), add(s(0), add(s(0), x'''))) -> HIGH(s(y'''''), add(s(0), x'''))
HIGH(s(y''), add(s(0), x)) -> IFHIGH(true, s(y''), add(s(0), x))
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(s(0), x'''))) -> HIGH(s(s(y''''')), add(s(0), x'''))
HIGH(s(s(y'')), add(s(s(x''')), x)) -> IFHIGH(le(x''', y''), s(s(y'')), add(s(s(x''')), x))
HIGH(s(s(y'''''')), add(0, add(s(s(x''''''')), x'''''))) -> IFHIGH(true, s(s(y'''''')), add(0, add(s(s(x''''''')), x''''')))
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(0, add(s(s(x''''''''')), x''''''')))) -> HIGH(s(s(y''''')), add(0, add(s(s(x''''''''')), x''''''')))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 33
↳Nar
...
→DP Problem 46
↳Polynomial Ordering
→DP Problem 5
↳Nar
IFHIGH(false, s(s(y''''')), add(s(s(x''''')), add(s(0), x'''))) -> HIGH(s(s(y''''')), add(s(0), x'''))
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> HIGH(s(s(y''''')), add(s(s(x''''')), x'''))
IFHIGH(true, s(s(y''''')), add(s(0), add(s(s(x''''')), x'''))) -> HIGH(s(s(y''''')), add(s(s(x''''')), x'''))
IFHIGH(false, s(0), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> HIGH(s(0), add(s(s(x''''')), x'''))
IFHIGH(false, s(0), add(s(s(x''''')), add(s(0), x'''))) -> HIGH(s(0), add(s(0), x'''))
HIGH(s(0), add(s(s(x''')), x)) -> IFHIGH(false, s(0), add(s(s(x''')), x))
IFHIGH(true, s(0), add(s(0), add(s(s(x''''')), x'''))) -> HIGH(s(0), add(s(s(x''''')), x'''))
IFHIGH(true, s(y'''''), add(s(0), add(s(0), x'''))) -> HIGH(s(y'''''), add(s(0), x'''))
HIGH(s(y''), add(s(0), x)) -> IFHIGH(true, s(y''), add(s(0), x))
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(s(0), x'''))) -> HIGH(s(s(y''''')), add(s(0), x'''))
HIGH(s(s(y'')), add(s(s(x''')), x)) -> IFHIGH(le(x''', y''), s(s(y'')), add(s(s(x''')), x))
IFHIGH(false, s(s(y''''')), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> HIGH(s(s(y''''')), add(s(s(x''''')), x'''))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
IFHIGH(true, s(s(y''''')), add(s(0), add(s(s(x''''')), x'''))) -> HIGH(s(s(y''''')), add(s(s(x''''')), x'''))
IFHIGH(true, s(0), add(s(0), add(s(s(x''''')), x'''))) -> HIGH(s(0), add(s(s(x''''')), x'''))
IFHIGH(true, s(y'''''), add(s(0), add(s(0), x'''))) -> HIGH(s(y'''''), add(s(0), x'''))
POL(0) = 1 POL(false) = 0 POL(IF_HIGH(x1, x2, x3)) = x3 POL(HIGH(x1, x2)) = x2 POL(true) = 0 POL(s(x1)) = x1 POL(le(x1, x2)) = 0 POL(add(x1, x2)) = x1 + x2
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 33
↳Nar
...
→DP Problem 48
↳Dependency Graph
→DP Problem 5
↳Nar
IFHIGH(false, s(s(y''''')), add(s(s(x''''')), add(s(0), x'''))) -> HIGH(s(s(y''''')), add(s(0), x'''))
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> HIGH(s(s(y''''')), add(s(s(x''''')), x'''))
IFHIGH(false, s(0), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> HIGH(s(0), add(s(s(x''''')), x'''))
IFHIGH(false, s(0), add(s(s(x''''')), add(s(0), x'''))) -> HIGH(s(0), add(s(0), x'''))
HIGH(s(0), add(s(s(x''')), x)) -> IFHIGH(false, s(0), add(s(s(x''')), x))
HIGH(s(y''), add(s(0), x)) -> IFHIGH(true, s(y''), add(s(0), x))
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(s(0), x'''))) -> HIGH(s(s(y''''')), add(s(0), x'''))
HIGH(s(s(y'')), add(s(s(x''')), x)) -> IFHIGH(le(x''', y''), s(s(y'')), add(s(s(x''')), x))
IFHIGH(false, s(s(y''''')), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> HIGH(s(s(y''''')), add(s(s(x''''')), x'''))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 33
↳Nar
...
→DP Problem 50
↳Polynomial Ordering
→DP Problem 5
↳Nar
IFHIGH(false, s(s(y''''')), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> HIGH(s(s(y''''')), add(s(s(x''''')), x'''))
HIGH(s(s(y'')), add(s(s(x''')), x)) -> IFHIGH(le(x''', y''), s(s(y'')), add(s(s(x''')), x))
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> HIGH(s(s(y''''')), add(s(s(x''''')), x'''))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
IFHIGH(false, s(s(y''''')), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> HIGH(s(s(y''''')), add(s(s(x''''')), x'''))
IFHIGH(true, s(s(y''''')), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> HIGH(s(s(y''''')), add(s(s(x''''')), x'''))
POL(0) = 0 POL(false) = 0 POL(IF_HIGH(x1, x2, x3)) = x3 POL(HIGH(x1, x2)) = x2 POL(true) = 0 POL(s(x1)) = 0 POL(le(x1, x2)) = 0 POL(add(x1, x2)) = 1 + x2
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 33
↳Nar
...
→DP Problem 52
↳Dependency Graph
→DP Problem 5
↳Nar
HIGH(s(s(y'')), add(s(s(x''')), x)) -> IFHIGH(le(x''', y''), s(s(y'')), add(s(s(x''')), x))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 33
↳Nar
...
→DP Problem 51
↳Polynomial Ordering
→DP Problem 5
↳Nar
HIGH(s(0), add(s(s(x''')), x)) -> IFHIGH(false, s(0), add(s(s(x''')), x))
IFHIGH(false, s(0), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> HIGH(s(0), add(s(s(x''''')), x'''))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
IFHIGH(false, s(0), add(s(s(x''''')), add(s(s(x''''')), x'''))) -> HIGH(s(0), add(s(s(x''''')), x'''))
POL(0) = 0 POL(IF_HIGH(x1, x2, x3)) = x3 POL(false) = 0 POL(HIGH(x1, x2)) = x2 POL(s(x1)) = 1 POL(add(x1, x2)) = x1 + x2
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 33
↳Nar
...
→DP Problem 53
↳Dependency Graph
→DP Problem 5
↳Nar
HIGH(s(0), add(s(s(x''')), x)) -> IFHIGH(false, s(0), add(s(s(x''')), x))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 33
↳Nar
...
→DP Problem 47
↳Polynomial Ordering
→DP Problem 5
↳Nar
HIGH(0, add(s(x'''), add(s(x'''''''), x'0''))) -> IFHIGH(false, 0, add(s(x'''), add(s(x'''''''), x'0'')))
IFHIGH(false, 0, add(s(x''''), add(s(x''''), x'0))) -> HIGH(0, add(s(x''''), x'0))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
IFHIGH(false, 0, add(s(x''''), add(s(x''''), x'0))) -> HIGH(0, add(s(x''''), x'0))
POL(0) = 0 POL(IF_HIGH(x1, x2, x3)) = x3 POL(false) = 0 POL(HIGH(x1, x2)) = x2 POL(s(x1)) = 1 POL(add(x1, x2)) = x1 + x2
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 33
↳Nar
...
→DP Problem 49
↳Dependency Graph
→DP Problem 5
↳Nar
HIGH(0, add(s(x'''), add(s(x'''''''), x'0''))) -> IFHIGH(false, 0, add(s(x'''), add(s(x'''''''), x'0'')))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 5
↳Narrowing Transformation
QUICKSORT(add(n, x)) -> QUICKSORT(high(n, x))
QUICKSORT(add(n, x)) -> QUICKSORT(low(n, x))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
two new Dependency Pairs are created:
QUICKSORT(add(n, x)) -> QUICKSORT(low(n, x))
QUICKSORT(add(n'', nil)) -> QUICKSORT(nil)
QUICKSORT(add(n'', add(m', x''))) -> QUICKSORT(iflow(le(m', n''), n'', add(m', x'')))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
→DP Problem 54
↳Narrowing Transformation
QUICKSORT(add(n'', add(m', x''))) -> QUICKSORT(iflow(le(m', n''), n'', add(m', x'')))
QUICKSORT(add(n, x)) -> QUICKSORT(high(n, x))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
two new Dependency Pairs are created:
QUICKSORT(add(n, x)) -> QUICKSORT(high(n, x))
QUICKSORT(add(n'', nil)) -> QUICKSORT(nil)
QUICKSORT(add(n'', add(m', x''))) -> QUICKSORT(ifhigh(le(m', n''), n'', add(m', x'')))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
→DP Problem 54
↳Nar
...
→DP Problem 55
↳Narrowing Transformation
QUICKSORT(add(n'', add(m', x''))) -> QUICKSORT(ifhigh(le(m', n''), n'', add(m', x'')))
QUICKSORT(add(n'', add(m', x''))) -> QUICKSORT(iflow(le(m', n''), n'', add(m', x'')))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
three new Dependency Pairs are created:
QUICKSORT(add(n'', add(m', x''))) -> QUICKSORT(iflow(le(m', n''), n'', add(m', x'')))
QUICKSORT(add(n''', add(0, x''))) -> QUICKSORT(iflow(true, n''', add(0, x'')))
QUICKSORT(add(0, add(s(x'), x''))) -> QUICKSORT(iflow(false, 0, add(s(x'), x'')))
QUICKSORT(add(s(y'), add(s(x'), x''))) -> QUICKSORT(iflow(le(x', y'), s(y'), add(s(x'), x'')))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
→DP Problem 54
↳Nar
...
→DP Problem 56
↳Rewriting Transformation
QUICKSORT(add(s(y'), add(s(x'), x''))) -> QUICKSORT(iflow(le(x', y'), s(y'), add(s(x'), x'')))
QUICKSORT(add(0, add(s(x'), x''))) -> QUICKSORT(iflow(false, 0, add(s(x'), x'')))
QUICKSORT(add(n''', add(0, x''))) -> QUICKSORT(iflow(true, n''', add(0, x'')))
QUICKSORT(add(n'', add(m', x''))) -> QUICKSORT(ifhigh(le(m', n''), n'', add(m', x'')))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
one new Dependency Pair is created:
QUICKSORT(add(n''', add(0, x''))) -> QUICKSORT(iflow(true, n''', add(0, x'')))
QUICKSORT(add(n''', add(0, x''))) -> QUICKSORT(add(0, low(n''', x'')))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
→DP Problem 54
↳Nar
...
→DP Problem 57
↳Rewriting Transformation
QUICKSORT(add(n''', add(0, x''))) -> QUICKSORT(add(0, low(n''', x'')))
QUICKSORT(add(0, add(s(x'), x''))) -> QUICKSORT(iflow(false, 0, add(s(x'), x'')))
QUICKSORT(add(n'', add(m', x''))) -> QUICKSORT(ifhigh(le(m', n''), n'', add(m', x'')))
QUICKSORT(add(s(y'), add(s(x'), x''))) -> QUICKSORT(iflow(le(x', y'), s(y'), add(s(x'), x'')))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
one new Dependency Pair is created:
QUICKSORT(add(0, add(s(x'), x''))) -> QUICKSORT(iflow(false, 0, add(s(x'), x'')))
QUICKSORT(add(0, add(s(x'), x''))) -> QUICKSORT(low(0, x''))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
→DP Problem 54
↳Nar
...
→DP Problem 58
↳Narrowing Transformation
QUICKSORT(add(0, add(s(x'), x''))) -> QUICKSORT(low(0, x''))
QUICKSORT(add(s(y'), add(s(x'), x''))) -> QUICKSORT(iflow(le(x', y'), s(y'), add(s(x'), x'')))
QUICKSORT(add(n'', add(m', x''))) -> QUICKSORT(ifhigh(le(m', n''), n'', add(m', x'')))
QUICKSORT(add(n''', add(0, x''))) -> QUICKSORT(add(0, low(n''', x'')))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
three new Dependency Pairs are created:
QUICKSORT(add(n'', add(m', x''))) -> QUICKSORT(ifhigh(le(m', n''), n'', add(m', x'')))
QUICKSORT(add(n''', add(0, x''))) -> QUICKSORT(ifhigh(true, n''', add(0, x'')))
QUICKSORT(add(0, add(s(x'), x''))) -> QUICKSORT(ifhigh(false, 0, add(s(x'), x'')))
QUICKSORT(add(s(y'), add(s(x'), x''))) -> QUICKSORT(ifhigh(le(x', y'), s(y'), add(s(x'), x'')))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
→DP Problem 54
↳Nar
...
→DP Problem 59
↳Rewriting Transformation
QUICKSORT(add(s(y'), add(s(x'), x''))) -> QUICKSORT(ifhigh(le(x', y'), s(y'), add(s(x'), x'')))
QUICKSORT(add(0, add(s(x'), x''))) -> QUICKSORT(ifhigh(false, 0, add(s(x'), x'')))
QUICKSORT(add(n''', add(0, x''))) -> QUICKSORT(ifhigh(true, n''', add(0, x'')))
QUICKSORT(add(n''', add(0, x''))) -> QUICKSORT(add(0, low(n''', x'')))
QUICKSORT(add(s(y'), add(s(x'), x''))) -> QUICKSORT(iflow(le(x', y'), s(y'), add(s(x'), x'')))
QUICKSORT(add(0, add(s(x'), x''))) -> QUICKSORT(low(0, x''))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
one new Dependency Pair is created:
QUICKSORT(add(n''', add(0, x''))) -> QUICKSORT(ifhigh(true, n''', add(0, x'')))
QUICKSORT(add(n''', add(0, x''))) -> QUICKSORT(high(n''', x''))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
→DP Problem 54
↳Nar
...
→DP Problem 60
↳Rewriting Transformation
QUICKSORT(add(n''', add(0, x''))) -> QUICKSORT(high(n''', x''))
QUICKSORT(add(0, add(s(x'), x''))) -> QUICKSORT(ifhigh(false, 0, add(s(x'), x'')))
QUICKSORT(add(0, add(s(x'), x''))) -> QUICKSORT(low(0, x''))
QUICKSORT(add(n''', add(0, x''))) -> QUICKSORT(add(0, low(n''', x'')))
QUICKSORT(add(s(y'), add(s(x'), x''))) -> QUICKSORT(iflow(le(x', y'), s(y'), add(s(x'), x'')))
QUICKSORT(add(s(y'), add(s(x'), x''))) -> QUICKSORT(ifhigh(le(x', y'), s(y'), add(s(x'), x'')))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
one new Dependency Pair is created:
QUICKSORT(add(0, add(s(x'), x''))) -> QUICKSORT(ifhigh(false, 0, add(s(x'), x'')))
QUICKSORT(add(0, add(s(x'), x''))) -> QUICKSORT(add(s(x'), high(0, x'')))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
→DP Problem 54
↳Nar
...
→DP Problem 61
↳Polynomial Ordering
QUICKSORT(add(0, add(s(x'), x''))) -> QUICKSORT(add(s(x'), high(0, x'')))
QUICKSORT(add(s(y'), add(s(x'), x''))) -> QUICKSORT(ifhigh(le(x', y'), s(y'), add(s(x'), x'')))
QUICKSORT(add(0, add(s(x'), x''))) -> QUICKSORT(low(0, x''))
QUICKSORT(add(n''', add(0, x''))) -> QUICKSORT(add(0, low(n''', x'')))
QUICKSORT(add(s(y'), add(s(x'), x''))) -> QUICKSORT(iflow(le(x', y'), s(y'), add(s(x'), x'')))
QUICKSORT(add(n''', add(0, x''))) -> QUICKSORT(high(n''', x''))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
QUICKSORT(add(0, add(s(x'), x''))) -> QUICKSORT(add(s(x'), high(0, x'')))
QUICKSORT(add(0, add(s(x'), x''))) -> QUICKSORT(low(0, x''))
QUICKSORT(add(n''', add(0, x''))) -> QUICKSORT(high(n''', x''))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
POL(QUICKSORT(x1)) = 1 + x1 POL(0) = 1 POL(if_low(x1, x2, x3)) = x3 POL(false) = 0 POL(if_high(x1, x2, x3)) = x3 POL(high(x1, x2)) = x2 POL(low(x1, x2)) = x2 POL(true) = 0 POL(nil) = 0 POL(s(x1)) = 0 POL(le(x1, x2)) = 0 POL(add(x1, x2)) = x1 + x2
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
→DP Problem 54
↳Nar
...
→DP Problem 62
↳Dependency Graph
QUICKSORT(add(s(y'), add(s(x'), x''))) -> QUICKSORT(ifhigh(le(x', y'), s(y'), add(s(x'), x'')))
QUICKSORT(add(n''', add(0, x''))) -> QUICKSORT(add(0, low(n''', x'')))
QUICKSORT(add(s(y'), add(s(x'), x''))) -> QUICKSORT(iflow(le(x', y'), s(y'), add(s(x'), x'')))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
→DP Problem 54
↳Nar
...
→DP Problem 63
↳Polynomial Ordering
QUICKSORT(add(n''', add(0, x''))) -> QUICKSORT(add(0, low(n''', x'')))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
QUICKSORT(add(n''', add(0, x''))) -> QUICKSORT(add(0, low(n''', x'')))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
POL(QUICKSORT(x1)) = 1 + x1 POL(0) = 0 POL(if_low(x1, x2, x3)) = x3 POL(false) = 0 POL(low(x1, x2)) = x2 POL(true) = 0 POL(nil) = 0 POL(s(x1)) = 0 POL(le(x1, x2)) = 0 POL(add(x1, x2)) = 1 + x2
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
→DP Problem 54
↳Nar
...
→DP Problem 65
↳Dependency Graph
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Nar
→DP Problem 4
↳Nar
→DP Problem 5
↳Nar
→DP Problem 54
↳Nar
...
→DP Problem 64
↳Polynomial Ordering
QUICKSORT(add(s(y'), add(s(x'), x''))) -> QUICKSORT(iflow(le(x', y'), s(y'), add(s(x'), x'')))
QUICKSORT(add(s(y'), add(s(x'), x''))) -> QUICKSORT(ifhigh(le(x', y'), s(y'), add(s(x'), x'')))
le(0, y) -> true
le(s(x), 0) -> false
le(s(x), s(y)) -> le(x, y)
app(nil, y) -> y
app(add(n, x), y) -> add(n, app(x, y))
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
quicksort(nil) -> nil
quicksort(add(n, x)) -> app(quicksort(low(n, x)), add(n, quicksort(high(n, x))))
innermost
QUICKSORT(add(s(y'), add(s(x'), x''))) -> QUICKSORT(iflow(le(x', y'), s(y'), add(s(x'), x'')))
QUICKSORT(add(s(y'), add(s(x'), x''))) -> QUICKSORT(ifhigh(le(x', y'), s(y'), add(s(x'), x'')))
iflow(true, n, add(m, x)) -> add(m, low(n, x))
iflow(false, n, add(m, x)) -> low(n, x)
low(n, nil) -> nil
low(n, add(m, x)) -> iflow(le(m, n), n, add(m, x))
high(n, nil) -> nil
high(n, add(m, x)) -> ifhigh(le(m, n), n, add(m, x))
ifhigh(true, n, add(m, x)) -> high(n, x)
ifhigh(false, n, add(m, x)) -> add(m, high(n, x))
POL(QUICKSORT(x1)) = 1 + x1 POL(0) = 0 POL(if_low(x1, x2, x3)) = x3 POL(false) = 0 POL(high(x1, x2)) = x2 POL(if_high(x1, x2, x3)) = x3 POL(low(x1, x2)) = x2 POL(true) = 0 POL(nil) = 0 POL(s(x1)) = 1 POL(le(x1, x2)) = 0 POL(add(x1, x2)) = x1 + x2