R
↳Dependency Pair Analysis
MSORT(.(x, y)) -> MIN(x, y)
MSORT(.(x, y)) -> MSORT(del(min(x, y), .(x, y)))
MSORT(.(x, y)) -> DEL(min(x, y), .(x, y))
MIN(x, .(y, z)) -> MIN(x, z)
MIN(x, .(y, z)) -> MIN(y, z)
DEL(x, .(y, z)) -> DEL(x, z)
R
↳DPs
→DP Problem 1
↳Forward Instantiation Transformation
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Rw
MIN(x, .(y, z)) -> MIN(y, z)
MIN(x, .(y, z)) -> MIN(x, z)
msort(nil) -> nil
msort(.(x, y)) -> .(min(x, y), msort(del(min(x, y), .(x, y))))
min(x, nil) -> x
min(x, .(y, z)) -> if(<=(x, y), min(x, z), min(y, z))
del(x, nil) -> nil
del(x, .(y, z)) -> if(=(x, y), z, .(y, del(x, z)))
innermost
one new Dependency Pair is created:
MIN(x, .(y, z)) -> MIN(x, z)
MIN(x'', .(y, .(y'', z''))) -> MIN(x'', .(y'', z''))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 4
↳Forward Instantiation Transformation
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Rw
MIN(x'', .(y, .(y'', z''))) -> MIN(x'', .(y'', z''))
MIN(x, .(y, z)) -> MIN(y, z)
msort(nil) -> nil
msort(.(x, y)) -> .(min(x, y), msort(del(min(x, y), .(x, y))))
min(x, nil) -> x
min(x, .(y, z)) -> if(<=(x, y), min(x, z), min(y, z))
del(x, nil) -> nil
del(x, .(y, z)) -> if(=(x, y), z, .(y, del(x, z)))
innermost
two new Dependency Pairs are created:
MIN(x, .(y, z)) -> MIN(y, z)
MIN(x, .(y0, .(y'', z''))) -> MIN(y0, .(y'', z''))
MIN(x, .(y0, .(y'', .(y'''', z'''')))) -> MIN(y0, .(y'', .(y'''', z'''')))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 4
↳FwdInst
...
→DP Problem 5
↳Forward Instantiation Transformation
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Rw
MIN(x, .(y0, .(y'', .(y'''', z'''')))) -> MIN(y0, .(y'', .(y'''', z'''')))
MIN(x, .(y0, .(y'', z''))) -> MIN(y0, .(y'', z''))
MIN(x'', .(y, .(y'', z''))) -> MIN(x'', .(y'', z''))
msort(nil) -> nil
msort(.(x, y)) -> .(min(x, y), msort(del(min(x, y), .(x, y))))
min(x, nil) -> x
min(x, .(y, z)) -> if(<=(x, y), min(x, z), min(y, z))
del(x, nil) -> nil
del(x, .(y, z)) -> if(=(x, y), z, .(y, del(x, z)))
innermost
three new Dependency Pairs are created:
MIN(x'', .(y, .(y'', z''))) -> MIN(x'', .(y'', z''))
MIN(x'''', .(y, .(y''0, .(y'''', z'''')))) -> MIN(x'''', .(y''0, .(y'''', z'''')))
MIN(x''', .(y, .(y''0, .(y'''', z'''')))) -> MIN(x''', .(y''0, .(y'''', z'''')))
MIN(x''', .(y, .(y''0, .(y'''', .(y'''''', z''''''))))) -> MIN(x''', .(y''0, .(y'''', .(y'''''', z''''''))))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 4
↳FwdInst
...
→DP Problem 6
↳Forward Instantiation Transformation
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Rw
MIN(x''', .(y, .(y''0, .(y'''', .(y'''''', z''''''))))) -> MIN(x''', .(y''0, .(y'''', .(y'''''', z''''''))))
MIN(x''', .(y, .(y''0, .(y'''', z'''')))) -> MIN(x''', .(y''0, .(y'''', z'''')))
MIN(x'''', .(y, .(y''0, .(y'''', z'''')))) -> MIN(x'''', .(y''0, .(y'''', z'''')))
MIN(x, .(y0, .(y'', z''))) -> MIN(y0, .(y'', z''))
MIN(x, .(y0, .(y'', .(y'''', z'''')))) -> MIN(y0, .(y'', .(y'''', z'''')))
msort(nil) -> nil
msort(.(x, y)) -> .(min(x, y), msort(del(min(x, y), .(x, y))))
min(x, nil) -> x
min(x, .(y, z)) -> if(<=(x, y), min(x, z), min(y, z))
del(x, nil) -> nil
del(x, .(y, z)) -> if(=(x, y), z, .(y, del(x, z)))
innermost
four new Dependency Pairs are created:
MIN(x, .(y0, .(y'', z''))) -> MIN(y0, .(y'', z''))
MIN(x, .(y0'', .(y''0, .(y'''', z'''')))) -> MIN(y0'', .(y''0, .(y'''', z'''')))
MIN(x, .(y0'', .(y''0, .(y'''', .(y'''''', z''''''))))) -> MIN(y0'', .(y''0, .(y'''', .(y'''''', z''''''))))
MIN(x, .(y0', .(y''', .(y''0'', .(y'''''', z''''''))))) -> MIN(y0', .(y''', .(y''0'', .(y'''''', z''''''))))
MIN(x, .(y0', .(y''', .(y''0'', .(y'''''', .(y'''''''', z'''''''')))))) -> MIN(y0', .(y''', .(y''0'', .(y'''''', .(y'''''''', z'''''''')))))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 4
↳FwdInst
...
→DP Problem 7
↳Forward Instantiation Transformation
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Rw
MIN(x, .(y0', .(y''', .(y''0'', .(y'''''', .(y'''''''', z'''''''')))))) -> MIN(y0', .(y''', .(y''0'', .(y'''''', .(y'''''''', z'''''''')))))
MIN(x, .(y0', .(y''', .(y''0'', .(y'''''', z''''''))))) -> MIN(y0', .(y''', .(y''0'', .(y'''''', z''''''))))
MIN(x, .(y0'', .(y''0, .(y'''', .(y'''''', z''''''))))) -> MIN(y0'', .(y''0, .(y'''', .(y'''''', z''''''))))
MIN(x, .(y0'', .(y''0, .(y'''', z'''')))) -> MIN(y0'', .(y''0, .(y'''', z'''')))
MIN(x''', .(y, .(y''0, .(y'''', z'''')))) -> MIN(x''', .(y''0, .(y'''', z'''')))
MIN(x'''', .(y, .(y''0, .(y'''', z'''')))) -> MIN(x'''', .(y''0, .(y'''', z'''')))
MIN(x, .(y0, .(y'', .(y'''', z'''')))) -> MIN(y0, .(y'', .(y'''', z'''')))
MIN(x''', .(y, .(y''0, .(y'''', .(y'''''', z''''''))))) -> MIN(x''', .(y''0, .(y'''', .(y'''''', z''''''))))
msort(nil) -> nil
msort(.(x, y)) -> .(min(x, y), msort(del(min(x, y), .(x, y))))
min(x, nil) -> x
min(x, .(y, z)) -> if(<=(x, y), min(x, z), min(y, z))
del(x, nil) -> nil
del(x, .(y, z)) -> if(=(x, y), z, .(y, del(x, z)))
innermost
five new Dependency Pairs are created:
MIN(x, .(y0, .(y'', .(y'''', z'''')))) -> MIN(y0, .(y'', .(y'''', z'''')))
MIN(x, .(y0'', .(y''0, .(y''''0, .(y'''''', z''''''))))) -> MIN(y0'', .(y''0, .(y''''0, .(y'''''', z''''''))))
MIN(x, .(y0', .(y''', .(y''''0, .(y'''''', z''''''))))) -> MIN(y0', .(y''', .(y''''0, .(y'''''', z''''''))))
MIN(x, .(y0', .(y''', .(y''''0, .(y'''''', .(y'''''''', z'''''''')))))) -> MIN(y0', .(y''', .(y''''0, .(y'''''', .(y'''''''', z'''''''')))))
MIN(x, .(y0', .(y''', .(y'''''', .(y''0'''', .(y'''''''', z'''''''')))))) -> MIN(y0', .(y''', .(y'''''', .(y''0'''', .(y'''''''', z'''''''')))))
MIN(x, .(y0', .(y''', .(y'''''', .(y''0'''', .(y'''''''', .(y'''''''''', z''''''''''))))))) -> MIN(y0', .(y''', .(y'''''', .(y''0'''', .(y'''''''', .(y'''''''''', z''''''''''))))))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 4
↳FwdInst
...
→DP Problem 8
↳Argument Filtering and Ordering
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Rw
MIN(x, .(y0', .(y''', .(y'''''', .(y''0'''', .(y'''''''', .(y'''''''''', z''''''''''))))))) -> MIN(y0', .(y''', .(y'''''', .(y''0'''', .(y'''''''', .(y'''''''''', z''''''''''))))))
MIN(x, .(y0', .(y''', .(y'''''', .(y''0'''', .(y'''''''', z'''''''')))))) -> MIN(y0', .(y''', .(y'''''', .(y''0'''', .(y'''''''', z'''''''')))))
MIN(x, .(y0', .(y''', .(y''''0, .(y'''''', .(y'''''''', z'''''''')))))) -> MIN(y0', .(y''', .(y''''0, .(y'''''', .(y'''''''', z'''''''')))))
MIN(x, .(y0', .(y''', .(y''''0, .(y'''''', z''''''))))) -> MIN(y0', .(y''', .(y''''0, .(y'''''', z''''''))))
MIN(x, .(y0'', .(y''0, .(y''''0, .(y'''''', z''''''))))) -> MIN(y0'', .(y''0, .(y''''0, .(y'''''', z''''''))))
MIN(x, .(y0', .(y''', .(y''0'', .(y'''''', z''''''))))) -> MIN(y0', .(y''', .(y''0'', .(y'''''', z''''''))))
MIN(x, .(y0'', .(y''0, .(y'''', .(y'''''', z''''''))))) -> MIN(y0'', .(y''0, .(y'''', .(y'''''', z''''''))))
MIN(x, .(y0'', .(y''0, .(y'''', z'''')))) -> MIN(y0'', .(y''0, .(y'''', z'''')))
MIN(x''', .(y, .(y''0, .(y'''', .(y'''''', z''''''))))) -> MIN(x''', .(y''0, .(y'''', .(y'''''', z''''''))))
MIN(x''', .(y, .(y''0, .(y'''', z'''')))) -> MIN(x''', .(y''0, .(y'''', z'''')))
MIN(x'''', .(y, .(y''0, .(y'''', z'''')))) -> MIN(x'''', .(y''0, .(y'''', z'''')))
MIN(x, .(y0', .(y''', .(y''0'', .(y'''''', .(y'''''''', z'''''''')))))) -> MIN(y0', .(y''', .(y''0'', .(y'''''', .(y'''''''', z'''''''')))))
msort(nil) -> nil
msort(.(x, y)) -> .(min(x, y), msort(del(min(x, y), .(x, y))))
min(x, nil) -> x
min(x, .(y, z)) -> if(<=(x, y), min(x, z), min(y, z))
del(x, nil) -> nil
del(x, .(y, z)) -> if(=(x, y), z, .(y, del(x, z)))
innermost
MIN(x, .(y0', .(y''', .(y'''''', .(y''0'''', .(y'''''''', .(y'''''''''', z''''''''''))))))) -> MIN(y0', .(y''', .(y'''''', .(y''0'''', .(y'''''''', .(y'''''''''', z''''''''''))))))
MIN(x, .(y0', .(y''', .(y'''''', .(y''0'''', .(y'''''''', z'''''''')))))) -> MIN(y0', .(y''', .(y'''''', .(y''0'''', .(y'''''''', z'''''''')))))
MIN(x, .(y0', .(y''', .(y''''0, .(y'''''', .(y'''''''', z'''''''')))))) -> MIN(y0', .(y''', .(y''''0, .(y'''''', .(y'''''''', z'''''''')))))
MIN(x, .(y0', .(y''', .(y''''0, .(y'''''', z''''''))))) -> MIN(y0', .(y''', .(y''''0, .(y'''''', z''''''))))
MIN(x, .(y0'', .(y''0, .(y''''0, .(y'''''', z''''''))))) -> MIN(y0'', .(y''0, .(y''''0, .(y'''''', z''''''))))
MIN(x, .(y0', .(y''', .(y''0'', .(y'''''', z''''''))))) -> MIN(y0', .(y''', .(y''0'', .(y'''''', z''''''))))
MIN(x, .(y0'', .(y''0, .(y'''', .(y'''''', z''''''))))) -> MIN(y0'', .(y''0, .(y'''', .(y'''''', z''''''))))
MIN(x, .(y0'', .(y''0, .(y'''', z'''')))) -> MIN(y0'', .(y''0, .(y'''', z'''')))
MIN(x''', .(y, .(y''0, .(y'''', .(y'''''', z''''''))))) -> MIN(x''', .(y''0, .(y'''', .(y'''''', z''''''))))
MIN(x''', .(y, .(y''0, .(y'''', z'''')))) -> MIN(x''', .(y''0, .(y'''', z'''')))
MIN(x'''', .(y, .(y''0, .(y'''', z'''')))) -> MIN(x'''', .(y''0, .(y'''', z'''')))
MIN(x, .(y0', .(y''', .(y''0'', .(y'''''', .(y'''''''', z'''''''')))))) -> MIN(y0', .(y''', .(y''0'', .(y'''''', .(y'''''''', z'''''''')))))
{MIN, .}
MIN(x1, x2) -> MIN(x1, x2)
.(x1, x2) -> .(x1, x2)
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 4
↳FwdInst
...
→DP Problem 9
↳Dependency Graph
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Rw
msort(nil) -> nil
msort(.(x, y)) -> .(min(x, y), msort(del(min(x, y), .(x, y))))
min(x, nil) -> x
min(x, .(y, z)) -> if(<=(x, y), min(x, z), min(y, z))
del(x, nil) -> nil
del(x, .(y, z)) -> if(=(x, y), z, .(y, del(x, z)))
innermost
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳Forward Instantiation Transformation
→DP Problem 3
↳Rw
DEL(x, .(y, z)) -> DEL(x, z)
msort(nil) -> nil
msort(.(x, y)) -> .(min(x, y), msort(del(min(x, y), .(x, y))))
min(x, nil) -> x
min(x, .(y, z)) -> if(<=(x, y), min(x, z), min(y, z))
del(x, nil) -> nil
del(x, .(y, z)) -> if(=(x, y), z, .(y, del(x, z)))
innermost
one new Dependency Pair is created:
DEL(x, .(y, z)) -> DEL(x, z)
DEL(x'', .(y, .(y'', z''))) -> DEL(x'', .(y'', z''))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 10
↳Forward Instantiation Transformation
→DP Problem 3
↳Rw
DEL(x'', .(y, .(y'', z''))) -> DEL(x'', .(y'', z''))
msort(nil) -> nil
msort(.(x, y)) -> .(min(x, y), msort(del(min(x, y), .(x, y))))
min(x, nil) -> x
min(x, .(y, z)) -> if(<=(x, y), min(x, z), min(y, z))
del(x, nil) -> nil
del(x, .(y, z)) -> if(=(x, y), z, .(y, del(x, z)))
innermost
one new Dependency Pair is created:
DEL(x'', .(y, .(y'', z''))) -> DEL(x'', .(y'', z''))
DEL(x'''', .(y, .(y''0, .(y'''', z'''')))) -> DEL(x'''', .(y''0, .(y'''', z'''')))
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 10
↳FwdInst
...
→DP Problem 11
↳Argument Filtering and Ordering
→DP Problem 3
↳Rw
DEL(x'''', .(y, .(y''0, .(y'''', z'''')))) -> DEL(x'''', .(y''0, .(y'''', z'''')))
msort(nil) -> nil
msort(.(x, y)) -> .(min(x, y), msort(del(min(x, y), .(x, y))))
min(x, nil) -> x
min(x, .(y, z)) -> if(<=(x, y), min(x, z), min(y, z))
del(x, nil) -> nil
del(x, .(y, z)) -> if(=(x, y), z, .(y, del(x, z)))
innermost
DEL(x'''', .(y, .(y''0, .(y'''', z'''')))) -> DEL(x'''', .(y''0, .(y'''', z'''')))
trivial
DEL(x1, x2) -> DEL(x1, x2)
.(x1, x2) -> .(x1, x2)
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 10
↳FwdInst
...
→DP Problem 12
↳Dependency Graph
→DP Problem 3
↳Rw
msort(nil) -> nil
msort(.(x, y)) -> .(min(x, y), msort(del(min(x, y), .(x, y))))
min(x, nil) -> x
min(x, .(y, z)) -> if(<=(x, y), min(x, z), min(y, z))
del(x, nil) -> nil
del(x, .(y, z)) -> if(=(x, y), z, .(y, del(x, z)))
innermost
R
↳DPs
→DP Problem 1
↳FwdInst
→DP Problem 2
↳FwdInst
→DP Problem 3
↳Rewriting Transformation
MSORT(.(x, y)) -> MSORT(del(min(x, y), .(x, y)))
msort(nil) -> nil
msort(.(x, y)) -> .(min(x, y), msort(del(min(x, y), .(x, y))))
min(x, nil) -> x
min(x, .(y, z)) -> if(<=(x, y), min(x, z), min(y, z))
del(x, nil) -> nil
del(x, .(y, z)) -> if(=(x, y), z, .(y, del(x, z)))
innermost
one new Dependency Pair is created:
MSORT(.(x, y)) -> MSORT(del(min(x, y), .(x, y)))
MSORT(.(x, y)) -> MSORT(if(=(min(x, y), x), y, .(x, del(min(x, y), y))))