0 CpxRelTRS
↳1 RelTrsToWeightedTrsProof (BOTH BOUNDS(ID, ID), 0 ms)
↳2 CpxWeightedTrs
↳3 TypeInferenceProof (BOTH BOUNDS(ID, ID), 0 ms)
↳4 CpxTypedWeightedTrs
↳5 CompletionProof (UPPER BOUND(ID), 0 ms)
↳6 CpxTypedWeightedCompleteTrs
↳7 NarrowingProof (BOTH BOUNDS(ID, ID), 35 ms)
↳8 CpxTypedWeightedCompleteTrs
↳9 CpxTypedWeightedTrsToRntsProof (UPPER BOUND(ID), 21 ms)
↳10 CpxRNTS
↳11 InliningProof (UPPER BOUND(ID), 784 ms)
↳12 CpxRNTS
↳13 SimplificationProof (BOTH BOUNDS(ID, ID), 6 ms)
↳14 CpxRNTS
↳15 CpxRntsAnalysisOrderProof (BOTH BOUNDS(ID, ID), 0 ms)
↳16 CpxRNTS
↳17 IntTrsBoundProof (UPPER BOUND(ID), 1104 ms)
↳18 CpxRNTS
↳19 IntTrsBoundProof (UPPER BOUND(ID), 204 ms)
↳20 CpxRNTS
↳21 ResultPropagationProof (UPPER BOUND(ID), 6 ms)
↳22 CpxRNTS
↳23 IntTrsBoundProof (UPPER BOUND(ID), 204 ms)
↳24 CpxRNTS
↳25 IntTrsBoundProof (UPPER BOUND(ID), 37 ms)
↳26 CpxRNTS
↳27 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳28 CpxRNTS
↳29 IntTrsBoundProof (UPPER BOUND(ID), 219 ms)
↳30 CpxRNTS
↳31 IntTrsBoundProof (UPPER BOUND(ID), 53 ms)
↳32 CpxRNTS
↳33 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳34 CpxRNTS
↳35 IntTrsBoundProof (UPPER BOUND(ID), 905 ms)
↳36 CpxRNTS
↳37 IntTrsBoundProof (UPPER BOUND(ID), 29 ms)
↳38 CpxRNTS
↳39 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳40 CpxRNTS
↳41 IntTrsBoundProof (UPPER BOUND(ID), 1665 ms)
↳42 CpxRNTS
↳43 IntTrsBoundProof (UPPER BOUND(ID), 446 ms)
↳44 CpxRNTS
↳45 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳46 CpxRNTS
↳47 IntTrsBoundProof (UPPER BOUND(ID), 1847 ms)
↳48 CpxRNTS
↳49 IntTrsBoundProof (UPPER BOUND(ID), 683 ms)
↳50 CpxRNTS
↳51 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳52 CpxRNTS
↳53 IntTrsBoundProof (UPPER BOUND(ID), 712 ms)
↳54 CpxRNTS
↳55 IntTrsBoundProof (UPPER BOUND(ID), 49 ms)
↳56 CpxRNTS
↳57 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳58 CpxRNTS
↳59 IntTrsBoundProof (UPPER BOUND(ID), 183 ms)
↳60 CpxRNTS
↳61 IntTrsBoundProof (UPPER BOUND(ID), 84 ms)
↳62 CpxRNTS
↳63 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳64 CpxRNTS
↳65 IntTrsBoundProof (UPPER BOUND(ID), 212 ms)
↳66 CpxRNTS
↳67 IntTrsBoundProof (UPPER BOUND(ID), 84 ms)
↳68 CpxRNTS
↳69 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳70 CpxRNTS
↳71 IntTrsBoundProof (UPPER BOUND(ID), 91 ms)
↳72 CpxRNTS
↳73 IntTrsBoundProof (UPPER BOUND(ID), 25 ms)
↳74 CpxRNTS
↳75 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳76 CpxRNTS
↳77 IntTrsBoundProof (UPPER BOUND(ID), 178 ms)
↳78 CpxRNTS
↳79 IntTrsBoundProof (UPPER BOUND(ID), 2 ms)
↳80 CpxRNTS
↳81 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳82 CpxRNTS
↳83 IntTrsBoundProof (UPPER BOUND(ID), 342 ms)
↳84 CpxRNTS
↳85 IntTrsBoundProof (UPPER BOUND(ID), 73 ms)
↳86 CpxRNTS
↳87 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳88 CpxRNTS
↳89 IntTrsBoundProof (UPPER BOUND(ID), 365 ms)
↳90 CpxRNTS
↳91 IntTrsBoundProof (UPPER BOUND(ID), 72 ms)
↳92 CpxRNTS
↳93 FinalProof (⇔, 0 ms)
↳94 BOUNDS(1, n^2)
#abs(#0) → #0
#abs(#neg(@x)) → #pos(@x)
#abs(#pos(@x)) → #pos(@x)
#abs(#s(@x)) → #pos(#s(@x))
#less(@x, @y) → #cklt(#compare(@x, @y))
insert(@x, @l) → insert#1(@l, @x)
insert#1(::(@y, @ys), @x) → insert#2(#less(@y, @x), @x, @y, @ys)
insert#1(nil, @x) → ::(@x, nil)
insert#2(#false, @x, @y, @ys) → ::(@x, ::(@y, @ys))
insert#2(#true, @x, @y, @ys) → ::(@y, insert(@x, @ys))
insertD(@x, @l) → insertD#1(@l, @x)
insertD#1(::(@y, @ys), @x) → insertD#2(#less(@y, @x), @x, @y, @ys)
insertD#1(nil, @x) → ::(@x, nil)
insertD#2(#false, @x, @y, @ys) → ::(@x, ::(@y, @ys))
insertD#2(#true, @x, @y, @ys) → ::(@y, insertD(@x, @ys))
insertionsort(@l) → insertionsort#1(@l)
insertionsort#1(::(@x, @xs)) → insert(@x, insertionsort(@xs))
insertionsort#1(nil) → nil
insertionsortD(@l) → insertionsortD#1(@l)
insertionsortD#1(::(@x, @xs)) → insertD(@x, insertionsortD(@xs))
insertionsortD#1(nil) → nil
testInsertionsort(@x) → insertionsort(testList(#unit))
testInsertionsortD(@x) → insertionsortD(testList(#unit))
testList(@_) → ::(#abs(#0), ::(#abs(#pos(#s(#s(#s(#s(#0)))))), ::(#abs(#pos(#s(#s(#s(#s(#s(#0))))))), ::(#abs(#pos(#s(#s(#s(#s(#s(#s(#s(#s(#s(#0))))))))))), ::(#abs(#pos(#s(#s(#s(#s(#s(#s(#s(#0))))))))), ::(#abs(#pos(#s(#0))), ::(#abs(#pos(#s(#s(#0)))), ::(#abs(#pos(#s(#s(#s(#s(#s(#s(#s(#s(#0)))))))))), ::(#abs(#pos(#s(#s(#s(#s(#s(#s(#0)))))))), ::(#abs(#pos(#s(#s(#s(#0))))), nil))))))))))
#cklt(#EQ) → #false
#cklt(#GT) → #false
#cklt(#LT) → #true
#compare(#0, #0) → #EQ
#compare(#0, #neg(@y)) → #GT
#compare(#0, #pos(@y)) → #LT
#compare(#0, #s(@y)) → #LT
#compare(#neg(@x), #0) → #LT
#compare(#neg(@x), #neg(@y)) → #compare(@y, @x)
#compare(#neg(@x), #pos(@y)) → #LT
#compare(#pos(@x), #0) → #GT
#compare(#pos(@x), #neg(@y)) → #GT
#compare(#pos(@x), #pos(@y)) → #compare(@x, @y)
#compare(#s(@x), #0) → #GT
#compare(#s(@x), #s(@y)) → #compare(@x, @y)
#abs(#0) → #0 [1]
#abs(#neg(@x)) → #pos(@x) [1]
#abs(#pos(@x)) → #pos(@x) [1]
#abs(#s(@x)) → #pos(#s(@x)) [1]
#less(@x, @y) → #cklt(#compare(@x, @y)) [1]
insert(@x, @l) → insert#1(@l, @x) [1]
insert#1(::(@y, @ys), @x) → insert#2(#less(@y, @x), @x, @y, @ys) [1]
insert#1(nil, @x) → ::(@x, nil) [1]
insert#2(#false, @x, @y, @ys) → ::(@x, ::(@y, @ys)) [1]
insert#2(#true, @x, @y, @ys) → ::(@y, insert(@x, @ys)) [1]
insertD(@x, @l) → insertD#1(@l, @x) [1]
insertD#1(::(@y, @ys), @x) → insertD#2(#less(@y, @x), @x, @y, @ys) [1]
insertD#1(nil, @x) → ::(@x, nil) [1]
insertD#2(#false, @x, @y, @ys) → ::(@x, ::(@y, @ys)) [1]
insertD#2(#true, @x, @y, @ys) → ::(@y, insertD(@x, @ys)) [1]
insertionsort(@l) → insertionsort#1(@l) [1]
insertionsort#1(::(@x, @xs)) → insert(@x, insertionsort(@xs)) [1]
insertionsort#1(nil) → nil [1]
insertionsortD(@l) → insertionsortD#1(@l) [1]
insertionsortD#1(::(@x, @xs)) → insertD(@x, insertionsortD(@xs)) [1]
insertionsortD#1(nil) → nil [1]
testInsertionsort(@x) → insertionsort(testList(#unit)) [1]
testInsertionsortD(@x) → insertionsortD(testList(#unit)) [1]
testList(@_) → ::(#abs(#0), ::(#abs(#pos(#s(#s(#s(#s(#0)))))), ::(#abs(#pos(#s(#s(#s(#s(#s(#0))))))), ::(#abs(#pos(#s(#s(#s(#s(#s(#s(#s(#s(#s(#0))))))))))), ::(#abs(#pos(#s(#s(#s(#s(#s(#s(#s(#0))))))))), ::(#abs(#pos(#s(#0))), ::(#abs(#pos(#s(#s(#0)))), ::(#abs(#pos(#s(#s(#s(#s(#s(#s(#s(#s(#0)))))))))), ::(#abs(#pos(#s(#s(#s(#s(#s(#s(#0)))))))), ::(#abs(#pos(#s(#s(#s(#0))))), nil)))))))))) [1]
#cklt(#EQ) → #false [0]
#cklt(#GT) → #false [0]
#cklt(#LT) → #true [0]
#compare(#0, #0) → #EQ [0]
#compare(#0, #neg(@y)) → #GT [0]
#compare(#0, #pos(@y)) → #LT [0]
#compare(#0, #s(@y)) → #LT [0]
#compare(#neg(@x), #0) → #LT [0]
#compare(#neg(@x), #neg(@y)) → #compare(@y, @x) [0]
#compare(#neg(@x), #pos(@y)) → #LT [0]
#compare(#pos(@x), #0) → #GT [0]
#compare(#pos(@x), #neg(@y)) → #GT [0]
#compare(#pos(@x), #pos(@y)) → #compare(@x, @y) [0]
#compare(#s(@x), #0) → #GT [0]
#compare(#s(@x), #s(@y)) → #compare(@x, @y) [0]
#abs(#0) → #0 [1]
#abs(#neg(@x)) → #pos(@x) [1]
#abs(#pos(@x)) → #pos(@x) [1]
#abs(#s(@x)) → #pos(#s(@x)) [1]
#less(@x, @y) → #cklt(#compare(@x, @y)) [1]
insert(@x, @l) → insert#1(@l, @x) [1]
insert#1(::(@y, @ys), @x) → insert#2(#less(@y, @x), @x, @y, @ys) [1]
insert#1(nil, @x) → ::(@x, nil) [1]
insert#2(#false, @x, @y, @ys) → ::(@x, ::(@y, @ys)) [1]
insert#2(#true, @x, @y, @ys) → ::(@y, insert(@x, @ys)) [1]
insertD(@x, @l) → insertD#1(@l, @x) [1]
insertD#1(::(@y, @ys), @x) → insertD#2(#less(@y, @x), @x, @y, @ys) [1]
insertD#1(nil, @x) → ::(@x, nil) [1]
insertD#2(#false, @x, @y, @ys) → ::(@x, ::(@y, @ys)) [1]
insertD#2(#true, @x, @y, @ys) → ::(@y, insertD(@x, @ys)) [1]
insertionsort(@l) → insertionsort#1(@l) [1]
insertionsort#1(::(@x, @xs)) → insert(@x, insertionsort(@xs)) [1]
insertionsort#1(nil) → nil [1]
insertionsortD(@l) → insertionsortD#1(@l) [1]
insertionsortD#1(::(@x, @xs)) → insertD(@x, insertionsortD(@xs)) [1]
insertionsortD#1(nil) → nil [1]
testInsertionsort(@x) → insertionsort(testList(#unit)) [1]
testInsertionsortD(@x) → insertionsortD(testList(#unit)) [1]
testList(@_) → ::(#abs(#0), ::(#abs(#pos(#s(#s(#s(#s(#0)))))), ::(#abs(#pos(#s(#s(#s(#s(#s(#0))))))), ::(#abs(#pos(#s(#s(#s(#s(#s(#s(#s(#s(#s(#0))))))))))), ::(#abs(#pos(#s(#s(#s(#s(#s(#s(#s(#0))))))))), ::(#abs(#pos(#s(#0))), ::(#abs(#pos(#s(#s(#0)))), ::(#abs(#pos(#s(#s(#s(#s(#s(#s(#s(#s(#0)))))))))), ::(#abs(#pos(#s(#s(#s(#s(#s(#s(#0)))))))), ::(#abs(#pos(#s(#s(#s(#0))))), nil)))))))))) [1]
#cklt(#EQ) → #false [0]
#cklt(#GT) → #false [0]
#cklt(#LT) → #true [0]
#compare(#0, #0) → #EQ [0]
#compare(#0, #neg(@y)) → #GT [0]
#compare(#0, #pos(@y)) → #LT [0]
#compare(#0, #s(@y)) → #LT [0]
#compare(#neg(@x), #0) → #LT [0]
#compare(#neg(@x), #neg(@y)) → #compare(@y, @x) [0]
#compare(#neg(@x), #pos(@y)) → #LT [0]
#compare(#pos(@x), #0) → #GT [0]
#compare(#pos(@x), #neg(@y)) → #GT [0]
#compare(#pos(@x), #pos(@y)) → #compare(@x, @y) [0]
#compare(#s(@x), #0) → #GT [0]
#compare(#s(@x), #s(@y)) → #compare(@x, @y) [0]
#abs :: #0:#neg:#pos:#s → #0:#neg:#pos:#s #0 :: #0:#neg:#pos:#s #neg :: #0:#neg:#pos:#s → #0:#neg:#pos:#s #pos :: #0:#neg:#pos:#s → #0:#neg:#pos:#s #s :: #0:#neg:#pos:#s → #0:#neg:#pos:#s #less :: #0:#neg:#pos:#s → #0:#neg:#pos:#s → #false:#true #cklt :: #EQ:#GT:#LT → #false:#true #compare :: #0:#neg:#pos:#s → #0:#neg:#pos:#s → #EQ:#GT:#LT insert :: #0:#neg:#pos:#s → :::nil → :::nil insert#1 :: :::nil → #0:#neg:#pos:#s → :::nil :: :: #0:#neg:#pos:#s → :::nil → :::nil insert#2 :: #false:#true → #0:#neg:#pos:#s → #0:#neg:#pos:#s → :::nil → :::nil nil :: :::nil #false :: #false:#true #true :: #false:#true insertD :: #0:#neg:#pos:#s → :::nil → :::nil insertD#1 :: :::nil → #0:#neg:#pos:#s → :::nil insertD#2 :: #false:#true → #0:#neg:#pos:#s → #0:#neg:#pos:#s → :::nil → :::nil insertionsort :: :::nil → :::nil insertionsort#1 :: :::nil → :::nil insertionsortD :: :::nil → :::nil insertionsortD#1 :: :::nil → :::nil testInsertionsort :: a → :::nil testList :: #unit → :::nil #unit :: #unit testInsertionsortD :: b → :::nil #EQ :: #EQ:#GT:#LT #GT :: #EQ:#GT:#LT #LT :: #EQ:#GT:#LT |
(a) The obligation is a constructor system where every type has a constant constructor,
(b) The following defined symbols do not have to be completely defined, as they can never occur inside other defined symbols:
testInsertionsort
testInsertionsortD
insertionsortD
insertionsort
#less
testList
#abs
insertionsortD#1
insertionsort#1
insertD
insert
insertD#1
insertD#2
insert#1
insert#2
#cklt
#compare
#cklt(v0) → null_#cklt [0]
#compare(v0, v1) → null_#compare [0]
insertD#2(v0, v1, v2, v3) → nil [0]
insert#2(v0, v1, v2, v3) → nil [0]
null_#cklt, null_#compare, const, const1
Runtime Complexity Weighted TRS with Types. The TRS R consists of the following rules:
The TRS has the following type information:
Rewrite Strategy: INNERMOST |
Runtime Complexity Weighted TRS with Types. The TRS R consists of the following rules:
The TRS has the following type information:
Rewrite Strategy: INNERMOST |
#0 => 0
nil => 0
#false => 1
#true => 2
#unit => 0
#EQ => 1
#GT => 2
#LT => 3
null_#cklt => 0
null_#compare => 0
const => 0
const1 => 0
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + @x :|: @x >= 0, z = 1 + @x
#abs(z) -{ 1 }→ 1 + (1 + @x) :|: @x >= 0, z = 1 + @x
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: v0 >= 0, z = v0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' = 1 + @y, @y >= 0
#compare(z, z') -{ 0 }→ 3 :|: @x >= 0, z = 1 + @x, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: @x >= 0, z = 1 + @x, z' = 1 + @y, @y >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' = 1 + @y, @y >= 0
#compare(z, z') -{ 0 }→ 2 :|: @x >= 0, z = 1 + @x, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: @x >= 0, z = 1 + @x, z' = 1 + @y, @y >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: v0 >= 0, v1 >= 0, z = v0, z' = v1
#compare(z, z') -{ 0 }→ #compare(@x, @y) :|: @x >= 0, z = 1 + @x, z' = 1 + @y, @y >= 0
#compare(z, z') -{ 0 }→ #compare(@y, @x) :|: @x >= 0, z = 1 + @x, z' = 1 + @y, @y >= 0
#less(z, z') -{ 1 }→ #cklt(3) :|: z' = 1 + @y'', @y'' >= 0, z = 0
#less(z, z') -{ 1 }→ #cklt(3) :|: z' = 1 + @y1, @y1 >= 0, z = 0
#less(z, z') -{ 1 }→ #cklt(3) :|: z = 1 + @x', @x' >= 0, z' = 0
#less(z, z') -{ 1 }→ #cklt(3) :|: @y3 >= 0, @x1 >= 0, z' = 1 + @y3, z = 1 + @x1
#less(z, z') -{ 1 }→ #cklt(2) :|: @y' >= 0, z' = 1 + @y', z = 0
#less(z, z') -{ 1 }→ #cklt(2) :|: @x2 >= 0, z = 1 + @x2, z' = 0
#less(z, z') -{ 1 }→ #cklt(2) :|: @x3 >= 0, z' = 1 + @y4, z = 1 + @x3, @y4 >= 0
#less(z, z') -{ 1 }→ #cklt(2) :|: z = 1 + @x5, @x5 >= 0, z' = 0
#less(z, z') -{ 1 }→ #cklt(1) :|: z = 0, z' = 0
#less(z, z') -{ 1 }→ #cklt(0) :|: z = @x, @x >= 0, z' = @y, @y >= 0
#less(z, z') -{ 1 }→ #cklt(#compare(@x4, @y5)) :|: z' = 1 + @y5, @y5 >= 0, z = 1 + @x4, @x4 >= 0
#less(z, z') -{ 1 }→ #cklt(#compare(@x6, @y6)) :|: z = 1 + @x6, z' = 1 + @y6, @x6 >= 0, @y6 >= 0
#less(z, z') -{ 1 }→ #cklt(#compare(@y2, @x'')) :|: z = 1 + @x'', z' = 1 + @y2, @y2 >= 0, @x'' >= 0
insert(z, z') -{ 1 }→ insert#1(@l, @x) :|: z = @x, @l >= 0, @x >= 0, z' = @l
insert#1(z, z') -{ 2 }→ insert#2(#cklt(#compare(@y, @x)), @x, @y, @ys) :|: z = 1 + @y + @ys, @x >= 0, @y >= 0, z' = @x, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + @x + 0 :|: @x >= 0, z = 0, z' = @x
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z1 = v3, v0 >= 0, z'' = v2, v1 >= 0, z = v0, z' = v1, v2 >= 0, v3 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + @x + (1 + @y + @ys) :|: @x >= 0, z = 1, z1 = @ys, @y >= 0, z' = @x, @ys >= 0, z'' = @y
insert#2(z, z', z'', z1) -{ 1 }→ 1 + @y + insert(@x, @ys) :|: z = 2, @x >= 0, z1 = @ys, @y >= 0, z' = @x, @ys >= 0, z'' = @y
insertD(z, z') -{ 1 }→ insertD#1(@l, @x) :|: z = @x, @l >= 0, @x >= 0, z' = @l
insertD#1(z, z') -{ 2 }→ insertD#2(#cklt(#compare(@y, @x)), @x, @y, @ys) :|: z = 1 + @y + @ys, @x >= 0, @y >= 0, z' = @x, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + @x + 0 :|: @x >= 0, z = 0, z' = @x
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z1 = v3, v0 >= 0, z'' = v2, v1 >= 0, z = v0, z' = v1, v2 >= 0, v3 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + @x + (1 + @y + @ys) :|: @x >= 0, z = 1, z1 = @ys, @y >= 0, z' = @x, @ys >= 0, z'' = @y
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + @y + insertD(@x, @ys) :|: z = 2, @x >= 0, z1 = @ys, @y >= 0, z' = @x, @ys >= 0, z'' = @y
insertionsort(z) -{ 1 }→ insertionsort#1(@l) :|: z = @l, @l >= 0
insertionsort#1(z) -{ 2 }→ insert(@x, insertionsort#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 1 }→ insertionsortD#1(@l) :|: z = @l, @l >= 0
insertionsortD#1(z) -{ 2 }→ insertD(@x, insertionsortD#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 2 }→ insertionsort(1 + #abs(0) + (1 + #abs(1 + (1 + (1 + (1 + (1 + 0))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + (1 + #abs(1 + (1 + 0)) + (1 + #abs(1 + (1 + (1 + 0))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + (1 + #abs(1 + (1 + (1 + (1 + 0)))) + 0)))))))))) :|: z = @x, @x >= 0
testInsertionsortD(z) -{ 2 }→ insertionsortD(1 + #abs(0) + (1 + #abs(1 + (1 + (1 + (1 + (1 + 0))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + (1 + #abs(1 + (1 + 0)) + (1 + #abs(1 + (1 + (1 + 0))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + (1 + #abs(1 + (1 + (1 + (1 + 0)))) + 0)))))))))) :|: z = @x, @x >= 0
testList(z) -{ 1 }→ 1 + #abs(0) + (1 + #abs(1 + (1 + (1 + (1 + (1 + 0))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + (1 + #abs(1 + (1 + 0)) + (1 + #abs(1 + (1 + (1 + 0))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + (1 + #abs(1 + (1 + (1 + (1 + 0)))) + 0))))))))) :|: @_ >= 0, z = @_
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 0 :|: v0 >= 0, z = v0
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + @x :|: @x >= 0, z = 1 + @x
#abs(z) -{ 1 }→ 1 + (1 + @x) :|: @x >= 0, z = 1 + @x
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: v0 >= 0, z = v0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' = 1 + @y, @y >= 0
#compare(z, z') -{ 0 }→ 3 :|: @x >= 0, z = 1 + @x, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: @x >= 0, z = 1 + @x, z' = 1 + @y, @y >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' = 1 + @y, @y >= 0
#compare(z, z') -{ 0 }→ 2 :|: @x >= 0, z = 1 + @x, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: @x >= 0, z = 1 + @x, z' = 1 + @y, @y >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: v0 >= 0, v1 >= 0, z = v0, z' = v1
#compare(z, z') -{ 0 }→ #compare(@x, @y) :|: @x >= 0, z = 1 + @x, z' = 1 + @y, @y >= 0
#compare(z, z') -{ 0 }→ #compare(@y, @x) :|: @x >= 0, z = 1 + @x, z' = 1 + @y, @y >= 0
#less(z, z') -{ 1 }→ 2 :|: z' = 1 + @y'', @y'' >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' = 1 + @y1, @y1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z = 1 + @x', @x' >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: @y3 >= 0, @x1 >= 0, z' = 1 + @y3, z = 1 + @x1, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: @y' >= 0, z' = 1 + @y', z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: @x2 >= 0, z = 1 + @x2, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: @x3 >= 0, z' = 1 + @y4, z = 1 + @x3, @y4 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z = 1 + @x5, @x5 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: @y' >= 0, z' = 1 + @y', z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' = 1 + @y'', @y'' >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' = 1 + @y1, @y1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z = 1 + @x', @x' >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: @y3 >= 0, @x1 >= 0, z' = 1 + @y3, z = 1 + @x1, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: @x2 >= 0, z = 1 + @x2, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: @x3 >= 0, z' = 1 + @y4, z = 1 + @x3, @y4 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z = 1 + @x5, @x5 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z = @x, @x >= 0, z' = @y, @y >= 0, v0 >= 0, 0 = v0
#less(z, z') -{ 1 }→ #cklt(#compare(@x4, @y5)) :|: z' = 1 + @y5, @y5 >= 0, z = 1 + @x4, @x4 >= 0
#less(z, z') -{ 1 }→ #cklt(#compare(@x6, @y6)) :|: z = 1 + @x6, z' = 1 + @y6, @x6 >= 0, @y6 >= 0
#less(z, z') -{ 1 }→ #cklt(#compare(@y2, @x'')) :|: z = 1 + @x'', z' = 1 + @y2, @y2 >= 0, @x'' >= 0
insert(z, z') -{ 1 }→ insert#1(@l, @x) :|: z = @x, @l >= 0, @x >= 0, z' = @l
insert#1(z, z') -{ 2 }→ insert#2(#cklt(#compare(@y, @x)), @x, @y, @ys) :|: z = 1 + @y + @ys, @x >= 0, @y >= 0, z' = @x, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + @x + 0 :|: @x >= 0, z = 0, z' = @x
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z1 = v3, v0 >= 0, z'' = v2, v1 >= 0, z = v0, z' = v1, v2 >= 0, v3 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + @x + (1 + @y + @ys) :|: @x >= 0, z = 1, z1 = @ys, @y >= 0, z' = @x, @ys >= 0, z'' = @y
insert#2(z, z', z'', z1) -{ 1 }→ 1 + @y + insert(@x, @ys) :|: z = 2, @x >= 0, z1 = @ys, @y >= 0, z' = @x, @ys >= 0, z'' = @y
insertD(z, z') -{ 1 }→ insertD#1(@l, @x) :|: z = @x, @l >= 0, @x >= 0, z' = @l
insertD#1(z, z') -{ 2 }→ insertD#2(#cklt(#compare(@y, @x)), @x, @y, @ys) :|: z = 1 + @y + @ys, @x >= 0, @y >= 0, z' = @x, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + @x + 0 :|: @x >= 0, z = 0, z' = @x
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z1 = v3, v0 >= 0, z'' = v2, v1 >= 0, z = v0, z' = v1, v2 >= 0, v3 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + @x + (1 + @y + @ys) :|: @x >= 0, z = 1, z1 = @ys, @y >= 0, z' = @x, @ys >= 0, z'' = @y
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + @y + insertD(@x, @ys) :|: z = 2, @x >= 0, z1 = @ys, @y >= 0, z' = @x, @ys >= 0, z'' = @y
insertionsort(z) -{ 1 }→ insertionsort#1(@l) :|: z = @l, @l >= 0
insertionsort#1(z) -{ 2 }→ insert(@x, insertionsort#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 1 }→ insertionsortD#1(@l) :|: z = @l, @l >= 0
insertionsortD#1(z) -{ 2 }→ insertD(@x, insertionsortD#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 2 }→ insertionsort(1 + #abs(0) + (1 + #abs(1 + (1 + (1 + (1 + (1 + 0))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + (1 + #abs(1 + (1 + 0)) + (1 + #abs(1 + (1 + (1 + 0))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + (1 + #abs(1 + (1 + (1 + (1 + 0)))) + 0)))))))))) :|: z = @x, @x >= 0
testInsertionsortD(z) -{ 2 }→ insertionsortD(1 + #abs(0) + (1 + #abs(1 + (1 + (1 + (1 + (1 + 0))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + (1 + #abs(1 + (1 + 0)) + (1 + #abs(1 + (1 + (1 + 0))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + (1 + #abs(1 + (1 + (1 + (1 + 0)))) + 0)))))))))) :|: z = @x, @x >= 0
testList(z) -{ 1 }→ 1 + #abs(0) + (1 + #abs(1 + (1 + (1 + (1 + (1 + 0))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + (1 + #abs(1 + (1 + 0)) + (1 + #abs(1 + (1 + (1 + 0))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + (1 + #abs(1 + (1 + (1 + (1 + 0)))) + 0))))))))) :|: @_ >= 0, z = @_
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#compare(z, z') -{ 0 }→ #compare(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ #compare(z' - 1, z - 1) :|: z - 1 >= 0, z' - 1 >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
#less(z, z') -{ 1 }→ #cklt(#compare(z - 1, z' - 1)) :|: z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ #cklt(#compare(z' - 1, z - 1)) :|: z' - 1 >= 0, z - 1 >= 0
insert(z, z') -{ 1 }→ insert#1(z', z) :|: z' >= 0, z >= 0
insert#1(z, z') -{ 2 }→ insert#2(#cklt(#compare(@y, z')), z', @y, @ys) :|: z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z'' + insert(z', z1) :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 1 }→ insertD#1(z', z) :|: z' >= 0, z >= 0
insertD#1(z, z') -{ 2 }→ insertD#2(#cklt(#compare(@y, z')), z', @y, @ys) :|: z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z'' + insertD(z', z1) :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 1 }→ insertionsort#1(z) :|: z >= 0
insertionsort#1(z) -{ 2 }→ insert(@x, insertionsort#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 1 }→ insertionsortD#1(z) :|: z >= 0
insertionsortD#1(z) -{ 2 }→ insertD(@x, insertionsortD#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 2 }→ insertionsort(1 + #abs(0) + (1 + #abs(1 + (1 + (1 + (1 + (1 + 0))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + (1 + #abs(1 + (1 + 0)) + (1 + #abs(1 + (1 + (1 + 0))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + (1 + #abs(1 + (1 + (1 + (1 + 0)))) + 0)))))))))) :|: z >= 0
testInsertionsortD(z) -{ 2 }→ insertionsortD(1 + #abs(0) + (1 + #abs(1 + (1 + (1 + (1 + (1 + 0))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + (1 + #abs(1 + (1 + 0)) + (1 + #abs(1 + (1 + (1 + 0))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + (1 + #abs(1 + (1 + (1 + (1 + 0)))) + 0)))))))))) :|: z >= 0
testList(z) -{ 1 }→ 1 + #abs(0) + (1 + #abs(1 + (1 + (1 + (1 + (1 + 0))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + (1 + #abs(1 + (1 + 0)) + (1 + #abs(1 + (1 + (1 + 0))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + (1 + #abs(1 + (1 + (1 + (1 + 0)))) + 0))))))))) :|: z >= 0
{ #compare } { #cklt } { #abs } { #less } { insertD#2, insertD#1, insertD } { insert#2, insert, insert#1 } { testList } { insertionsortD#1 } { insertionsort#1 } { insertionsortD } { insertionsort } { testInsertionsortD } { testInsertionsort } |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#compare(z, z') -{ 0 }→ #compare(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ #compare(z' - 1, z - 1) :|: z - 1 >= 0, z' - 1 >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
#less(z, z') -{ 1 }→ #cklt(#compare(z - 1, z' - 1)) :|: z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ #cklt(#compare(z' - 1, z - 1)) :|: z' - 1 >= 0, z - 1 >= 0
insert(z, z') -{ 1 }→ insert#1(z', z) :|: z' >= 0, z >= 0
insert#1(z, z') -{ 2 }→ insert#2(#cklt(#compare(@y, z')), z', @y, @ys) :|: z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z'' + insert(z', z1) :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 1 }→ insertD#1(z', z) :|: z' >= 0, z >= 0
insertD#1(z, z') -{ 2 }→ insertD#2(#cklt(#compare(@y, z')), z', @y, @ys) :|: z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z'' + insertD(z', z1) :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 1 }→ insertionsort#1(z) :|: z >= 0
insertionsort#1(z) -{ 2 }→ insert(@x, insertionsort#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 1 }→ insertionsortD#1(z) :|: z >= 0
insertionsortD#1(z) -{ 2 }→ insertD(@x, insertionsortD#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 2 }→ insertionsort(1 + #abs(0) + (1 + #abs(1 + (1 + (1 + (1 + (1 + 0))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + (1 + #abs(1 + (1 + 0)) + (1 + #abs(1 + (1 + (1 + 0))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + (1 + #abs(1 + (1 + (1 + (1 + 0)))) + 0)))))))))) :|: z >= 0
testInsertionsortD(z) -{ 2 }→ insertionsortD(1 + #abs(0) + (1 + #abs(1 + (1 + (1 + (1 + (1 + 0))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + (1 + #abs(1 + (1 + 0)) + (1 + #abs(1 + (1 + (1 + 0))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + (1 + #abs(1 + (1 + (1 + (1 + 0)))) + 0)))))))))) :|: z >= 0
testList(z) -{ 1 }→ 1 + #abs(0) + (1 + #abs(1 + (1 + (1 + (1 + (1 + 0))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + (1 + #abs(1 + (1 + 0)) + (1 + #abs(1 + (1 + (1 + 0))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + (1 + #abs(1 + (1 + (1 + (1 + 0)))) + 0))))))))) :|: z >= 0
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#compare(z, z') -{ 0 }→ #compare(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ #compare(z' - 1, z - 1) :|: z - 1 >= 0, z' - 1 >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
#less(z, z') -{ 1 }→ #cklt(#compare(z - 1, z' - 1)) :|: z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ #cklt(#compare(z' - 1, z - 1)) :|: z' - 1 >= 0, z - 1 >= 0
insert(z, z') -{ 1 }→ insert#1(z', z) :|: z' >= 0, z >= 0
insert#1(z, z') -{ 2 }→ insert#2(#cklt(#compare(@y, z')), z', @y, @ys) :|: z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z'' + insert(z', z1) :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 1 }→ insertD#1(z', z) :|: z' >= 0, z >= 0
insertD#1(z, z') -{ 2 }→ insertD#2(#cklt(#compare(@y, z')), z', @y, @ys) :|: z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z'' + insertD(z', z1) :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 1 }→ insertionsort#1(z) :|: z >= 0
insertionsort#1(z) -{ 2 }→ insert(@x, insertionsort#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 1 }→ insertionsortD#1(z) :|: z >= 0
insertionsortD#1(z) -{ 2 }→ insertD(@x, insertionsortD#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 2 }→ insertionsort(1 + #abs(0) + (1 + #abs(1 + (1 + (1 + (1 + (1 + 0))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + (1 + #abs(1 + (1 + 0)) + (1 + #abs(1 + (1 + (1 + 0))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + (1 + #abs(1 + (1 + (1 + (1 + 0)))) + 0)))))))))) :|: z >= 0
testInsertionsortD(z) -{ 2 }→ insertionsortD(1 + #abs(0) + (1 + #abs(1 + (1 + (1 + (1 + (1 + 0))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + (1 + #abs(1 + (1 + 0)) + (1 + #abs(1 + (1 + (1 + 0))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + (1 + #abs(1 + (1 + (1 + (1 + 0)))) + 0)))))))))) :|: z >= 0
testList(z) -{ 1 }→ 1 + #abs(0) + (1 + #abs(1 + (1 + (1 + (1 + (1 + 0))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + (1 + #abs(1 + (1 + 0)) + (1 + #abs(1 + (1 + (1 + 0))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + (1 + #abs(1 + (1 + (1 + (1 + 0)))) + 0))))))))) :|: z >= 0
#compare: runtime: ?, size: O(1) [3] |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#compare(z, z') -{ 0 }→ #compare(z - 1, z' - 1) :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ #compare(z' - 1, z - 1) :|: z - 1 >= 0, z' - 1 >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
#less(z, z') -{ 1 }→ #cklt(#compare(z - 1, z' - 1)) :|: z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ #cklt(#compare(z' - 1, z - 1)) :|: z' - 1 >= 0, z - 1 >= 0
insert(z, z') -{ 1 }→ insert#1(z', z) :|: z' >= 0, z >= 0
insert#1(z, z') -{ 2 }→ insert#2(#cklt(#compare(@y, z')), z', @y, @ys) :|: z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z'' + insert(z', z1) :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 1 }→ insertD#1(z', z) :|: z' >= 0, z >= 0
insertD#1(z, z') -{ 2 }→ insertD#2(#cklt(#compare(@y, z')), z', @y, @ys) :|: z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z'' + insertD(z', z1) :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 1 }→ insertionsort#1(z) :|: z >= 0
insertionsort#1(z) -{ 2 }→ insert(@x, insertionsort#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 1 }→ insertionsortD#1(z) :|: z >= 0
insertionsortD#1(z) -{ 2 }→ insertD(@x, insertionsortD#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 2 }→ insertionsort(1 + #abs(0) + (1 + #abs(1 + (1 + (1 + (1 + (1 + 0))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + (1 + #abs(1 + (1 + 0)) + (1 + #abs(1 + (1 + (1 + 0))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + (1 + #abs(1 + (1 + (1 + (1 + 0)))) + 0)))))))))) :|: z >= 0
testInsertionsortD(z) -{ 2 }→ insertionsortD(1 + #abs(0) + (1 + #abs(1 + (1 + (1 + (1 + (1 + 0))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + (1 + #abs(1 + (1 + 0)) + (1 + #abs(1 + (1 + (1 + 0))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + (1 + #abs(1 + (1 + (1 + (1 + 0)))) + 0)))))))))) :|: z >= 0
testList(z) -{ 1 }→ 1 + #abs(0) + (1 + #abs(1 + (1 + (1 + (1 + (1 + 0))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + (1 + #abs(1 + (1 + 0)) + (1 + #abs(1 + (1 + (1 + 0))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + (1 + #abs(1 + (1 + (1 + (1 + 0)))) + 0))))))))) :|: z >= 0
#compare: runtime: O(1) [0], size: O(1) [3] |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
#less(z, z') -{ 1 }→ #cklt(s'') :|: s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ #cklt(s1) :|: s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
insert(z, z') -{ 1 }→ insert#1(z', z) :|: z' >= 0, z >= 0
insert#1(z, z') -{ 2 }→ insert#2(#cklt(s2), z', @y, @ys) :|: s2 >= 0, s2 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z'' + insert(z', z1) :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 1 }→ insertD#1(z', z) :|: z' >= 0, z >= 0
insertD#1(z, z') -{ 2 }→ insertD#2(#cklt(s3), z', @y, @ys) :|: s3 >= 0, s3 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z'' + insertD(z', z1) :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 1 }→ insertionsort#1(z) :|: z >= 0
insertionsort#1(z) -{ 2 }→ insert(@x, insertionsort#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 1 }→ insertionsortD#1(z) :|: z >= 0
insertionsortD#1(z) -{ 2 }→ insertD(@x, insertionsortD#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 2 }→ insertionsort(1 + #abs(0) + (1 + #abs(1 + (1 + (1 + (1 + (1 + 0))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + (1 + #abs(1 + (1 + 0)) + (1 + #abs(1 + (1 + (1 + 0))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + (1 + #abs(1 + (1 + (1 + (1 + 0)))) + 0)))))))))) :|: z >= 0
testInsertionsortD(z) -{ 2 }→ insertionsortD(1 + #abs(0) + (1 + #abs(1 + (1 + (1 + (1 + (1 + 0))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + (1 + #abs(1 + (1 + 0)) + (1 + #abs(1 + (1 + (1 + 0))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + (1 + #abs(1 + (1 + (1 + (1 + 0)))) + 0)))))))))) :|: z >= 0
testList(z) -{ 1 }→ 1 + #abs(0) + (1 + #abs(1 + (1 + (1 + (1 + (1 + 0))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + (1 + #abs(1 + (1 + 0)) + (1 + #abs(1 + (1 + (1 + 0))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + (1 + #abs(1 + (1 + (1 + (1 + 0)))) + 0))))))))) :|: z >= 0
#compare: runtime: O(1) [0], size: O(1) [3] |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
#less(z, z') -{ 1 }→ #cklt(s'') :|: s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ #cklt(s1) :|: s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
insert(z, z') -{ 1 }→ insert#1(z', z) :|: z' >= 0, z >= 0
insert#1(z, z') -{ 2 }→ insert#2(#cklt(s2), z', @y, @ys) :|: s2 >= 0, s2 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z'' + insert(z', z1) :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 1 }→ insertD#1(z', z) :|: z' >= 0, z >= 0
insertD#1(z, z') -{ 2 }→ insertD#2(#cklt(s3), z', @y, @ys) :|: s3 >= 0, s3 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z'' + insertD(z', z1) :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 1 }→ insertionsort#1(z) :|: z >= 0
insertionsort#1(z) -{ 2 }→ insert(@x, insertionsort#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 1 }→ insertionsortD#1(z) :|: z >= 0
insertionsortD#1(z) -{ 2 }→ insertD(@x, insertionsortD#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 2 }→ insertionsort(1 + #abs(0) + (1 + #abs(1 + (1 + (1 + (1 + (1 + 0))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + (1 + #abs(1 + (1 + 0)) + (1 + #abs(1 + (1 + (1 + 0))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + (1 + #abs(1 + (1 + (1 + (1 + 0)))) + 0)))))))))) :|: z >= 0
testInsertionsortD(z) -{ 2 }→ insertionsortD(1 + #abs(0) + (1 + #abs(1 + (1 + (1 + (1 + (1 + 0))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + (1 + #abs(1 + (1 + 0)) + (1 + #abs(1 + (1 + (1 + 0))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + (1 + #abs(1 + (1 + (1 + (1 + 0)))) + 0)))))))))) :|: z >= 0
testList(z) -{ 1 }→ 1 + #abs(0) + (1 + #abs(1 + (1 + (1 + (1 + (1 + 0))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + (1 + #abs(1 + (1 + 0)) + (1 + #abs(1 + (1 + (1 + 0))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + (1 + #abs(1 + (1 + (1 + (1 + 0)))) + 0))))))))) :|: z >= 0
#compare: runtime: O(1) [0], size: O(1) [3] #cklt: runtime: ?, size: O(1) [2] |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
#less(z, z') -{ 1 }→ #cklt(s'') :|: s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ #cklt(s1) :|: s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
insert(z, z') -{ 1 }→ insert#1(z', z) :|: z' >= 0, z >= 0
insert#1(z, z') -{ 2 }→ insert#2(#cklt(s2), z', @y, @ys) :|: s2 >= 0, s2 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z'' + insert(z', z1) :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 1 }→ insertD#1(z', z) :|: z' >= 0, z >= 0
insertD#1(z, z') -{ 2 }→ insertD#2(#cklt(s3), z', @y, @ys) :|: s3 >= 0, s3 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z'' + insertD(z', z1) :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 1 }→ insertionsort#1(z) :|: z >= 0
insertionsort#1(z) -{ 2 }→ insert(@x, insertionsort#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 1 }→ insertionsortD#1(z) :|: z >= 0
insertionsortD#1(z) -{ 2 }→ insertD(@x, insertionsortD#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 2 }→ insertionsort(1 + #abs(0) + (1 + #abs(1 + (1 + (1 + (1 + (1 + 0))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + (1 + #abs(1 + (1 + 0)) + (1 + #abs(1 + (1 + (1 + 0))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + (1 + #abs(1 + (1 + (1 + (1 + 0)))) + 0)))))))))) :|: z >= 0
testInsertionsortD(z) -{ 2 }→ insertionsortD(1 + #abs(0) + (1 + #abs(1 + (1 + (1 + (1 + (1 + 0))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + (1 + #abs(1 + (1 + 0)) + (1 + #abs(1 + (1 + (1 + 0))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + (1 + #abs(1 + (1 + (1 + (1 + 0)))) + 0)))))))))) :|: z >= 0
testList(z) -{ 1 }→ 1 + #abs(0) + (1 + #abs(1 + (1 + (1 + (1 + (1 + 0))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + (1 + #abs(1 + (1 + 0)) + (1 + #abs(1 + (1 + (1 + 0))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + (1 + #abs(1 + (1 + (1 + (1 + 0)))) + 0))))))))) :|: z >= 0
#compare: runtime: O(1) [0], size: O(1) [3] #cklt: runtime: O(1) [0], size: O(1) [2] |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#less(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ s5 :|: s5 >= 0, s5 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
insert(z, z') -{ 1 }→ insert#1(z', z) :|: z' >= 0, z >= 0
insert#1(z, z') -{ 2 }→ insert#2(s6, z', @y, @ys) :|: s6 >= 0, s6 <= 2, s2 >= 0, s2 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z'' + insert(z', z1) :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 1 }→ insertD#1(z', z) :|: z' >= 0, z >= 0
insertD#1(z, z') -{ 2 }→ insertD#2(s7, z', @y, @ys) :|: s7 >= 0, s7 <= 2, s3 >= 0, s3 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z'' + insertD(z', z1) :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 1 }→ insertionsort#1(z) :|: z >= 0
insertionsort#1(z) -{ 2 }→ insert(@x, insertionsort#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 1 }→ insertionsortD#1(z) :|: z >= 0
insertionsortD#1(z) -{ 2 }→ insertD(@x, insertionsortD#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 2 }→ insertionsort(1 + #abs(0) + (1 + #abs(1 + (1 + (1 + (1 + (1 + 0))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + (1 + #abs(1 + (1 + 0)) + (1 + #abs(1 + (1 + (1 + 0))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + (1 + #abs(1 + (1 + (1 + (1 + 0)))) + 0)))))))))) :|: z >= 0
testInsertionsortD(z) -{ 2 }→ insertionsortD(1 + #abs(0) + (1 + #abs(1 + (1 + (1 + (1 + (1 + 0))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + (1 + #abs(1 + (1 + 0)) + (1 + #abs(1 + (1 + (1 + 0))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + (1 + #abs(1 + (1 + (1 + (1 + 0)))) + 0)))))))))) :|: z >= 0
testList(z) -{ 1 }→ 1 + #abs(0) + (1 + #abs(1 + (1 + (1 + (1 + (1 + 0))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + (1 + #abs(1 + (1 + 0)) + (1 + #abs(1 + (1 + (1 + 0))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + (1 + #abs(1 + (1 + (1 + (1 + 0)))) + 0))))))))) :|: z >= 0
#compare: runtime: O(1) [0], size: O(1) [3] #cklt: runtime: O(1) [0], size: O(1) [2] |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#less(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ s5 :|: s5 >= 0, s5 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
insert(z, z') -{ 1 }→ insert#1(z', z) :|: z' >= 0, z >= 0
insert#1(z, z') -{ 2 }→ insert#2(s6, z', @y, @ys) :|: s6 >= 0, s6 <= 2, s2 >= 0, s2 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z'' + insert(z', z1) :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 1 }→ insertD#1(z', z) :|: z' >= 0, z >= 0
insertD#1(z, z') -{ 2 }→ insertD#2(s7, z', @y, @ys) :|: s7 >= 0, s7 <= 2, s3 >= 0, s3 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z'' + insertD(z', z1) :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 1 }→ insertionsort#1(z) :|: z >= 0
insertionsort#1(z) -{ 2 }→ insert(@x, insertionsort#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 1 }→ insertionsortD#1(z) :|: z >= 0
insertionsortD#1(z) -{ 2 }→ insertD(@x, insertionsortD#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 2 }→ insertionsort(1 + #abs(0) + (1 + #abs(1 + (1 + (1 + (1 + (1 + 0))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + (1 + #abs(1 + (1 + 0)) + (1 + #abs(1 + (1 + (1 + 0))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + (1 + #abs(1 + (1 + (1 + (1 + 0)))) + 0)))))))))) :|: z >= 0
testInsertionsortD(z) -{ 2 }→ insertionsortD(1 + #abs(0) + (1 + #abs(1 + (1 + (1 + (1 + (1 + 0))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + (1 + #abs(1 + (1 + 0)) + (1 + #abs(1 + (1 + (1 + 0))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + (1 + #abs(1 + (1 + (1 + (1 + 0)))) + 0)))))))))) :|: z >= 0
testList(z) -{ 1 }→ 1 + #abs(0) + (1 + #abs(1 + (1 + (1 + (1 + (1 + 0))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + (1 + #abs(1 + (1 + 0)) + (1 + #abs(1 + (1 + (1 + 0))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + (1 + #abs(1 + (1 + (1 + (1 + 0)))) + 0))))))))) :|: z >= 0
#compare: runtime: O(1) [0], size: O(1) [3] #cklt: runtime: O(1) [0], size: O(1) [2] #abs: runtime: ?, size: O(n1) [1 + z] |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#less(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ s5 :|: s5 >= 0, s5 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
insert(z, z') -{ 1 }→ insert#1(z', z) :|: z' >= 0, z >= 0
insert#1(z, z') -{ 2 }→ insert#2(s6, z', @y, @ys) :|: s6 >= 0, s6 <= 2, s2 >= 0, s2 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z'' + insert(z', z1) :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 1 }→ insertD#1(z', z) :|: z' >= 0, z >= 0
insertD#1(z, z') -{ 2 }→ insertD#2(s7, z', @y, @ys) :|: s7 >= 0, s7 <= 2, s3 >= 0, s3 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z'' + insertD(z', z1) :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 1 }→ insertionsort#1(z) :|: z >= 0
insertionsort#1(z) -{ 2 }→ insert(@x, insertionsort#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 1 }→ insertionsortD#1(z) :|: z >= 0
insertionsortD#1(z) -{ 2 }→ insertD(@x, insertionsortD#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 2 }→ insertionsort(1 + #abs(0) + (1 + #abs(1 + (1 + (1 + (1 + (1 + 0))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + (1 + #abs(1 + (1 + 0)) + (1 + #abs(1 + (1 + (1 + 0))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + (1 + #abs(1 + (1 + (1 + (1 + 0)))) + 0)))))))))) :|: z >= 0
testInsertionsortD(z) -{ 2 }→ insertionsortD(1 + #abs(0) + (1 + #abs(1 + (1 + (1 + (1 + (1 + 0))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + (1 + #abs(1 + (1 + 0)) + (1 + #abs(1 + (1 + (1 + 0))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + (1 + #abs(1 + (1 + (1 + (1 + 0)))) + 0)))))))))) :|: z >= 0
testList(z) -{ 1 }→ 1 + #abs(0) + (1 + #abs(1 + (1 + (1 + (1 + (1 + 0))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + (1 + #abs(1 + (1 + 0)) + (1 + #abs(1 + (1 + (1 + 0))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + (1 + #abs(1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + (1 + #abs(1 + (1 + (1 + (1 + 0)))) + 0))))))))) :|: z >= 0
#compare: runtime: O(1) [0], size: O(1) [3] #cklt: runtime: O(1) [0], size: O(1) [2] #abs: runtime: O(1) [1], size: O(n1) [1 + z] |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#less(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ s5 :|: s5 >= 0, s5 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
insert(z, z') -{ 1 }→ insert#1(z', z) :|: z' >= 0, z >= 0
insert#1(z, z') -{ 2 }→ insert#2(s6, z', @y, @ys) :|: s6 >= 0, s6 <= 2, s2 >= 0, s2 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z'' + insert(z', z1) :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 1 }→ insertD#1(z', z) :|: z' >= 0, z >= 0
insertD#1(z, z') -{ 2 }→ insertD#2(s7, z', @y, @ys) :|: s7 >= 0, s7 <= 2, s3 >= 0, s3 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z'' + insertD(z', z1) :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 1 }→ insertionsort#1(z) :|: z >= 0
insertionsort#1(z) -{ 2 }→ insert(@x, insertionsort#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 1 }→ insertionsortD#1(z) :|: z >= 0
insertionsortD#1(z) -{ 2 }→ insertD(@x, insertionsortD#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 12 }→ insertionsort(1 + s8 + (1 + s9 + (1 + s10 + (1 + s11 + (1 + s12 + (1 + s13 + (1 + s14 + (1 + s15 + (1 + s16 + (1 + s17 + 0)))))))))) :|: s8 >= 0, s8 <= 1 * 0 + 1, s9 >= 0, s9 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s10 >= 0, s10 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s11 >= 0, s11 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s12 >= 0, s12 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s13 >= 0, s13 <= 1 * (1 + (1 + 0)) + 1, s14 >= 0, s14 <= 1 * (1 + (1 + (1 + 0))) + 1, s15 >= 0, s15 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s16 >= 0, s16 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s17 >= 0, s17 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testInsertionsortD(z) -{ 12 }→ insertionsortD(1 + s18 + (1 + s19 + (1 + s20 + (1 + s21 + (1 + s22 + (1 + s23 + (1 + s24 + (1 + s25 + (1 + s26 + (1 + s27 + 0)))))))))) :|: s18 >= 0, s18 <= 1 * 0 + 1, s19 >= 0, s19 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s20 >= 0, s20 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s21 >= 0, s21 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s22 >= 0, s22 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s23 >= 0, s23 <= 1 * (1 + (1 + 0)) + 1, s24 >= 0, s24 <= 1 * (1 + (1 + (1 + 0))) + 1, s25 >= 0, s25 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s26 >= 0, s26 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s27 >= 0, s27 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testList(z) -{ 11 }→ 1 + s28 + (1 + s29 + (1 + s30 + (1 + s31 + (1 + s32 + (1 + s33 + (1 + s34 + (1 + s35 + (1 + s36 + (1 + s37 + 0))))))))) :|: s28 >= 0, s28 <= 1 * 0 + 1, s29 >= 0, s29 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s30 >= 0, s30 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s31 >= 0, s31 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s32 >= 0, s32 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s33 >= 0, s33 <= 1 * (1 + (1 + 0)) + 1, s34 >= 0, s34 <= 1 * (1 + (1 + (1 + 0))) + 1, s35 >= 0, s35 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s36 >= 0, s36 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s37 >= 0, s37 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
#compare: runtime: O(1) [0], size: O(1) [3] #cklt: runtime: O(1) [0], size: O(1) [2] #abs: runtime: O(1) [1], size: O(n1) [1 + z] |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#less(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ s5 :|: s5 >= 0, s5 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
insert(z, z') -{ 1 }→ insert#1(z', z) :|: z' >= 0, z >= 0
insert#1(z, z') -{ 2 }→ insert#2(s6, z', @y, @ys) :|: s6 >= 0, s6 <= 2, s2 >= 0, s2 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z'' + insert(z', z1) :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 1 }→ insertD#1(z', z) :|: z' >= 0, z >= 0
insertD#1(z, z') -{ 2 }→ insertD#2(s7, z', @y, @ys) :|: s7 >= 0, s7 <= 2, s3 >= 0, s3 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z'' + insertD(z', z1) :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 1 }→ insertionsort#1(z) :|: z >= 0
insertionsort#1(z) -{ 2 }→ insert(@x, insertionsort#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 1 }→ insertionsortD#1(z) :|: z >= 0
insertionsortD#1(z) -{ 2 }→ insertD(@x, insertionsortD#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 12 }→ insertionsort(1 + s8 + (1 + s9 + (1 + s10 + (1 + s11 + (1 + s12 + (1 + s13 + (1 + s14 + (1 + s15 + (1 + s16 + (1 + s17 + 0)))))))))) :|: s8 >= 0, s8 <= 1 * 0 + 1, s9 >= 0, s9 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s10 >= 0, s10 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s11 >= 0, s11 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s12 >= 0, s12 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s13 >= 0, s13 <= 1 * (1 + (1 + 0)) + 1, s14 >= 0, s14 <= 1 * (1 + (1 + (1 + 0))) + 1, s15 >= 0, s15 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s16 >= 0, s16 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s17 >= 0, s17 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testInsertionsortD(z) -{ 12 }→ insertionsortD(1 + s18 + (1 + s19 + (1 + s20 + (1 + s21 + (1 + s22 + (1 + s23 + (1 + s24 + (1 + s25 + (1 + s26 + (1 + s27 + 0)))))))))) :|: s18 >= 0, s18 <= 1 * 0 + 1, s19 >= 0, s19 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s20 >= 0, s20 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s21 >= 0, s21 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s22 >= 0, s22 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s23 >= 0, s23 <= 1 * (1 + (1 + 0)) + 1, s24 >= 0, s24 <= 1 * (1 + (1 + (1 + 0))) + 1, s25 >= 0, s25 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s26 >= 0, s26 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s27 >= 0, s27 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testList(z) -{ 11 }→ 1 + s28 + (1 + s29 + (1 + s30 + (1 + s31 + (1 + s32 + (1 + s33 + (1 + s34 + (1 + s35 + (1 + s36 + (1 + s37 + 0))))))))) :|: s28 >= 0, s28 <= 1 * 0 + 1, s29 >= 0, s29 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s30 >= 0, s30 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s31 >= 0, s31 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s32 >= 0, s32 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s33 >= 0, s33 <= 1 * (1 + (1 + 0)) + 1, s34 >= 0, s34 <= 1 * (1 + (1 + (1 + 0))) + 1, s35 >= 0, s35 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s36 >= 0, s36 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s37 >= 0, s37 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
#compare: runtime: O(1) [0], size: O(1) [3] #cklt: runtime: O(1) [0], size: O(1) [2] #abs: runtime: O(1) [1], size: O(n1) [1 + z] #less: runtime: ?, size: O(1) [2] |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#less(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ s5 :|: s5 >= 0, s5 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
insert(z, z') -{ 1 }→ insert#1(z', z) :|: z' >= 0, z >= 0
insert#1(z, z') -{ 2 }→ insert#2(s6, z', @y, @ys) :|: s6 >= 0, s6 <= 2, s2 >= 0, s2 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z'' + insert(z', z1) :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 1 }→ insertD#1(z', z) :|: z' >= 0, z >= 0
insertD#1(z, z') -{ 2 }→ insertD#2(s7, z', @y, @ys) :|: s7 >= 0, s7 <= 2, s3 >= 0, s3 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z'' + insertD(z', z1) :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 1 }→ insertionsort#1(z) :|: z >= 0
insertionsort#1(z) -{ 2 }→ insert(@x, insertionsort#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 1 }→ insertionsortD#1(z) :|: z >= 0
insertionsortD#1(z) -{ 2 }→ insertD(@x, insertionsortD#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 12 }→ insertionsort(1 + s8 + (1 + s9 + (1 + s10 + (1 + s11 + (1 + s12 + (1 + s13 + (1 + s14 + (1 + s15 + (1 + s16 + (1 + s17 + 0)))))))))) :|: s8 >= 0, s8 <= 1 * 0 + 1, s9 >= 0, s9 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s10 >= 0, s10 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s11 >= 0, s11 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s12 >= 0, s12 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s13 >= 0, s13 <= 1 * (1 + (1 + 0)) + 1, s14 >= 0, s14 <= 1 * (1 + (1 + (1 + 0))) + 1, s15 >= 0, s15 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s16 >= 0, s16 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s17 >= 0, s17 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testInsertionsortD(z) -{ 12 }→ insertionsortD(1 + s18 + (1 + s19 + (1 + s20 + (1 + s21 + (1 + s22 + (1 + s23 + (1 + s24 + (1 + s25 + (1 + s26 + (1 + s27 + 0)))))))))) :|: s18 >= 0, s18 <= 1 * 0 + 1, s19 >= 0, s19 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s20 >= 0, s20 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s21 >= 0, s21 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s22 >= 0, s22 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s23 >= 0, s23 <= 1 * (1 + (1 + 0)) + 1, s24 >= 0, s24 <= 1 * (1 + (1 + (1 + 0))) + 1, s25 >= 0, s25 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s26 >= 0, s26 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s27 >= 0, s27 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testList(z) -{ 11 }→ 1 + s28 + (1 + s29 + (1 + s30 + (1 + s31 + (1 + s32 + (1 + s33 + (1 + s34 + (1 + s35 + (1 + s36 + (1 + s37 + 0))))))))) :|: s28 >= 0, s28 <= 1 * 0 + 1, s29 >= 0, s29 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s30 >= 0, s30 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s31 >= 0, s31 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s32 >= 0, s32 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s33 >= 0, s33 <= 1 * (1 + (1 + 0)) + 1, s34 >= 0, s34 <= 1 * (1 + (1 + (1 + 0))) + 1, s35 >= 0, s35 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s36 >= 0, s36 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s37 >= 0, s37 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
#compare: runtime: O(1) [0], size: O(1) [3] #cklt: runtime: O(1) [0], size: O(1) [2] #abs: runtime: O(1) [1], size: O(n1) [1 + z] #less: runtime: O(1) [1], size: O(1) [2] |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#less(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ s5 :|: s5 >= 0, s5 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
insert(z, z') -{ 1 }→ insert#1(z', z) :|: z' >= 0, z >= 0
insert#1(z, z') -{ 2 }→ insert#2(s6, z', @y, @ys) :|: s6 >= 0, s6 <= 2, s2 >= 0, s2 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z'' + insert(z', z1) :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 1 }→ insertD#1(z', z) :|: z' >= 0, z >= 0
insertD#1(z, z') -{ 2 }→ insertD#2(s7, z', @y, @ys) :|: s7 >= 0, s7 <= 2, s3 >= 0, s3 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z'' + insertD(z', z1) :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 1 }→ insertionsort#1(z) :|: z >= 0
insertionsort#1(z) -{ 2 }→ insert(@x, insertionsort#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 1 }→ insertionsortD#1(z) :|: z >= 0
insertionsortD#1(z) -{ 2 }→ insertD(@x, insertionsortD#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 12 }→ insertionsort(1 + s8 + (1 + s9 + (1 + s10 + (1 + s11 + (1 + s12 + (1 + s13 + (1 + s14 + (1 + s15 + (1 + s16 + (1 + s17 + 0)))))))))) :|: s8 >= 0, s8 <= 1 * 0 + 1, s9 >= 0, s9 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s10 >= 0, s10 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s11 >= 0, s11 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s12 >= 0, s12 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s13 >= 0, s13 <= 1 * (1 + (1 + 0)) + 1, s14 >= 0, s14 <= 1 * (1 + (1 + (1 + 0))) + 1, s15 >= 0, s15 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s16 >= 0, s16 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s17 >= 0, s17 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testInsertionsortD(z) -{ 12 }→ insertionsortD(1 + s18 + (1 + s19 + (1 + s20 + (1 + s21 + (1 + s22 + (1 + s23 + (1 + s24 + (1 + s25 + (1 + s26 + (1 + s27 + 0)))))))))) :|: s18 >= 0, s18 <= 1 * 0 + 1, s19 >= 0, s19 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s20 >= 0, s20 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s21 >= 0, s21 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s22 >= 0, s22 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s23 >= 0, s23 <= 1 * (1 + (1 + 0)) + 1, s24 >= 0, s24 <= 1 * (1 + (1 + (1 + 0))) + 1, s25 >= 0, s25 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s26 >= 0, s26 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s27 >= 0, s27 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testList(z) -{ 11 }→ 1 + s28 + (1 + s29 + (1 + s30 + (1 + s31 + (1 + s32 + (1 + s33 + (1 + s34 + (1 + s35 + (1 + s36 + (1 + s37 + 0))))))))) :|: s28 >= 0, s28 <= 1 * 0 + 1, s29 >= 0, s29 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s30 >= 0, s30 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s31 >= 0, s31 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s32 >= 0, s32 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s33 >= 0, s33 <= 1 * (1 + (1 + 0)) + 1, s34 >= 0, s34 <= 1 * (1 + (1 + (1 + 0))) + 1, s35 >= 0, s35 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s36 >= 0, s36 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s37 >= 0, s37 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
#compare: runtime: O(1) [0], size: O(1) [3] #cklt: runtime: O(1) [0], size: O(1) [2] #abs: runtime: O(1) [1], size: O(n1) [1 + z] #less: runtime: O(1) [1], size: O(1) [2] |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#less(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ s5 :|: s5 >= 0, s5 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
insert(z, z') -{ 1 }→ insert#1(z', z) :|: z' >= 0, z >= 0
insert#1(z, z') -{ 2 }→ insert#2(s6, z', @y, @ys) :|: s6 >= 0, s6 <= 2, s2 >= 0, s2 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z'' + insert(z', z1) :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 1 }→ insertD#1(z', z) :|: z' >= 0, z >= 0
insertD#1(z, z') -{ 2 }→ insertD#2(s7, z', @y, @ys) :|: s7 >= 0, s7 <= 2, s3 >= 0, s3 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z'' + insertD(z', z1) :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 1 }→ insertionsort#1(z) :|: z >= 0
insertionsort#1(z) -{ 2 }→ insert(@x, insertionsort#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 1 }→ insertionsortD#1(z) :|: z >= 0
insertionsortD#1(z) -{ 2 }→ insertD(@x, insertionsortD#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 12 }→ insertionsort(1 + s8 + (1 + s9 + (1 + s10 + (1 + s11 + (1 + s12 + (1 + s13 + (1 + s14 + (1 + s15 + (1 + s16 + (1 + s17 + 0)))))))))) :|: s8 >= 0, s8 <= 1 * 0 + 1, s9 >= 0, s9 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s10 >= 0, s10 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s11 >= 0, s11 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s12 >= 0, s12 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s13 >= 0, s13 <= 1 * (1 + (1 + 0)) + 1, s14 >= 0, s14 <= 1 * (1 + (1 + (1 + 0))) + 1, s15 >= 0, s15 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s16 >= 0, s16 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s17 >= 0, s17 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testInsertionsortD(z) -{ 12 }→ insertionsortD(1 + s18 + (1 + s19 + (1 + s20 + (1 + s21 + (1 + s22 + (1 + s23 + (1 + s24 + (1 + s25 + (1 + s26 + (1 + s27 + 0)))))))))) :|: s18 >= 0, s18 <= 1 * 0 + 1, s19 >= 0, s19 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s20 >= 0, s20 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s21 >= 0, s21 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s22 >= 0, s22 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s23 >= 0, s23 <= 1 * (1 + (1 + 0)) + 1, s24 >= 0, s24 <= 1 * (1 + (1 + (1 + 0))) + 1, s25 >= 0, s25 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s26 >= 0, s26 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s27 >= 0, s27 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testList(z) -{ 11 }→ 1 + s28 + (1 + s29 + (1 + s30 + (1 + s31 + (1 + s32 + (1 + s33 + (1 + s34 + (1 + s35 + (1 + s36 + (1 + s37 + 0))))))))) :|: s28 >= 0, s28 <= 1 * 0 + 1, s29 >= 0, s29 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s30 >= 0, s30 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s31 >= 0, s31 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s32 >= 0, s32 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s33 >= 0, s33 <= 1 * (1 + (1 + 0)) + 1, s34 >= 0, s34 <= 1 * (1 + (1 + (1 + 0))) + 1, s35 >= 0, s35 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s36 >= 0, s36 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s37 >= 0, s37 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
#compare: runtime: O(1) [0], size: O(1) [3] #cklt: runtime: O(1) [0], size: O(1) [2] #abs: runtime: O(1) [1], size: O(n1) [1 + z] #less: runtime: O(1) [1], size: O(1) [2] insertD#2: runtime: ?, size: O(n1) [2 + z' + z'' + z1] insertD#1: runtime: ?, size: O(n1) [1 + z + z'] insertD: runtime: ?, size: O(n1) [1 + z + z'] |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#less(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ s5 :|: s5 >= 0, s5 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
insert(z, z') -{ 1 }→ insert#1(z', z) :|: z' >= 0, z >= 0
insert#1(z, z') -{ 2 }→ insert#2(s6, z', @y, @ys) :|: s6 >= 0, s6 <= 2, s2 >= 0, s2 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z'' + insert(z', z1) :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 1 }→ insertD#1(z', z) :|: z' >= 0, z >= 0
insertD#1(z, z') -{ 2 }→ insertD#2(s7, z', @y, @ys) :|: s7 >= 0, s7 <= 2, s3 >= 0, s3 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z'' + insertD(z', z1) :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 1 }→ insertionsort#1(z) :|: z >= 0
insertionsort#1(z) -{ 2 }→ insert(@x, insertionsort#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 1 }→ insertionsortD#1(z) :|: z >= 0
insertionsortD#1(z) -{ 2 }→ insertD(@x, insertionsortD#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 12 }→ insertionsort(1 + s8 + (1 + s9 + (1 + s10 + (1 + s11 + (1 + s12 + (1 + s13 + (1 + s14 + (1 + s15 + (1 + s16 + (1 + s17 + 0)))))))))) :|: s8 >= 0, s8 <= 1 * 0 + 1, s9 >= 0, s9 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s10 >= 0, s10 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s11 >= 0, s11 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s12 >= 0, s12 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s13 >= 0, s13 <= 1 * (1 + (1 + 0)) + 1, s14 >= 0, s14 <= 1 * (1 + (1 + (1 + 0))) + 1, s15 >= 0, s15 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s16 >= 0, s16 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s17 >= 0, s17 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testInsertionsortD(z) -{ 12 }→ insertionsortD(1 + s18 + (1 + s19 + (1 + s20 + (1 + s21 + (1 + s22 + (1 + s23 + (1 + s24 + (1 + s25 + (1 + s26 + (1 + s27 + 0)))))))))) :|: s18 >= 0, s18 <= 1 * 0 + 1, s19 >= 0, s19 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s20 >= 0, s20 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s21 >= 0, s21 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s22 >= 0, s22 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s23 >= 0, s23 <= 1 * (1 + (1 + 0)) + 1, s24 >= 0, s24 <= 1 * (1 + (1 + (1 + 0))) + 1, s25 >= 0, s25 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s26 >= 0, s26 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s27 >= 0, s27 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testList(z) -{ 11 }→ 1 + s28 + (1 + s29 + (1 + s30 + (1 + s31 + (1 + s32 + (1 + s33 + (1 + s34 + (1 + s35 + (1 + s36 + (1 + s37 + 0))))))))) :|: s28 >= 0, s28 <= 1 * 0 + 1, s29 >= 0, s29 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s30 >= 0, s30 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s31 >= 0, s31 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s32 >= 0, s32 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s33 >= 0, s33 <= 1 * (1 + (1 + 0)) + 1, s34 >= 0, s34 <= 1 * (1 + (1 + (1 + 0))) + 1, s35 >= 0, s35 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s36 >= 0, s36 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s37 >= 0, s37 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
#compare: runtime: O(1) [0], size: O(1) [3] #cklt: runtime: O(1) [0], size: O(1) [2] #abs: runtime: O(1) [1], size: O(n1) [1 + z] #less: runtime: O(1) [1], size: O(1) [2] insertD#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insertD#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] insertD: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#less(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ s5 :|: s5 >= 0, s5 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
insert(z, z') -{ 1 }→ insert#1(z', z) :|: z' >= 0, z >= 0
insert#1(z, z') -{ 2 }→ insert#2(s6, z', @y, @ys) :|: s6 >= 0, s6 <= 2, s2 >= 0, s2 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z'' + insert(z', z1) :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 2 + 4·z' }→ s38 :|: s38 >= 0, s38 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insertD#1(z, z') -{ 5 + 4·@ys }→ s40 :|: s40 >= 0, s40 <= 1 * z' + 1 * @y + 1 * @ys + 2, s7 >= 0, s7 <= 2, s3 >= 0, s3 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s39 :|: s39 >= 0, s39 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 1 }→ insertionsort#1(z) :|: z >= 0
insertionsort#1(z) -{ 2 }→ insert(@x, insertionsort#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 1 }→ insertionsortD#1(z) :|: z >= 0
insertionsortD#1(z) -{ 2 }→ insertD(@x, insertionsortD#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 12 }→ insertionsort(1 + s8 + (1 + s9 + (1 + s10 + (1 + s11 + (1 + s12 + (1 + s13 + (1 + s14 + (1 + s15 + (1 + s16 + (1 + s17 + 0)))))))))) :|: s8 >= 0, s8 <= 1 * 0 + 1, s9 >= 0, s9 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s10 >= 0, s10 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s11 >= 0, s11 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s12 >= 0, s12 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s13 >= 0, s13 <= 1 * (1 + (1 + 0)) + 1, s14 >= 0, s14 <= 1 * (1 + (1 + (1 + 0))) + 1, s15 >= 0, s15 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s16 >= 0, s16 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s17 >= 0, s17 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testInsertionsortD(z) -{ 12 }→ insertionsortD(1 + s18 + (1 + s19 + (1 + s20 + (1 + s21 + (1 + s22 + (1 + s23 + (1 + s24 + (1 + s25 + (1 + s26 + (1 + s27 + 0)))))))))) :|: s18 >= 0, s18 <= 1 * 0 + 1, s19 >= 0, s19 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s20 >= 0, s20 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s21 >= 0, s21 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s22 >= 0, s22 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s23 >= 0, s23 <= 1 * (1 + (1 + 0)) + 1, s24 >= 0, s24 <= 1 * (1 + (1 + (1 + 0))) + 1, s25 >= 0, s25 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s26 >= 0, s26 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s27 >= 0, s27 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testList(z) -{ 11 }→ 1 + s28 + (1 + s29 + (1 + s30 + (1 + s31 + (1 + s32 + (1 + s33 + (1 + s34 + (1 + s35 + (1 + s36 + (1 + s37 + 0))))))))) :|: s28 >= 0, s28 <= 1 * 0 + 1, s29 >= 0, s29 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s30 >= 0, s30 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s31 >= 0, s31 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s32 >= 0, s32 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s33 >= 0, s33 <= 1 * (1 + (1 + 0)) + 1, s34 >= 0, s34 <= 1 * (1 + (1 + (1 + 0))) + 1, s35 >= 0, s35 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s36 >= 0, s36 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s37 >= 0, s37 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
#compare: runtime: O(1) [0], size: O(1) [3] #cklt: runtime: O(1) [0], size: O(1) [2] #abs: runtime: O(1) [1], size: O(n1) [1 + z] #less: runtime: O(1) [1], size: O(1) [2] insertD#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insertD#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] insertD: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#less(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ s5 :|: s5 >= 0, s5 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
insert(z, z') -{ 1 }→ insert#1(z', z) :|: z' >= 0, z >= 0
insert#1(z, z') -{ 2 }→ insert#2(s6, z', @y, @ys) :|: s6 >= 0, s6 <= 2, s2 >= 0, s2 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z'' + insert(z', z1) :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 2 + 4·z' }→ s38 :|: s38 >= 0, s38 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insertD#1(z, z') -{ 5 + 4·@ys }→ s40 :|: s40 >= 0, s40 <= 1 * z' + 1 * @y + 1 * @ys + 2, s7 >= 0, s7 <= 2, s3 >= 0, s3 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s39 :|: s39 >= 0, s39 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 1 }→ insertionsort#1(z) :|: z >= 0
insertionsort#1(z) -{ 2 }→ insert(@x, insertionsort#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 1 }→ insertionsortD#1(z) :|: z >= 0
insertionsortD#1(z) -{ 2 }→ insertD(@x, insertionsortD#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 12 }→ insertionsort(1 + s8 + (1 + s9 + (1 + s10 + (1 + s11 + (1 + s12 + (1 + s13 + (1 + s14 + (1 + s15 + (1 + s16 + (1 + s17 + 0)))))))))) :|: s8 >= 0, s8 <= 1 * 0 + 1, s9 >= 0, s9 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s10 >= 0, s10 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s11 >= 0, s11 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s12 >= 0, s12 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s13 >= 0, s13 <= 1 * (1 + (1 + 0)) + 1, s14 >= 0, s14 <= 1 * (1 + (1 + (1 + 0))) + 1, s15 >= 0, s15 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s16 >= 0, s16 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s17 >= 0, s17 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testInsertionsortD(z) -{ 12 }→ insertionsortD(1 + s18 + (1 + s19 + (1 + s20 + (1 + s21 + (1 + s22 + (1 + s23 + (1 + s24 + (1 + s25 + (1 + s26 + (1 + s27 + 0)))))))))) :|: s18 >= 0, s18 <= 1 * 0 + 1, s19 >= 0, s19 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s20 >= 0, s20 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s21 >= 0, s21 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s22 >= 0, s22 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s23 >= 0, s23 <= 1 * (1 + (1 + 0)) + 1, s24 >= 0, s24 <= 1 * (1 + (1 + (1 + 0))) + 1, s25 >= 0, s25 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s26 >= 0, s26 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s27 >= 0, s27 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testList(z) -{ 11 }→ 1 + s28 + (1 + s29 + (1 + s30 + (1 + s31 + (1 + s32 + (1 + s33 + (1 + s34 + (1 + s35 + (1 + s36 + (1 + s37 + 0))))))))) :|: s28 >= 0, s28 <= 1 * 0 + 1, s29 >= 0, s29 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s30 >= 0, s30 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s31 >= 0, s31 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s32 >= 0, s32 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s33 >= 0, s33 <= 1 * (1 + (1 + 0)) + 1, s34 >= 0, s34 <= 1 * (1 + (1 + (1 + 0))) + 1, s35 >= 0, s35 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s36 >= 0, s36 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s37 >= 0, s37 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
#compare: runtime: O(1) [0], size: O(1) [3] #cklt: runtime: O(1) [0], size: O(1) [2] #abs: runtime: O(1) [1], size: O(n1) [1 + z] #less: runtime: O(1) [1], size: O(1) [2] insertD#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insertD#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] insertD: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#2: runtime: ?, size: O(n1) [2 + z' + z'' + z1] insert: runtime: ?, size: O(n1) [1 + z + z'] insert#1: runtime: ?, size: O(n1) [1 + z + z'] |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#less(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ s5 :|: s5 >= 0, s5 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
insert(z, z') -{ 1 }→ insert#1(z', z) :|: z' >= 0, z >= 0
insert#1(z, z') -{ 2 }→ insert#2(s6, z', @y, @ys) :|: s6 >= 0, s6 <= 2, s2 >= 0, s2 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z'' + insert(z', z1) :|: z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 2 + 4·z' }→ s38 :|: s38 >= 0, s38 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insertD#1(z, z') -{ 5 + 4·@ys }→ s40 :|: s40 >= 0, s40 <= 1 * z' + 1 * @y + 1 * @ys + 2, s7 >= 0, s7 <= 2, s3 >= 0, s3 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s39 :|: s39 >= 0, s39 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 1 }→ insertionsort#1(z) :|: z >= 0
insertionsort#1(z) -{ 2 }→ insert(@x, insertionsort#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 1 }→ insertionsortD#1(z) :|: z >= 0
insertionsortD#1(z) -{ 2 }→ insertD(@x, insertionsortD#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 12 }→ insertionsort(1 + s8 + (1 + s9 + (1 + s10 + (1 + s11 + (1 + s12 + (1 + s13 + (1 + s14 + (1 + s15 + (1 + s16 + (1 + s17 + 0)))))))))) :|: s8 >= 0, s8 <= 1 * 0 + 1, s9 >= 0, s9 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s10 >= 0, s10 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s11 >= 0, s11 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s12 >= 0, s12 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s13 >= 0, s13 <= 1 * (1 + (1 + 0)) + 1, s14 >= 0, s14 <= 1 * (1 + (1 + (1 + 0))) + 1, s15 >= 0, s15 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s16 >= 0, s16 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s17 >= 0, s17 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testInsertionsortD(z) -{ 12 }→ insertionsortD(1 + s18 + (1 + s19 + (1 + s20 + (1 + s21 + (1 + s22 + (1 + s23 + (1 + s24 + (1 + s25 + (1 + s26 + (1 + s27 + 0)))))))))) :|: s18 >= 0, s18 <= 1 * 0 + 1, s19 >= 0, s19 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s20 >= 0, s20 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s21 >= 0, s21 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s22 >= 0, s22 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s23 >= 0, s23 <= 1 * (1 + (1 + 0)) + 1, s24 >= 0, s24 <= 1 * (1 + (1 + (1 + 0))) + 1, s25 >= 0, s25 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s26 >= 0, s26 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s27 >= 0, s27 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testList(z) -{ 11 }→ 1 + s28 + (1 + s29 + (1 + s30 + (1 + s31 + (1 + s32 + (1 + s33 + (1 + s34 + (1 + s35 + (1 + s36 + (1 + s37 + 0))))))))) :|: s28 >= 0, s28 <= 1 * 0 + 1, s29 >= 0, s29 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s30 >= 0, s30 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s31 >= 0, s31 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s32 >= 0, s32 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s33 >= 0, s33 <= 1 * (1 + (1 + 0)) + 1, s34 >= 0, s34 <= 1 * (1 + (1 + (1 + 0))) + 1, s35 >= 0, s35 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s36 >= 0, s36 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s37 >= 0, s37 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
#compare: runtime: O(1) [0], size: O(1) [3] #cklt: runtime: O(1) [0], size: O(1) [2] #abs: runtime: O(1) [1], size: O(n1) [1 + z] #less: runtime: O(1) [1], size: O(1) [2] insertD#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insertD#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] insertD: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insert: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#less(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ s5 :|: s5 >= 0, s5 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
insert(z, z') -{ 2 + 4·z' }→ s41 :|: s41 >= 0, s41 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insert#1(z, z') -{ 5 + 4·@ys }→ s43 :|: s43 >= 0, s43 <= 1 * z' + 1 * @y + 1 * @ys + 2, s6 >= 0, s6 <= 2, s2 >= 0, s2 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s42 :|: s42 >= 0, s42 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 2 + 4·z' }→ s38 :|: s38 >= 0, s38 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insertD#1(z, z') -{ 5 + 4·@ys }→ s40 :|: s40 >= 0, s40 <= 1 * z' + 1 * @y + 1 * @ys + 2, s7 >= 0, s7 <= 2, s3 >= 0, s3 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s39 :|: s39 >= 0, s39 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 1 }→ insertionsort#1(z) :|: z >= 0
insertionsort#1(z) -{ 2 }→ insert(@x, insertionsort#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 1 }→ insertionsortD#1(z) :|: z >= 0
insertionsortD#1(z) -{ 2 }→ insertD(@x, insertionsortD#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 12 }→ insertionsort(1 + s8 + (1 + s9 + (1 + s10 + (1 + s11 + (1 + s12 + (1 + s13 + (1 + s14 + (1 + s15 + (1 + s16 + (1 + s17 + 0)))))))))) :|: s8 >= 0, s8 <= 1 * 0 + 1, s9 >= 0, s9 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s10 >= 0, s10 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s11 >= 0, s11 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s12 >= 0, s12 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s13 >= 0, s13 <= 1 * (1 + (1 + 0)) + 1, s14 >= 0, s14 <= 1 * (1 + (1 + (1 + 0))) + 1, s15 >= 0, s15 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s16 >= 0, s16 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s17 >= 0, s17 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testInsertionsortD(z) -{ 12 }→ insertionsortD(1 + s18 + (1 + s19 + (1 + s20 + (1 + s21 + (1 + s22 + (1 + s23 + (1 + s24 + (1 + s25 + (1 + s26 + (1 + s27 + 0)))))))))) :|: s18 >= 0, s18 <= 1 * 0 + 1, s19 >= 0, s19 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s20 >= 0, s20 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s21 >= 0, s21 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s22 >= 0, s22 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s23 >= 0, s23 <= 1 * (1 + (1 + 0)) + 1, s24 >= 0, s24 <= 1 * (1 + (1 + (1 + 0))) + 1, s25 >= 0, s25 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s26 >= 0, s26 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s27 >= 0, s27 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testList(z) -{ 11 }→ 1 + s28 + (1 + s29 + (1 + s30 + (1 + s31 + (1 + s32 + (1 + s33 + (1 + s34 + (1 + s35 + (1 + s36 + (1 + s37 + 0))))))))) :|: s28 >= 0, s28 <= 1 * 0 + 1, s29 >= 0, s29 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s30 >= 0, s30 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s31 >= 0, s31 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s32 >= 0, s32 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s33 >= 0, s33 <= 1 * (1 + (1 + 0)) + 1, s34 >= 0, s34 <= 1 * (1 + (1 + (1 + 0))) + 1, s35 >= 0, s35 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s36 >= 0, s36 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s37 >= 0, s37 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
#compare: runtime: O(1) [0], size: O(1) [3] #cklt: runtime: O(1) [0], size: O(1) [2] #abs: runtime: O(1) [1], size: O(n1) [1 + z] #less: runtime: O(1) [1], size: O(1) [2] insertD#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insertD#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] insertD: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insert: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#less(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ s5 :|: s5 >= 0, s5 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
insert(z, z') -{ 2 + 4·z' }→ s41 :|: s41 >= 0, s41 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insert#1(z, z') -{ 5 + 4·@ys }→ s43 :|: s43 >= 0, s43 <= 1 * z' + 1 * @y + 1 * @ys + 2, s6 >= 0, s6 <= 2, s2 >= 0, s2 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s42 :|: s42 >= 0, s42 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 2 + 4·z' }→ s38 :|: s38 >= 0, s38 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insertD#1(z, z') -{ 5 + 4·@ys }→ s40 :|: s40 >= 0, s40 <= 1 * z' + 1 * @y + 1 * @ys + 2, s7 >= 0, s7 <= 2, s3 >= 0, s3 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s39 :|: s39 >= 0, s39 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 1 }→ insertionsort#1(z) :|: z >= 0
insertionsort#1(z) -{ 2 }→ insert(@x, insertionsort#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 1 }→ insertionsortD#1(z) :|: z >= 0
insertionsortD#1(z) -{ 2 }→ insertD(@x, insertionsortD#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 12 }→ insertionsort(1 + s8 + (1 + s9 + (1 + s10 + (1 + s11 + (1 + s12 + (1 + s13 + (1 + s14 + (1 + s15 + (1 + s16 + (1 + s17 + 0)))))))))) :|: s8 >= 0, s8 <= 1 * 0 + 1, s9 >= 0, s9 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s10 >= 0, s10 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s11 >= 0, s11 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s12 >= 0, s12 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s13 >= 0, s13 <= 1 * (1 + (1 + 0)) + 1, s14 >= 0, s14 <= 1 * (1 + (1 + (1 + 0))) + 1, s15 >= 0, s15 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s16 >= 0, s16 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s17 >= 0, s17 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testInsertionsortD(z) -{ 12 }→ insertionsortD(1 + s18 + (1 + s19 + (1 + s20 + (1 + s21 + (1 + s22 + (1 + s23 + (1 + s24 + (1 + s25 + (1 + s26 + (1 + s27 + 0)))))))))) :|: s18 >= 0, s18 <= 1 * 0 + 1, s19 >= 0, s19 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s20 >= 0, s20 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s21 >= 0, s21 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s22 >= 0, s22 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s23 >= 0, s23 <= 1 * (1 + (1 + 0)) + 1, s24 >= 0, s24 <= 1 * (1 + (1 + (1 + 0))) + 1, s25 >= 0, s25 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s26 >= 0, s26 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s27 >= 0, s27 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testList(z) -{ 11 }→ 1 + s28 + (1 + s29 + (1 + s30 + (1 + s31 + (1 + s32 + (1 + s33 + (1 + s34 + (1 + s35 + (1 + s36 + (1 + s37 + 0))))))))) :|: s28 >= 0, s28 <= 1 * 0 + 1, s29 >= 0, s29 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s30 >= 0, s30 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s31 >= 0, s31 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s32 >= 0, s32 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s33 >= 0, s33 <= 1 * (1 + (1 + 0)) + 1, s34 >= 0, s34 <= 1 * (1 + (1 + (1 + 0))) + 1, s35 >= 0, s35 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s36 >= 0, s36 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s37 >= 0, s37 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
#compare: runtime: O(1) [0], size: O(1) [3] #cklt: runtime: O(1) [0], size: O(1) [2] #abs: runtime: O(1) [1], size: O(n1) [1 + z] #less: runtime: O(1) [1], size: O(1) [2] insertD#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insertD#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] insertD: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insert: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] testList: runtime: ?, size: O(1) [74] |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#less(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ s5 :|: s5 >= 0, s5 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
insert(z, z') -{ 2 + 4·z' }→ s41 :|: s41 >= 0, s41 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insert#1(z, z') -{ 5 + 4·@ys }→ s43 :|: s43 >= 0, s43 <= 1 * z' + 1 * @y + 1 * @ys + 2, s6 >= 0, s6 <= 2, s2 >= 0, s2 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s42 :|: s42 >= 0, s42 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 2 + 4·z' }→ s38 :|: s38 >= 0, s38 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insertD#1(z, z') -{ 5 + 4·@ys }→ s40 :|: s40 >= 0, s40 <= 1 * z' + 1 * @y + 1 * @ys + 2, s7 >= 0, s7 <= 2, s3 >= 0, s3 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s39 :|: s39 >= 0, s39 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 1 }→ insertionsort#1(z) :|: z >= 0
insertionsort#1(z) -{ 2 }→ insert(@x, insertionsort#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 1 }→ insertionsortD#1(z) :|: z >= 0
insertionsortD#1(z) -{ 2 }→ insertD(@x, insertionsortD#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 12 }→ insertionsort(1 + s8 + (1 + s9 + (1 + s10 + (1 + s11 + (1 + s12 + (1 + s13 + (1 + s14 + (1 + s15 + (1 + s16 + (1 + s17 + 0)))))))))) :|: s8 >= 0, s8 <= 1 * 0 + 1, s9 >= 0, s9 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s10 >= 0, s10 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s11 >= 0, s11 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s12 >= 0, s12 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s13 >= 0, s13 <= 1 * (1 + (1 + 0)) + 1, s14 >= 0, s14 <= 1 * (1 + (1 + (1 + 0))) + 1, s15 >= 0, s15 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s16 >= 0, s16 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s17 >= 0, s17 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testInsertionsortD(z) -{ 12 }→ insertionsortD(1 + s18 + (1 + s19 + (1 + s20 + (1 + s21 + (1 + s22 + (1 + s23 + (1 + s24 + (1 + s25 + (1 + s26 + (1 + s27 + 0)))))))))) :|: s18 >= 0, s18 <= 1 * 0 + 1, s19 >= 0, s19 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s20 >= 0, s20 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s21 >= 0, s21 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s22 >= 0, s22 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s23 >= 0, s23 <= 1 * (1 + (1 + 0)) + 1, s24 >= 0, s24 <= 1 * (1 + (1 + (1 + 0))) + 1, s25 >= 0, s25 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s26 >= 0, s26 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s27 >= 0, s27 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testList(z) -{ 11 }→ 1 + s28 + (1 + s29 + (1 + s30 + (1 + s31 + (1 + s32 + (1 + s33 + (1 + s34 + (1 + s35 + (1 + s36 + (1 + s37 + 0))))))))) :|: s28 >= 0, s28 <= 1 * 0 + 1, s29 >= 0, s29 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s30 >= 0, s30 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s31 >= 0, s31 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s32 >= 0, s32 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s33 >= 0, s33 <= 1 * (1 + (1 + 0)) + 1, s34 >= 0, s34 <= 1 * (1 + (1 + (1 + 0))) + 1, s35 >= 0, s35 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s36 >= 0, s36 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s37 >= 0, s37 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
#compare: runtime: O(1) [0], size: O(1) [3] #cklt: runtime: O(1) [0], size: O(1) [2] #abs: runtime: O(1) [1], size: O(n1) [1 + z] #less: runtime: O(1) [1], size: O(1) [2] insertD#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insertD#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] insertD: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insert: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] testList: runtime: O(1) [11], size: O(1) [74] |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#less(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ s5 :|: s5 >= 0, s5 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
insert(z, z') -{ 2 + 4·z' }→ s41 :|: s41 >= 0, s41 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insert#1(z, z') -{ 5 + 4·@ys }→ s43 :|: s43 >= 0, s43 <= 1 * z' + 1 * @y + 1 * @ys + 2, s6 >= 0, s6 <= 2, s2 >= 0, s2 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s42 :|: s42 >= 0, s42 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 2 + 4·z' }→ s38 :|: s38 >= 0, s38 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insertD#1(z, z') -{ 5 + 4·@ys }→ s40 :|: s40 >= 0, s40 <= 1 * z' + 1 * @y + 1 * @ys + 2, s7 >= 0, s7 <= 2, s3 >= 0, s3 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s39 :|: s39 >= 0, s39 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 1 }→ insertionsort#1(z) :|: z >= 0
insertionsort#1(z) -{ 2 }→ insert(@x, insertionsort#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 1 }→ insertionsortD#1(z) :|: z >= 0
insertionsortD#1(z) -{ 2 }→ insertD(@x, insertionsortD#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 12 }→ insertionsort(1 + s8 + (1 + s9 + (1 + s10 + (1 + s11 + (1 + s12 + (1 + s13 + (1 + s14 + (1 + s15 + (1 + s16 + (1 + s17 + 0)))))))))) :|: s8 >= 0, s8 <= 1 * 0 + 1, s9 >= 0, s9 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s10 >= 0, s10 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s11 >= 0, s11 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s12 >= 0, s12 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s13 >= 0, s13 <= 1 * (1 + (1 + 0)) + 1, s14 >= 0, s14 <= 1 * (1 + (1 + (1 + 0))) + 1, s15 >= 0, s15 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s16 >= 0, s16 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s17 >= 0, s17 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testInsertionsortD(z) -{ 12 }→ insertionsortD(1 + s18 + (1 + s19 + (1 + s20 + (1 + s21 + (1 + s22 + (1 + s23 + (1 + s24 + (1 + s25 + (1 + s26 + (1 + s27 + 0)))))))))) :|: s18 >= 0, s18 <= 1 * 0 + 1, s19 >= 0, s19 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s20 >= 0, s20 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s21 >= 0, s21 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s22 >= 0, s22 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s23 >= 0, s23 <= 1 * (1 + (1 + 0)) + 1, s24 >= 0, s24 <= 1 * (1 + (1 + (1 + 0))) + 1, s25 >= 0, s25 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s26 >= 0, s26 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s27 >= 0, s27 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testList(z) -{ 11 }→ 1 + s28 + (1 + s29 + (1 + s30 + (1 + s31 + (1 + s32 + (1 + s33 + (1 + s34 + (1 + s35 + (1 + s36 + (1 + s37 + 0))))))))) :|: s28 >= 0, s28 <= 1 * 0 + 1, s29 >= 0, s29 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s30 >= 0, s30 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s31 >= 0, s31 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s32 >= 0, s32 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s33 >= 0, s33 <= 1 * (1 + (1 + 0)) + 1, s34 >= 0, s34 <= 1 * (1 + (1 + (1 + 0))) + 1, s35 >= 0, s35 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s36 >= 0, s36 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s37 >= 0, s37 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
#compare: runtime: O(1) [0], size: O(1) [3] #cklt: runtime: O(1) [0], size: O(1) [2] #abs: runtime: O(1) [1], size: O(n1) [1 + z] #less: runtime: O(1) [1], size: O(1) [2] insertD#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insertD#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] insertD: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insert: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] testList: runtime: O(1) [11], size: O(1) [74] |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#less(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ s5 :|: s5 >= 0, s5 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
insert(z, z') -{ 2 + 4·z' }→ s41 :|: s41 >= 0, s41 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insert#1(z, z') -{ 5 + 4·@ys }→ s43 :|: s43 >= 0, s43 <= 1 * z' + 1 * @y + 1 * @ys + 2, s6 >= 0, s6 <= 2, s2 >= 0, s2 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s42 :|: s42 >= 0, s42 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 2 + 4·z' }→ s38 :|: s38 >= 0, s38 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insertD#1(z, z') -{ 5 + 4·@ys }→ s40 :|: s40 >= 0, s40 <= 1 * z' + 1 * @y + 1 * @ys + 2, s7 >= 0, s7 <= 2, s3 >= 0, s3 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s39 :|: s39 >= 0, s39 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 1 }→ insertionsort#1(z) :|: z >= 0
insertionsort#1(z) -{ 2 }→ insert(@x, insertionsort#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 1 }→ insertionsortD#1(z) :|: z >= 0
insertionsortD#1(z) -{ 2 }→ insertD(@x, insertionsortD#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 12 }→ insertionsort(1 + s8 + (1 + s9 + (1 + s10 + (1 + s11 + (1 + s12 + (1 + s13 + (1 + s14 + (1 + s15 + (1 + s16 + (1 + s17 + 0)))))))))) :|: s8 >= 0, s8 <= 1 * 0 + 1, s9 >= 0, s9 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s10 >= 0, s10 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s11 >= 0, s11 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s12 >= 0, s12 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s13 >= 0, s13 <= 1 * (1 + (1 + 0)) + 1, s14 >= 0, s14 <= 1 * (1 + (1 + (1 + 0))) + 1, s15 >= 0, s15 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s16 >= 0, s16 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s17 >= 0, s17 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testInsertionsortD(z) -{ 12 }→ insertionsortD(1 + s18 + (1 + s19 + (1 + s20 + (1 + s21 + (1 + s22 + (1 + s23 + (1 + s24 + (1 + s25 + (1 + s26 + (1 + s27 + 0)))))))))) :|: s18 >= 0, s18 <= 1 * 0 + 1, s19 >= 0, s19 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s20 >= 0, s20 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s21 >= 0, s21 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s22 >= 0, s22 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s23 >= 0, s23 <= 1 * (1 + (1 + 0)) + 1, s24 >= 0, s24 <= 1 * (1 + (1 + (1 + 0))) + 1, s25 >= 0, s25 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s26 >= 0, s26 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s27 >= 0, s27 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testList(z) -{ 11 }→ 1 + s28 + (1 + s29 + (1 + s30 + (1 + s31 + (1 + s32 + (1 + s33 + (1 + s34 + (1 + s35 + (1 + s36 + (1 + s37 + 0))))))))) :|: s28 >= 0, s28 <= 1 * 0 + 1, s29 >= 0, s29 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s30 >= 0, s30 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s31 >= 0, s31 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s32 >= 0, s32 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s33 >= 0, s33 <= 1 * (1 + (1 + 0)) + 1, s34 >= 0, s34 <= 1 * (1 + (1 + (1 + 0))) + 1, s35 >= 0, s35 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s36 >= 0, s36 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s37 >= 0, s37 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
#compare: runtime: O(1) [0], size: O(1) [3] #cklt: runtime: O(1) [0], size: O(1) [2] #abs: runtime: O(1) [1], size: O(n1) [1 + z] #less: runtime: O(1) [1], size: O(1) [2] insertD#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insertD#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] insertD: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insert: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] testList: runtime: O(1) [11], size: O(1) [74] insertionsortD#1: runtime: ?, size: O(n1) [z] |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#less(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ s5 :|: s5 >= 0, s5 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
insert(z, z') -{ 2 + 4·z' }→ s41 :|: s41 >= 0, s41 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insert#1(z, z') -{ 5 + 4·@ys }→ s43 :|: s43 >= 0, s43 <= 1 * z' + 1 * @y + 1 * @ys + 2, s6 >= 0, s6 <= 2, s2 >= 0, s2 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s42 :|: s42 >= 0, s42 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 2 + 4·z' }→ s38 :|: s38 >= 0, s38 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insertD#1(z, z') -{ 5 + 4·@ys }→ s40 :|: s40 >= 0, s40 <= 1 * z' + 1 * @y + 1 * @ys + 2, s7 >= 0, s7 <= 2, s3 >= 0, s3 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s39 :|: s39 >= 0, s39 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 1 }→ insertionsort#1(z) :|: z >= 0
insertionsort#1(z) -{ 2 }→ insert(@x, insertionsort#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 1 }→ insertionsortD#1(z) :|: z >= 0
insertionsortD#1(z) -{ 2 }→ insertD(@x, insertionsortD#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 12 }→ insertionsort(1 + s8 + (1 + s9 + (1 + s10 + (1 + s11 + (1 + s12 + (1 + s13 + (1 + s14 + (1 + s15 + (1 + s16 + (1 + s17 + 0)))))))))) :|: s8 >= 0, s8 <= 1 * 0 + 1, s9 >= 0, s9 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s10 >= 0, s10 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s11 >= 0, s11 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s12 >= 0, s12 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s13 >= 0, s13 <= 1 * (1 + (1 + 0)) + 1, s14 >= 0, s14 <= 1 * (1 + (1 + (1 + 0))) + 1, s15 >= 0, s15 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s16 >= 0, s16 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s17 >= 0, s17 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testInsertionsortD(z) -{ 12 }→ insertionsortD(1 + s18 + (1 + s19 + (1 + s20 + (1 + s21 + (1 + s22 + (1 + s23 + (1 + s24 + (1 + s25 + (1 + s26 + (1 + s27 + 0)))))))))) :|: s18 >= 0, s18 <= 1 * 0 + 1, s19 >= 0, s19 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s20 >= 0, s20 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s21 >= 0, s21 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s22 >= 0, s22 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s23 >= 0, s23 <= 1 * (1 + (1 + 0)) + 1, s24 >= 0, s24 <= 1 * (1 + (1 + (1 + 0))) + 1, s25 >= 0, s25 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s26 >= 0, s26 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s27 >= 0, s27 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testList(z) -{ 11 }→ 1 + s28 + (1 + s29 + (1 + s30 + (1 + s31 + (1 + s32 + (1 + s33 + (1 + s34 + (1 + s35 + (1 + s36 + (1 + s37 + 0))))))))) :|: s28 >= 0, s28 <= 1 * 0 + 1, s29 >= 0, s29 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s30 >= 0, s30 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s31 >= 0, s31 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s32 >= 0, s32 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s33 >= 0, s33 <= 1 * (1 + (1 + 0)) + 1, s34 >= 0, s34 <= 1 * (1 + (1 + (1 + 0))) + 1, s35 >= 0, s35 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s36 >= 0, s36 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s37 >= 0, s37 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
#compare: runtime: O(1) [0], size: O(1) [3] #cklt: runtime: O(1) [0], size: O(1) [2] #abs: runtime: O(1) [1], size: O(n1) [1 + z] #less: runtime: O(1) [1], size: O(1) [2] insertD#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insertD#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] insertD: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insert: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] testList: runtime: O(1) [11], size: O(1) [74] insertionsortD#1: runtime: O(n2) [1 + 4·z2], size: O(n1) [z] |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#less(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ s5 :|: s5 >= 0, s5 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
insert(z, z') -{ 2 + 4·z' }→ s41 :|: s41 >= 0, s41 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insert#1(z, z') -{ 5 + 4·@ys }→ s43 :|: s43 >= 0, s43 <= 1 * z' + 1 * @y + 1 * @ys + 2, s6 >= 0, s6 <= 2, s2 >= 0, s2 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s42 :|: s42 >= 0, s42 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 2 + 4·z' }→ s38 :|: s38 >= 0, s38 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insertD#1(z, z') -{ 5 + 4·@ys }→ s40 :|: s40 >= 0, s40 <= 1 * z' + 1 * @y + 1 * @ys + 2, s7 >= 0, s7 <= 2, s3 >= 0, s3 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s39 :|: s39 >= 0, s39 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 1 }→ insertionsort#1(z) :|: z >= 0
insertionsort#1(z) -{ 2 }→ insert(@x, insertionsort#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 2 + 4·z2 }→ s44 :|: s44 >= 0, s44 <= 1 * z, z >= 0
insertionsortD#1(z) -{ 5 + 4·@xs2 + 4·s45 }→ s46 :|: s45 >= 0, s45 <= 1 * @xs, s46 >= 0, s46 <= 1 * @x + 1 * s45 + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 12 }→ insertionsort(1 + s8 + (1 + s9 + (1 + s10 + (1 + s11 + (1 + s12 + (1 + s13 + (1 + s14 + (1 + s15 + (1 + s16 + (1 + s17 + 0)))))))))) :|: s8 >= 0, s8 <= 1 * 0 + 1, s9 >= 0, s9 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s10 >= 0, s10 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s11 >= 0, s11 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s12 >= 0, s12 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s13 >= 0, s13 <= 1 * (1 + (1 + 0)) + 1, s14 >= 0, s14 <= 1 * (1 + (1 + (1 + 0))) + 1, s15 >= 0, s15 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s16 >= 0, s16 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s17 >= 0, s17 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testInsertionsortD(z) -{ 12 }→ insertionsortD(1 + s18 + (1 + s19 + (1 + s20 + (1 + s21 + (1 + s22 + (1 + s23 + (1 + s24 + (1 + s25 + (1 + s26 + (1 + s27 + 0)))))))))) :|: s18 >= 0, s18 <= 1 * 0 + 1, s19 >= 0, s19 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s20 >= 0, s20 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s21 >= 0, s21 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s22 >= 0, s22 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s23 >= 0, s23 <= 1 * (1 + (1 + 0)) + 1, s24 >= 0, s24 <= 1 * (1 + (1 + (1 + 0))) + 1, s25 >= 0, s25 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s26 >= 0, s26 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s27 >= 0, s27 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testList(z) -{ 11 }→ 1 + s28 + (1 + s29 + (1 + s30 + (1 + s31 + (1 + s32 + (1 + s33 + (1 + s34 + (1 + s35 + (1 + s36 + (1 + s37 + 0))))))))) :|: s28 >= 0, s28 <= 1 * 0 + 1, s29 >= 0, s29 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s30 >= 0, s30 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s31 >= 0, s31 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s32 >= 0, s32 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s33 >= 0, s33 <= 1 * (1 + (1 + 0)) + 1, s34 >= 0, s34 <= 1 * (1 + (1 + (1 + 0))) + 1, s35 >= 0, s35 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s36 >= 0, s36 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s37 >= 0, s37 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
#compare: runtime: O(1) [0], size: O(1) [3] #cklt: runtime: O(1) [0], size: O(1) [2] #abs: runtime: O(1) [1], size: O(n1) [1 + z] #less: runtime: O(1) [1], size: O(1) [2] insertD#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insertD#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] insertD: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insert: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] testList: runtime: O(1) [11], size: O(1) [74] insertionsortD#1: runtime: O(n2) [1 + 4·z2], size: O(n1) [z] |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#less(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ s5 :|: s5 >= 0, s5 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
insert(z, z') -{ 2 + 4·z' }→ s41 :|: s41 >= 0, s41 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insert#1(z, z') -{ 5 + 4·@ys }→ s43 :|: s43 >= 0, s43 <= 1 * z' + 1 * @y + 1 * @ys + 2, s6 >= 0, s6 <= 2, s2 >= 0, s2 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s42 :|: s42 >= 0, s42 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 2 + 4·z' }→ s38 :|: s38 >= 0, s38 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insertD#1(z, z') -{ 5 + 4·@ys }→ s40 :|: s40 >= 0, s40 <= 1 * z' + 1 * @y + 1 * @ys + 2, s7 >= 0, s7 <= 2, s3 >= 0, s3 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s39 :|: s39 >= 0, s39 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 1 }→ insertionsort#1(z) :|: z >= 0
insertionsort#1(z) -{ 2 }→ insert(@x, insertionsort#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 2 + 4·z2 }→ s44 :|: s44 >= 0, s44 <= 1 * z, z >= 0
insertionsortD#1(z) -{ 5 + 4·@xs2 + 4·s45 }→ s46 :|: s45 >= 0, s45 <= 1 * @xs, s46 >= 0, s46 <= 1 * @x + 1 * s45 + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 12 }→ insertionsort(1 + s8 + (1 + s9 + (1 + s10 + (1 + s11 + (1 + s12 + (1 + s13 + (1 + s14 + (1 + s15 + (1 + s16 + (1 + s17 + 0)))))))))) :|: s8 >= 0, s8 <= 1 * 0 + 1, s9 >= 0, s9 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s10 >= 0, s10 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s11 >= 0, s11 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s12 >= 0, s12 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s13 >= 0, s13 <= 1 * (1 + (1 + 0)) + 1, s14 >= 0, s14 <= 1 * (1 + (1 + (1 + 0))) + 1, s15 >= 0, s15 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s16 >= 0, s16 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s17 >= 0, s17 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testInsertionsortD(z) -{ 12 }→ insertionsortD(1 + s18 + (1 + s19 + (1 + s20 + (1 + s21 + (1 + s22 + (1 + s23 + (1 + s24 + (1 + s25 + (1 + s26 + (1 + s27 + 0)))))))))) :|: s18 >= 0, s18 <= 1 * 0 + 1, s19 >= 0, s19 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s20 >= 0, s20 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s21 >= 0, s21 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s22 >= 0, s22 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s23 >= 0, s23 <= 1 * (1 + (1 + 0)) + 1, s24 >= 0, s24 <= 1 * (1 + (1 + (1 + 0))) + 1, s25 >= 0, s25 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s26 >= 0, s26 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s27 >= 0, s27 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testList(z) -{ 11 }→ 1 + s28 + (1 + s29 + (1 + s30 + (1 + s31 + (1 + s32 + (1 + s33 + (1 + s34 + (1 + s35 + (1 + s36 + (1 + s37 + 0))))))))) :|: s28 >= 0, s28 <= 1 * 0 + 1, s29 >= 0, s29 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s30 >= 0, s30 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s31 >= 0, s31 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s32 >= 0, s32 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s33 >= 0, s33 <= 1 * (1 + (1 + 0)) + 1, s34 >= 0, s34 <= 1 * (1 + (1 + (1 + 0))) + 1, s35 >= 0, s35 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s36 >= 0, s36 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s37 >= 0, s37 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
#compare: runtime: O(1) [0], size: O(1) [3] #cklt: runtime: O(1) [0], size: O(1) [2] #abs: runtime: O(1) [1], size: O(n1) [1 + z] #less: runtime: O(1) [1], size: O(1) [2] insertD#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insertD#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] insertD: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insert: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] testList: runtime: O(1) [11], size: O(1) [74] insertionsortD#1: runtime: O(n2) [1 + 4·z2], size: O(n1) [z] insertionsort#1: runtime: ?, size: O(n1) [z] |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#less(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ s5 :|: s5 >= 0, s5 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
insert(z, z') -{ 2 + 4·z' }→ s41 :|: s41 >= 0, s41 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insert#1(z, z') -{ 5 + 4·@ys }→ s43 :|: s43 >= 0, s43 <= 1 * z' + 1 * @y + 1 * @ys + 2, s6 >= 0, s6 <= 2, s2 >= 0, s2 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s42 :|: s42 >= 0, s42 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 2 + 4·z' }→ s38 :|: s38 >= 0, s38 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insertD#1(z, z') -{ 5 + 4·@ys }→ s40 :|: s40 >= 0, s40 <= 1 * z' + 1 * @y + 1 * @ys + 2, s7 >= 0, s7 <= 2, s3 >= 0, s3 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s39 :|: s39 >= 0, s39 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 1 }→ insertionsort#1(z) :|: z >= 0
insertionsort#1(z) -{ 2 }→ insert(@x, insertionsort#1(@xs)) :|: @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 2 + 4·z2 }→ s44 :|: s44 >= 0, s44 <= 1 * z, z >= 0
insertionsortD#1(z) -{ 5 + 4·@xs2 + 4·s45 }→ s46 :|: s45 >= 0, s45 <= 1 * @xs, s46 >= 0, s46 <= 1 * @x + 1 * s45 + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 12 }→ insertionsort(1 + s8 + (1 + s9 + (1 + s10 + (1 + s11 + (1 + s12 + (1 + s13 + (1 + s14 + (1 + s15 + (1 + s16 + (1 + s17 + 0)))))))))) :|: s8 >= 0, s8 <= 1 * 0 + 1, s9 >= 0, s9 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s10 >= 0, s10 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s11 >= 0, s11 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s12 >= 0, s12 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s13 >= 0, s13 <= 1 * (1 + (1 + 0)) + 1, s14 >= 0, s14 <= 1 * (1 + (1 + (1 + 0))) + 1, s15 >= 0, s15 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s16 >= 0, s16 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s17 >= 0, s17 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testInsertionsortD(z) -{ 12 }→ insertionsortD(1 + s18 + (1 + s19 + (1 + s20 + (1 + s21 + (1 + s22 + (1 + s23 + (1 + s24 + (1 + s25 + (1 + s26 + (1 + s27 + 0)))))))))) :|: s18 >= 0, s18 <= 1 * 0 + 1, s19 >= 0, s19 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s20 >= 0, s20 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s21 >= 0, s21 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s22 >= 0, s22 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s23 >= 0, s23 <= 1 * (1 + (1 + 0)) + 1, s24 >= 0, s24 <= 1 * (1 + (1 + (1 + 0))) + 1, s25 >= 0, s25 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s26 >= 0, s26 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s27 >= 0, s27 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testList(z) -{ 11 }→ 1 + s28 + (1 + s29 + (1 + s30 + (1 + s31 + (1 + s32 + (1 + s33 + (1 + s34 + (1 + s35 + (1 + s36 + (1 + s37 + 0))))))))) :|: s28 >= 0, s28 <= 1 * 0 + 1, s29 >= 0, s29 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s30 >= 0, s30 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s31 >= 0, s31 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s32 >= 0, s32 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s33 >= 0, s33 <= 1 * (1 + (1 + 0)) + 1, s34 >= 0, s34 <= 1 * (1 + (1 + (1 + 0))) + 1, s35 >= 0, s35 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s36 >= 0, s36 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s37 >= 0, s37 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
#compare: runtime: O(1) [0], size: O(1) [3] #cklt: runtime: O(1) [0], size: O(1) [2] #abs: runtime: O(1) [1], size: O(n1) [1 + z] #less: runtime: O(1) [1], size: O(1) [2] insertD#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insertD#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] insertD: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insert: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] testList: runtime: O(1) [11], size: O(1) [74] insertionsortD#1: runtime: O(n2) [1 + 4·z2], size: O(n1) [z] insertionsort#1: runtime: O(n2) [1 + 4·z2], size: O(n1) [z] |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#less(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ s5 :|: s5 >= 0, s5 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
insert(z, z') -{ 2 + 4·z' }→ s41 :|: s41 >= 0, s41 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insert#1(z, z') -{ 5 + 4·@ys }→ s43 :|: s43 >= 0, s43 <= 1 * z' + 1 * @y + 1 * @ys + 2, s6 >= 0, s6 <= 2, s2 >= 0, s2 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s42 :|: s42 >= 0, s42 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 2 + 4·z' }→ s38 :|: s38 >= 0, s38 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insertD#1(z, z') -{ 5 + 4·@ys }→ s40 :|: s40 >= 0, s40 <= 1 * z' + 1 * @y + 1 * @ys + 2, s7 >= 0, s7 <= 2, s3 >= 0, s3 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s39 :|: s39 >= 0, s39 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 2 + 4·z2 }→ s47 :|: s47 >= 0, s47 <= 1 * z, z >= 0
insertionsort#1(z) -{ 5 + 4·@xs2 + 4·s48 }→ s49 :|: s48 >= 0, s48 <= 1 * @xs, s49 >= 0, s49 <= 1 * @x + 1 * s48 + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 2 + 4·z2 }→ s44 :|: s44 >= 0, s44 <= 1 * z, z >= 0
insertionsortD#1(z) -{ 5 + 4·@xs2 + 4·s45 }→ s46 :|: s45 >= 0, s45 <= 1 * @xs, s46 >= 0, s46 <= 1 * @x + 1 * s45 + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 12 }→ insertionsort(1 + s8 + (1 + s9 + (1 + s10 + (1 + s11 + (1 + s12 + (1 + s13 + (1 + s14 + (1 + s15 + (1 + s16 + (1 + s17 + 0)))))))))) :|: s8 >= 0, s8 <= 1 * 0 + 1, s9 >= 0, s9 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s10 >= 0, s10 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s11 >= 0, s11 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s12 >= 0, s12 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s13 >= 0, s13 <= 1 * (1 + (1 + 0)) + 1, s14 >= 0, s14 <= 1 * (1 + (1 + (1 + 0))) + 1, s15 >= 0, s15 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s16 >= 0, s16 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s17 >= 0, s17 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testInsertionsortD(z) -{ 12 }→ insertionsortD(1 + s18 + (1 + s19 + (1 + s20 + (1 + s21 + (1 + s22 + (1 + s23 + (1 + s24 + (1 + s25 + (1 + s26 + (1 + s27 + 0)))))))))) :|: s18 >= 0, s18 <= 1 * 0 + 1, s19 >= 0, s19 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s20 >= 0, s20 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s21 >= 0, s21 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s22 >= 0, s22 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s23 >= 0, s23 <= 1 * (1 + (1 + 0)) + 1, s24 >= 0, s24 <= 1 * (1 + (1 + (1 + 0))) + 1, s25 >= 0, s25 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s26 >= 0, s26 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s27 >= 0, s27 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testList(z) -{ 11 }→ 1 + s28 + (1 + s29 + (1 + s30 + (1 + s31 + (1 + s32 + (1 + s33 + (1 + s34 + (1 + s35 + (1 + s36 + (1 + s37 + 0))))))))) :|: s28 >= 0, s28 <= 1 * 0 + 1, s29 >= 0, s29 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s30 >= 0, s30 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s31 >= 0, s31 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s32 >= 0, s32 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s33 >= 0, s33 <= 1 * (1 + (1 + 0)) + 1, s34 >= 0, s34 <= 1 * (1 + (1 + (1 + 0))) + 1, s35 >= 0, s35 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s36 >= 0, s36 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s37 >= 0, s37 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
#compare: runtime: O(1) [0], size: O(1) [3] #cklt: runtime: O(1) [0], size: O(1) [2] #abs: runtime: O(1) [1], size: O(n1) [1 + z] #less: runtime: O(1) [1], size: O(1) [2] insertD#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insertD#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] insertD: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insert: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] testList: runtime: O(1) [11], size: O(1) [74] insertionsortD#1: runtime: O(n2) [1 + 4·z2], size: O(n1) [z] insertionsort#1: runtime: O(n2) [1 + 4·z2], size: O(n1) [z] |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#less(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ s5 :|: s5 >= 0, s5 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
insert(z, z') -{ 2 + 4·z' }→ s41 :|: s41 >= 0, s41 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insert#1(z, z') -{ 5 + 4·@ys }→ s43 :|: s43 >= 0, s43 <= 1 * z' + 1 * @y + 1 * @ys + 2, s6 >= 0, s6 <= 2, s2 >= 0, s2 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s42 :|: s42 >= 0, s42 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 2 + 4·z' }→ s38 :|: s38 >= 0, s38 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insertD#1(z, z') -{ 5 + 4·@ys }→ s40 :|: s40 >= 0, s40 <= 1 * z' + 1 * @y + 1 * @ys + 2, s7 >= 0, s7 <= 2, s3 >= 0, s3 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s39 :|: s39 >= 0, s39 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 2 + 4·z2 }→ s47 :|: s47 >= 0, s47 <= 1 * z, z >= 0
insertionsort#1(z) -{ 5 + 4·@xs2 + 4·s48 }→ s49 :|: s48 >= 0, s48 <= 1 * @xs, s49 >= 0, s49 <= 1 * @x + 1 * s48 + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 2 + 4·z2 }→ s44 :|: s44 >= 0, s44 <= 1 * z, z >= 0
insertionsortD#1(z) -{ 5 + 4·@xs2 + 4·s45 }→ s46 :|: s45 >= 0, s45 <= 1 * @xs, s46 >= 0, s46 <= 1 * @x + 1 * s45 + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 12 }→ insertionsort(1 + s8 + (1 + s9 + (1 + s10 + (1 + s11 + (1 + s12 + (1 + s13 + (1 + s14 + (1 + s15 + (1 + s16 + (1 + s17 + 0)))))))))) :|: s8 >= 0, s8 <= 1 * 0 + 1, s9 >= 0, s9 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s10 >= 0, s10 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s11 >= 0, s11 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s12 >= 0, s12 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s13 >= 0, s13 <= 1 * (1 + (1 + 0)) + 1, s14 >= 0, s14 <= 1 * (1 + (1 + (1 + 0))) + 1, s15 >= 0, s15 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s16 >= 0, s16 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s17 >= 0, s17 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testInsertionsortD(z) -{ 12 }→ insertionsortD(1 + s18 + (1 + s19 + (1 + s20 + (1 + s21 + (1 + s22 + (1 + s23 + (1 + s24 + (1 + s25 + (1 + s26 + (1 + s27 + 0)))))))))) :|: s18 >= 0, s18 <= 1 * 0 + 1, s19 >= 0, s19 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s20 >= 0, s20 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s21 >= 0, s21 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s22 >= 0, s22 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s23 >= 0, s23 <= 1 * (1 + (1 + 0)) + 1, s24 >= 0, s24 <= 1 * (1 + (1 + (1 + 0))) + 1, s25 >= 0, s25 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s26 >= 0, s26 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s27 >= 0, s27 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testList(z) -{ 11 }→ 1 + s28 + (1 + s29 + (1 + s30 + (1 + s31 + (1 + s32 + (1 + s33 + (1 + s34 + (1 + s35 + (1 + s36 + (1 + s37 + 0))))))))) :|: s28 >= 0, s28 <= 1 * 0 + 1, s29 >= 0, s29 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s30 >= 0, s30 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s31 >= 0, s31 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s32 >= 0, s32 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s33 >= 0, s33 <= 1 * (1 + (1 + 0)) + 1, s34 >= 0, s34 <= 1 * (1 + (1 + (1 + 0))) + 1, s35 >= 0, s35 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s36 >= 0, s36 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s37 >= 0, s37 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
#compare: runtime: O(1) [0], size: O(1) [3] #cklt: runtime: O(1) [0], size: O(1) [2] #abs: runtime: O(1) [1], size: O(n1) [1 + z] #less: runtime: O(1) [1], size: O(1) [2] insertD#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insertD#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] insertD: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insert: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] testList: runtime: O(1) [11], size: O(1) [74] insertionsortD#1: runtime: O(n2) [1 + 4·z2], size: O(n1) [z] insertionsort#1: runtime: O(n2) [1 + 4·z2], size: O(n1) [z] insertionsortD: runtime: ?, size: O(n1) [z] |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#less(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ s5 :|: s5 >= 0, s5 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
insert(z, z') -{ 2 + 4·z' }→ s41 :|: s41 >= 0, s41 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insert#1(z, z') -{ 5 + 4·@ys }→ s43 :|: s43 >= 0, s43 <= 1 * z' + 1 * @y + 1 * @ys + 2, s6 >= 0, s6 <= 2, s2 >= 0, s2 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s42 :|: s42 >= 0, s42 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 2 + 4·z' }→ s38 :|: s38 >= 0, s38 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insertD#1(z, z') -{ 5 + 4·@ys }→ s40 :|: s40 >= 0, s40 <= 1 * z' + 1 * @y + 1 * @ys + 2, s7 >= 0, s7 <= 2, s3 >= 0, s3 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s39 :|: s39 >= 0, s39 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 2 + 4·z2 }→ s47 :|: s47 >= 0, s47 <= 1 * z, z >= 0
insertionsort#1(z) -{ 5 + 4·@xs2 + 4·s48 }→ s49 :|: s48 >= 0, s48 <= 1 * @xs, s49 >= 0, s49 <= 1 * @x + 1 * s48 + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 2 + 4·z2 }→ s44 :|: s44 >= 0, s44 <= 1 * z, z >= 0
insertionsortD#1(z) -{ 5 + 4·@xs2 + 4·s45 }→ s46 :|: s45 >= 0, s45 <= 1 * @xs, s46 >= 0, s46 <= 1 * @x + 1 * s45 + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 12 }→ insertionsort(1 + s8 + (1 + s9 + (1 + s10 + (1 + s11 + (1 + s12 + (1 + s13 + (1 + s14 + (1 + s15 + (1 + s16 + (1 + s17 + 0)))))))))) :|: s8 >= 0, s8 <= 1 * 0 + 1, s9 >= 0, s9 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s10 >= 0, s10 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s11 >= 0, s11 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s12 >= 0, s12 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s13 >= 0, s13 <= 1 * (1 + (1 + 0)) + 1, s14 >= 0, s14 <= 1 * (1 + (1 + (1 + 0))) + 1, s15 >= 0, s15 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s16 >= 0, s16 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s17 >= 0, s17 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testInsertionsortD(z) -{ 12 }→ insertionsortD(1 + s18 + (1 + s19 + (1 + s20 + (1 + s21 + (1 + s22 + (1 + s23 + (1 + s24 + (1 + s25 + (1 + s26 + (1 + s27 + 0)))))))))) :|: s18 >= 0, s18 <= 1 * 0 + 1, s19 >= 0, s19 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s20 >= 0, s20 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s21 >= 0, s21 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s22 >= 0, s22 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s23 >= 0, s23 <= 1 * (1 + (1 + 0)) + 1, s24 >= 0, s24 <= 1 * (1 + (1 + (1 + 0))) + 1, s25 >= 0, s25 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s26 >= 0, s26 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s27 >= 0, s27 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testList(z) -{ 11 }→ 1 + s28 + (1 + s29 + (1 + s30 + (1 + s31 + (1 + s32 + (1 + s33 + (1 + s34 + (1 + s35 + (1 + s36 + (1 + s37 + 0))))))))) :|: s28 >= 0, s28 <= 1 * 0 + 1, s29 >= 0, s29 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s30 >= 0, s30 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s31 >= 0, s31 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s32 >= 0, s32 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s33 >= 0, s33 <= 1 * (1 + (1 + 0)) + 1, s34 >= 0, s34 <= 1 * (1 + (1 + (1 + 0))) + 1, s35 >= 0, s35 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s36 >= 0, s36 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s37 >= 0, s37 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
#compare: runtime: O(1) [0], size: O(1) [3] #cklt: runtime: O(1) [0], size: O(1) [2] #abs: runtime: O(1) [1], size: O(n1) [1 + z] #less: runtime: O(1) [1], size: O(1) [2] insertD#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insertD#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] insertD: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insert: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] testList: runtime: O(1) [11], size: O(1) [74] insertionsortD#1: runtime: O(n2) [1 + 4·z2], size: O(n1) [z] insertionsort#1: runtime: O(n2) [1 + 4·z2], size: O(n1) [z] insertionsortD: runtime: O(n2) [2 + 4·z2], size: O(n1) [z] |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#less(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ s5 :|: s5 >= 0, s5 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
insert(z, z') -{ 2 + 4·z' }→ s41 :|: s41 >= 0, s41 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insert#1(z, z') -{ 5 + 4·@ys }→ s43 :|: s43 >= 0, s43 <= 1 * z' + 1 * @y + 1 * @ys + 2, s6 >= 0, s6 <= 2, s2 >= 0, s2 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s42 :|: s42 >= 0, s42 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 2 + 4·z' }→ s38 :|: s38 >= 0, s38 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insertD#1(z, z') -{ 5 + 4·@ys }→ s40 :|: s40 >= 0, s40 <= 1 * z' + 1 * @y + 1 * @ys + 2, s7 >= 0, s7 <= 2, s3 >= 0, s3 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s39 :|: s39 >= 0, s39 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 2 + 4·z2 }→ s47 :|: s47 >= 0, s47 <= 1 * z, z >= 0
insertionsort#1(z) -{ 5 + 4·@xs2 + 4·s48 }→ s49 :|: s48 >= 0, s48 <= 1 * @xs, s49 >= 0, s49 <= 1 * @x + 1 * s48 + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 2 + 4·z2 }→ s44 :|: s44 >= 0, s44 <= 1 * z, z >= 0
insertionsortD#1(z) -{ 5 + 4·@xs2 + 4·s45 }→ s46 :|: s45 >= 0, s45 <= 1 * @xs, s46 >= 0, s46 <= 1 * @x + 1 * s45 + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 12 }→ insertionsort(1 + s8 + (1 + s9 + (1 + s10 + (1 + s11 + (1 + s12 + (1 + s13 + (1 + s14 + (1 + s15 + (1 + s16 + (1 + s17 + 0)))))))))) :|: s8 >= 0, s8 <= 1 * 0 + 1, s9 >= 0, s9 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s10 >= 0, s10 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s11 >= 0, s11 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s12 >= 0, s12 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s13 >= 0, s13 <= 1 * (1 + (1 + 0)) + 1, s14 >= 0, s14 <= 1 * (1 + (1 + (1 + 0))) + 1, s15 >= 0, s15 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s16 >= 0, s16 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s17 >= 0, s17 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testInsertionsortD(z) -{ 414 + 80·s18 + 8·s18·s19 + 8·s18·s20 + 8·s18·s21 + 8·s18·s22 + 8·s18·s23 + 8·s18·s24 + 8·s18·s25 + 8·s18·s26 + 8·s18·s27 + 4·s182 + 80·s19 + 8·s19·s20 + 8·s19·s21 + 8·s19·s22 + 8·s19·s23 + 8·s19·s24 + 8·s19·s25 + 8·s19·s26 + 8·s19·s27 + 4·s192 + 80·s20 + 8·s20·s21 + 8·s20·s22 + 8·s20·s23 + 8·s20·s24 + 8·s20·s25 + 8·s20·s26 + 8·s20·s27 + 4·s202 + 80·s21 + 8·s21·s22 + 8·s21·s23 + 8·s21·s24 + 8·s21·s25 + 8·s21·s26 + 8·s21·s27 + 4·s212 + 80·s22 + 8·s22·s23 + 8·s22·s24 + 8·s22·s25 + 8·s22·s26 + 8·s22·s27 + 4·s222 + 80·s23 + 8·s23·s24 + 8·s23·s25 + 8·s23·s26 + 8·s23·s27 + 4·s232 + 80·s24 + 8·s24·s25 + 8·s24·s26 + 8·s24·s27 + 4·s242 + 80·s25 + 8·s25·s26 + 8·s25·s27 + 4·s252 + 80·s26 + 8·s26·s27 + 4·s262 + 80·s27 + 4·s272 }→ s50 :|: s50 >= 0, s50 <= 1 * (1 + s18 + (1 + s19 + (1 + s20 + (1 + s21 + (1 + s22 + (1 + s23 + (1 + s24 + (1 + s25 + (1 + s26 + (1 + s27 + 0)))))))))), s18 >= 0, s18 <= 1 * 0 + 1, s19 >= 0, s19 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s20 >= 0, s20 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s21 >= 0, s21 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s22 >= 0, s22 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s23 >= 0, s23 <= 1 * (1 + (1 + 0)) + 1, s24 >= 0, s24 <= 1 * (1 + (1 + (1 + 0))) + 1, s25 >= 0, s25 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s26 >= 0, s26 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s27 >= 0, s27 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testList(z) -{ 11 }→ 1 + s28 + (1 + s29 + (1 + s30 + (1 + s31 + (1 + s32 + (1 + s33 + (1 + s34 + (1 + s35 + (1 + s36 + (1 + s37 + 0))))))))) :|: s28 >= 0, s28 <= 1 * 0 + 1, s29 >= 0, s29 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s30 >= 0, s30 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s31 >= 0, s31 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s32 >= 0, s32 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s33 >= 0, s33 <= 1 * (1 + (1 + 0)) + 1, s34 >= 0, s34 <= 1 * (1 + (1 + (1 + 0))) + 1, s35 >= 0, s35 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s36 >= 0, s36 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s37 >= 0, s37 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
#compare: runtime: O(1) [0], size: O(1) [3] #cklt: runtime: O(1) [0], size: O(1) [2] #abs: runtime: O(1) [1], size: O(n1) [1 + z] #less: runtime: O(1) [1], size: O(1) [2] insertD#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insertD#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] insertD: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insert: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] testList: runtime: O(1) [11], size: O(1) [74] insertionsortD#1: runtime: O(n2) [1 + 4·z2], size: O(n1) [z] insertionsort#1: runtime: O(n2) [1 + 4·z2], size: O(n1) [z] insertionsortD: runtime: O(n2) [2 + 4·z2], size: O(n1) [z] |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#less(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ s5 :|: s5 >= 0, s5 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
insert(z, z') -{ 2 + 4·z' }→ s41 :|: s41 >= 0, s41 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insert#1(z, z') -{ 5 + 4·@ys }→ s43 :|: s43 >= 0, s43 <= 1 * z' + 1 * @y + 1 * @ys + 2, s6 >= 0, s6 <= 2, s2 >= 0, s2 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s42 :|: s42 >= 0, s42 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 2 + 4·z' }→ s38 :|: s38 >= 0, s38 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insertD#1(z, z') -{ 5 + 4·@ys }→ s40 :|: s40 >= 0, s40 <= 1 * z' + 1 * @y + 1 * @ys + 2, s7 >= 0, s7 <= 2, s3 >= 0, s3 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s39 :|: s39 >= 0, s39 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 2 + 4·z2 }→ s47 :|: s47 >= 0, s47 <= 1 * z, z >= 0
insertionsort#1(z) -{ 5 + 4·@xs2 + 4·s48 }→ s49 :|: s48 >= 0, s48 <= 1 * @xs, s49 >= 0, s49 <= 1 * @x + 1 * s48 + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 2 + 4·z2 }→ s44 :|: s44 >= 0, s44 <= 1 * z, z >= 0
insertionsortD#1(z) -{ 5 + 4·@xs2 + 4·s45 }→ s46 :|: s45 >= 0, s45 <= 1 * @xs, s46 >= 0, s46 <= 1 * @x + 1 * s45 + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 12 }→ insertionsort(1 + s8 + (1 + s9 + (1 + s10 + (1 + s11 + (1 + s12 + (1 + s13 + (1 + s14 + (1 + s15 + (1 + s16 + (1 + s17 + 0)))))))))) :|: s8 >= 0, s8 <= 1 * 0 + 1, s9 >= 0, s9 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s10 >= 0, s10 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s11 >= 0, s11 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s12 >= 0, s12 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s13 >= 0, s13 <= 1 * (1 + (1 + 0)) + 1, s14 >= 0, s14 <= 1 * (1 + (1 + (1 + 0))) + 1, s15 >= 0, s15 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s16 >= 0, s16 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s17 >= 0, s17 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testInsertionsortD(z) -{ 414 + 80·s18 + 8·s18·s19 + 8·s18·s20 + 8·s18·s21 + 8·s18·s22 + 8·s18·s23 + 8·s18·s24 + 8·s18·s25 + 8·s18·s26 + 8·s18·s27 + 4·s182 + 80·s19 + 8·s19·s20 + 8·s19·s21 + 8·s19·s22 + 8·s19·s23 + 8·s19·s24 + 8·s19·s25 + 8·s19·s26 + 8·s19·s27 + 4·s192 + 80·s20 + 8·s20·s21 + 8·s20·s22 + 8·s20·s23 + 8·s20·s24 + 8·s20·s25 + 8·s20·s26 + 8·s20·s27 + 4·s202 + 80·s21 + 8·s21·s22 + 8·s21·s23 + 8·s21·s24 + 8·s21·s25 + 8·s21·s26 + 8·s21·s27 + 4·s212 + 80·s22 + 8·s22·s23 + 8·s22·s24 + 8·s22·s25 + 8·s22·s26 + 8·s22·s27 + 4·s222 + 80·s23 + 8·s23·s24 + 8·s23·s25 + 8·s23·s26 + 8·s23·s27 + 4·s232 + 80·s24 + 8·s24·s25 + 8·s24·s26 + 8·s24·s27 + 4·s242 + 80·s25 + 8·s25·s26 + 8·s25·s27 + 4·s252 + 80·s26 + 8·s26·s27 + 4·s262 + 80·s27 + 4·s272 }→ s50 :|: s50 >= 0, s50 <= 1 * (1 + s18 + (1 + s19 + (1 + s20 + (1 + s21 + (1 + s22 + (1 + s23 + (1 + s24 + (1 + s25 + (1 + s26 + (1 + s27 + 0)))))))))), s18 >= 0, s18 <= 1 * 0 + 1, s19 >= 0, s19 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s20 >= 0, s20 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s21 >= 0, s21 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s22 >= 0, s22 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s23 >= 0, s23 <= 1 * (1 + (1 + 0)) + 1, s24 >= 0, s24 <= 1 * (1 + (1 + (1 + 0))) + 1, s25 >= 0, s25 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s26 >= 0, s26 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s27 >= 0, s27 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testList(z) -{ 11 }→ 1 + s28 + (1 + s29 + (1 + s30 + (1 + s31 + (1 + s32 + (1 + s33 + (1 + s34 + (1 + s35 + (1 + s36 + (1 + s37 + 0))))))))) :|: s28 >= 0, s28 <= 1 * 0 + 1, s29 >= 0, s29 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s30 >= 0, s30 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s31 >= 0, s31 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s32 >= 0, s32 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s33 >= 0, s33 <= 1 * (1 + (1 + 0)) + 1, s34 >= 0, s34 <= 1 * (1 + (1 + (1 + 0))) + 1, s35 >= 0, s35 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s36 >= 0, s36 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s37 >= 0, s37 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
#compare: runtime: O(1) [0], size: O(1) [3] #cklt: runtime: O(1) [0], size: O(1) [2] #abs: runtime: O(1) [1], size: O(n1) [1 + z] #less: runtime: O(1) [1], size: O(1) [2] insertD#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insertD#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] insertD: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insert: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] testList: runtime: O(1) [11], size: O(1) [74] insertionsortD#1: runtime: O(n2) [1 + 4·z2], size: O(n1) [z] insertionsort#1: runtime: O(n2) [1 + 4·z2], size: O(n1) [z] insertionsortD: runtime: O(n2) [2 + 4·z2], size: O(n1) [z] insertionsort: runtime: ?, size: O(n1) [z] |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#less(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ s5 :|: s5 >= 0, s5 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
insert(z, z') -{ 2 + 4·z' }→ s41 :|: s41 >= 0, s41 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insert#1(z, z') -{ 5 + 4·@ys }→ s43 :|: s43 >= 0, s43 <= 1 * z' + 1 * @y + 1 * @ys + 2, s6 >= 0, s6 <= 2, s2 >= 0, s2 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s42 :|: s42 >= 0, s42 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 2 + 4·z' }→ s38 :|: s38 >= 0, s38 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insertD#1(z, z') -{ 5 + 4·@ys }→ s40 :|: s40 >= 0, s40 <= 1 * z' + 1 * @y + 1 * @ys + 2, s7 >= 0, s7 <= 2, s3 >= 0, s3 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s39 :|: s39 >= 0, s39 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 2 + 4·z2 }→ s47 :|: s47 >= 0, s47 <= 1 * z, z >= 0
insertionsort#1(z) -{ 5 + 4·@xs2 + 4·s48 }→ s49 :|: s48 >= 0, s48 <= 1 * @xs, s49 >= 0, s49 <= 1 * @x + 1 * s48 + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 2 + 4·z2 }→ s44 :|: s44 >= 0, s44 <= 1 * z, z >= 0
insertionsortD#1(z) -{ 5 + 4·@xs2 + 4·s45 }→ s46 :|: s45 >= 0, s45 <= 1 * @xs, s46 >= 0, s46 <= 1 * @x + 1 * s45 + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 12 }→ insertionsort(1 + s8 + (1 + s9 + (1 + s10 + (1 + s11 + (1 + s12 + (1 + s13 + (1 + s14 + (1 + s15 + (1 + s16 + (1 + s17 + 0)))))))))) :|: s8 >= 0, s8 <= 1 * 0 + 1, s9 >= 0, s9 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s10 >= 0, s10 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s11 >= 0, s11 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s12 >= 0, s12 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s13 >= 0, s13 <= 1 * (1 + (1 + 0)) + 1, s14 >= 0, s14 <= 1 * (1 + (1 + (1 + 0))) + 1, s15 >= 0, s15 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s16 >= 0, s16 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s17 >= 0, s17 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testInsertionsortD(z) -{ 414 + 80·s18 + 8·s18·s19 + 8·s18·s20 + 8·s18·s21 + 8·s18·s22 + 8·s18·s23 + 8·s18·s24 + 8·s18·s25 + 8·s18·s26 + 8·s18·s27 + 4·s182 + 80·s19 + 8·s19·s20 + 8·s19·s21 + 8·s19·s22 + 8·s19·s23 + 8·s19·s24 + 8·s19·s25 + 8·s19·s26 + 8·s19·s27 + 4·s192 + 80·s20 + 8·s20·s21 + 8·s20·s22 + 8·s20·s23 + 8·s20·s24 + 8·s20·s25 + 8·s20·s26 + 8·s20·s27 + 4·s202 + 80·s21 + 8·s21·s22 + 8·s21·s23 + 8·s21·s24 + 8·s21·s25 + 8·s21·s26 + 8·s21·s27 + 4·s212 + 80·s22 + 8·s22·s23 + 8·s22·s24 + 8·s22·s25 + 8·s22·s26 + 8·s22·s27 + 4·s222 + 80·s23 + 8·s23·s24 + 8·s23·s25 + 8·s23·s26 + 8·s23·s27 + 4·s232 + 80·s24 + 8·s24·s25 + 8·s24·s26 + 8·s24·s27 + 4·s242 + 80·s25 + 8·s25·s26 + 8·s25·s27 + 4·s252 + 80·s26 + 8·s26·s27 + 4·s262 + 80·s27 + 4·s272 }→ s50 :|: s50 >= 0, s50 <= 1 * (1 + s18 + (1 + s19 + (1 + s20 + (1 + s21 + (1 + s22 + (1 + s23 + (1 + s24 + (1 + s25 + (1 + s26 + (1 + s27 + 0)))))))))), s18 >= 0, s18 <= 1 * 0 + 1, s19 >= 0, s19 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s20 >= 0, s20 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s21 >= 0, s21 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s22 >= 0, s22 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s23 >= 0, s23 <= 1 * (1 + (1 + 0)) + 1, s24 >= 0, s24 <= 1 * (1 + (1 + (1 + 0))) + 1, s25 >= 0, s25 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s26 >= 0, s26 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s27 >= 0, s27 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testList(z) -{ 11 }→ 1 + s28 + (1 + s29 + (1 + s30 + (1 + s31 + (1 + s32 + (1 + s33 + (1 + s34 + (1 + s35 + (1 + s36 + (1 + s37 + 0))))))))) :|: s28 >= 0, s28 <= 1 * 0 + 1, s29 >= 0, s29 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s30 >= 0, s30 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s31 >= 0, s31 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s32 >= 0, s32 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s33 >= 0, s33 <= 1 * (1 + (1 + 0)) + 1, s34 >= 0, s34 <= 1 * (1 + (1 + (1 + 0))) + 1, s35 >= 0, s35 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s36 >= 0, s36 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s37 >= 0, s37 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
#compare: runtime: O(1) [0], size: O(1) [3] #cklt: runtime: O(1) [0], size: O(1) [2] #abs: runtime: O(1) [1], size: O(n1) [1 + z] #less: runtime: O(1) [1], size: O(1) [2] insertD#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insertD#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] insertD: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insert: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] testList: runtime: O(1) [11], size: O(1) [74] insertionsortD#1: runtime: O(n2) [1 + 4·z2], size: O(n1) [z] insertionsort#1: runtime: O(n2) [1 + 4·z2], size: O(n1) [z] insertionsortD: runtime: O(n2) [2 + 4·z2], size: O(n1) [z] insertionsort: runtime: O(n2) [2 + 4·z2], size: O(n1) [z] |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#less(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ s5 :|: s5 >= 0, s5 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
insert(z, z') -{ 2 + 4·z' }→ s41 :|: s41 >= 0, s41 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insert#1(z, z') -{ 5 + 4·@ys }→ s43 :|: s43 >= 0, s43 <= 1 * z' + 1 * @y + 1 * @ys + 2, s6 >= 0, s6 <= 2, s2 >= 0, s2 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s42 :|: s42 >= 0, s42 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 2 + 4·z' }→ s38 :|: s38 >= 0, s38 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insertD#1(z, z') -{ 5 + 4·@ys }→ s40 :|: s40 >= 0, s40 <= 1 * z' + 1 * @y + 1 * @ys + 2, s7 >= 0, s7 <= 2, s3 >= 0, s3 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s39 :|: s39 >= 0, s39 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 2 + 4·z2 }→ s47 :|: s47 >= 0, s47 <= 1 * z, z >= 0
insertionsort#1(z) -{ 5 + 4·@xs2 + 4·s48 }→ s49 :|: s48 >= 0, s48 <= 1 * @xs, s49 >= 0, s49 <= 1 * @x + 1 * s48 + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 2 + 4·z2 }→ s44 :|: s44 >= 0, s44 <= 1 * z, z >= 0
insertionsortD#1(z) -{ 5 + 4·@xs2 + 4·s45 }→ s46 :|: s45 >= 0, s45 <= 1 * @xs, s46 >= 0, s46 <= 1 * @x + 1 * s45 + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 414 + 80·s10 + 8·s10·s11 + 8·s10·s12 + 8·s10·s13 + 8·s10·s14 + 8·s10·s15 + 8·s10·s16 + 8·s10·s17 + 8·s10·s8 + 8·s10·s9 + 4·s102 + 80·s11 + 8·s11·s12 + 8·s11·s13 + 8·s11·s14 + 8·s11·s15 + 8·s11·s16 + 8·s11·s17 + 8·s11·s8 + 8·s11·s9 + 4·s112 + 80·s12 + 8·s12·s13 + 8·s12·s14 + 8·s12·s15 + 8·s12·s16 + 8·s12·s17 + 8·s12·s8 + 8·s12·s9 + 4·s122 + 80·s13 + 8·s13·s14 + 8·s13·s15 + 8·s13·s16 + 8·s13·s17 + 8·s13·s8 + 8·s13·s9 + 4·s132 + 80·s14 + 8·s14·s15 + 8·s14·s16 + 8·s14·s17 + 8·s14·s8 + 8·s14·s9 + 4·s142 + 80·s15 + 8·s15·s16 + 8·s15·s17 + 8·s15·s8 + 8·s15·s9 + 4·s152 + 80·s16 + 8·s16·s17 + 8·s16·s8 + 8·s16·s9 + 4·s162 + 80·s17 + 8·s17·s8 + 8·s17·s9 + 4·s172 + 80·s8 + 8·s8·s9 + 4·s82 + 80·s9 + 4·s92 }→ s51 :|: s51 >= 0, s51 <= 1 * (1 + s8 + (1 + s9 + (1 + s10 + (1 + s11 + (1 + s12 + (1 + s13 + (1 + s14 + (1 + s15 + (1 + s16 + (1 + s17 + 0)))))))))), s8 >= 0, s8 <= 1 * 0 + 1, s9 >= 0, s9 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s10 >= 0, s10 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s11 >= 0, s11 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s12 >= 0, s12 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s13 >= 0, s13 <= 1 * (1 + (1 + 0)) + 1, s14 >= 0, s14 <= 1 * (1 + (1 + (1 + 0))) + 1, s15 >= 0, s15 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s16 >= 0, s16 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s17 >= 0, s17 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testInsertionsortD(z) -{ 414 + 80·s18 + 8·s18·s19 + 8·s18·s20 + 8·s18·s21 + 8·s18·s22 + 8·s18·s23 + 8·s18·s24 + 8·s18·s25 + 8·s18·s26 + 8·s18·s27 + 4·s182 + 80·s19 + 8·s19·s20 + 8·s19·s21 + 8·s19·s22 + 8·s19·s23 + 8·s19·s24 + 8·s19·s25 + 8·s19·s26 + 8·s19·s27 + 4·s192 + 80·s20 + 8·s20·s21 + 8·s20·s22 + 8·s20·s23 + 8·s20·s24 + 8·s20·s25 + 8·s20·s26 + 8·s20·s27 + 4·s202 + 80·s21 + 8·s21·s22 + 8·s21·s23 + 8·s21·s24 + 8·s21·s25 + 8·s21·s26 + 8·s21·s27 + 4·s212 + 80·s22 + 8·s22·s23 + 8·s22·s24 + 8·s22·s25 + 8·s22·s26 + 8·s22·s27 + 4·s222 + 80·s23 + 8·s23·s24 + 8·s23·s25 + 8·s23·s26 + 8·s23·s27 + 4·s232 + 80·s24 + 8·s24·s25 + 8·s24·s26 + 8·s24·s27 + 4·s242 + 80·s25 + 8·s25·s26 + 8·s25·s27 + 4·s252 + 80·s26 + 8·s26·s27 + 4·s262 + 80·s27 + 4·s272 }→ s50 :|: s50 >= 0, s50 <= 1 * (1 + s18 + (1 + s19 + (1 + s20 + (1 + s21 + (1 + s22 + (1 + s23 + (1 + s24 + (1 + s25 + (1 + s26 + (1 + s27 + 0)))))))))), s18 >= 0, s18 <= 1 * 0 + 1, s19 >= 0, s19 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s20 >= 0, s20 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s21 >= 0, s21 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s22 >= 0, s22 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s23 >= 0, s23 <= 1 * (1 + (1 + 0)) + 1, s24 >= 0, s24 <= 1 * (1 + (1 + (1 + 0))) + 1, s25 >= 0, s25 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s26 >= 0, s26 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s27 >= 0, s27 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testList(z) -{ 11 }→ 1 + s28 + (1 + s29 + (1 + s30 + (1 + s31 + (1 + s32 + (1 + s33 + (1 + s34 + (1 + s35 + (1 + s36 + (1 + s37 + 0))))))))) :|: s28 >= 0, s28 <= 1 * 0 + 1, s29 >= 0, s29 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s30 >= 0, s30 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s31 >= 0, s31 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s32 >= 0, s32 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s33 >= 0, s33 <= 1 * (1 + (1 + 0)) + 1, s34 >= 0, s34 <= 1 * (1 + (1 + (1 + 0))) + 1, s35 >= 0, s35 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s36 >= 0, s36 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s37 >= 0, s37 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
#compare: runtime: O(1) [0], size: O(1) [3] #cklt: runtime: O(1) [0], size: O(1) [2] #abs: runtime: O(1) [1], size: O(n1) [1 + z] #less: runtime: O(1) [1], size: O(1) [2] insertD#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insertD#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] insertD: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insert: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] testList: runtime: O(1) [11], size: O(1) [74] insertionsortD#1: runtime: O(n2) [1 + 4·z2], size: O(n1) [z] insertionsort#1: runtime: O(n2) [1 + 4·z2], size: O(n1) [z] insertionsortD: runtime: O(n2) [2 + 4·z2], size: O(n1) [z] insertionsort: runtime: O(n2) [2 + 4·z2], size: O(n1) [z] |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#less(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ s5 :|: s5 >= 0, s5 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
insert(z, z') -{ 2 + 4·z' }→ s41 :|: s41 >= 0, s41 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insert#1(z, z') -{ 5 + 4·@ys }→ s43 :|: s43 >= 0, s43 <= 1 * z' + 1 * @y + 1 * @ys + 2, s6 >= 0, s6 <= 2, s2 >= 0, s2 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s42 :|: s42 >= 0, s42 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 2 + 4·z' }→ s38 :|: s38 >= 0, s38 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insertD#1(z, z') -{ 5 + 4·@ys }→ s40 :|: s40 >= 0, s40 <= 1 * z' + 1 * @y + 1 * @ys + 2, s7 >= 0, s7 <= 2, s3 >= 0, s3 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s39 :|: s39 >= 0, s39 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 2 + 4·z2 }→ s47 :|: s47 >= 0, s47 <= 1 * z, z >= 0
insertionsort#1(z) -{ 5 + 4·@xs2 + 4·s48 }→ s49 :|: s48 >= 0, s48 <= 1 * @xs, s49 >= 0, s49 <= 1 * @x + 1 * s48 + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 2 + 4·z2 }→ s44 :|: s44 >= 0, s44 <= 1 * z, z >= 0
insertionsortD#1(z) -{ 5 + 4·@xs2 + 4·s45 }→ s46 :|: s45 >= 0, s45 <= 1 * @xs, s46 >= 0, s46 <= 1 * @x + 1 * s45 + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 414 + 80·s10 + 8·s10·s11 + 8·s10·s12 + 8·s10·s13 + 8·s10·s14 + 8·s10·s15 + 8·s10·s16 + 8·s10·s17 + 8·s10·s8 + 8·s10·s9 + 4·s102 + 80·s11 + 8·s11·s12 + 8·s11·s13 + 8·s11·s14 + 8·s11·s15 + 8·s11·s16 + 8·s11·s17 + 8·s11·s8 + 8·s11·s9 + 4·s112 + 80·s12 + 8·s12·s13 + 8·s12·s14 + 8·s12·s15 + 8·s12·s16 + 8·s12·s17 + 8·s12·s8 + 8·s12·s9 + 4·s122 + 80·s13 + 8·s13·s14 + 8·s13·s15 + 8·s13·s16 + 8·s13·s17 + 8·s13·s8 + 8·s13·s9 + 4·s132 + 80·s14 + 8·s14·s15 + 8·s14·s16 + 8·s14·s17 + 8·s14·s8 + 8·s14·s9 + 4·s142 + 80·s15 + 8·s15·s16 + 8·s15·s17 + 8·s15·s8 + 8·s15·s9 + 4·s152 + 80·s16 + 8·s16·s17 + 8·s16·s8 + 8·s16·s9 + 4·s162 + 80·s17 + 8·s17·s8 + 8·s17·s9 + 4·s172 + 80·s8 + 8·s8·s9 + 4·s82 + 80·s9 + 4·s92 }→ s51 :|: s51 >= 0, s51 <= 1 * (1 + s8 + (1 + s9 + (1 + s10 + (1 + s11 + (1 + s12 + (1 + s13 + (1 + s14 + (1 + s15 + (1 + s16 + (1 + s17 + 0)))))))))), s8 >= 0, s8 <= 1 * 0 + 1, s9 >= 0, s9 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s10 >= 0, s10 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s11 >= 0, s11 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s12 >= 0, s12 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s13 >= 0, s13 <= 1 * (1 + (1 + 0)) + 1, s14 >= 0, s14 <= 1 * (1 + (1 + (1 + 0))) + 1, s15 >= 0, s15 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s16 >= 0, s16 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s17 >= 0, s17 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testInsertionsortD(z) -{ 414 + 80·s18 + 8·s18·s19 + 8·s18·s20 + 8·s18·s21 + 8·s18·s22 + 8·s18·s23 + 8·s18·s24 + 8·s18·s25 + 8·s18·s26 + 8·s18·s27 + 4·s182 + 80·s19 + 8·s19·s20 + 8·s19·s21 + 8·s19·s22 + 8·s19·s23 + 8·s19·s24 + 8·s19·s25 + 8·s19·s26 + 8·s19·s27 + 4·s192 + 80·s20 + 8·s20·s21 + 8·s20·s22 + 8·s20·s23 + 8·s20·s24 + 8·s20·s25 + 8·s20·s26 + 8·s20·s27 + 4·s202 + 80·s21 + 8·s21·s22 + 8·s21·s23 + 8·s21·s24 + 8·s21·s25 + 8·s21·s26 + 8·s21·s27 + 4·s212 + 80·s22 + 8·s22·s23 + 8·s22·s24 + 8·s22·s25 + 8·s22·s26 + 8·s22·s27 + 4·s222 + 80·s23 + 8·s23·s24 + 8·s23·s25 + 8·s23·s26 + 8·s23·s27 + 4·s232 + 80·s24 + 8·s24·s25 + 8·s24·s26 + 8·s24·s27 + 4·s242 + 80·s25 + 8·s25·s26 + 8·s25·s27 + 4·s252 + 80·s26 + 8·s26·s27 + 4·s262 + 80·s27 + 4·s272 }→ s50 :|: s50 >= 0, s50 <= 1 * (1 + s18 + (1 + s19 + (1 + s20 + (1 + s21 + (1 + s22 + (1 + s23 + (1 + s24 + (1 + s25 + (1 + s26 + (1 + s27 + 0)))))))))), s18 >= 0, s18 <= 1 * 0 + 1, s19 >= 0, s19 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s20 >= 0, s20 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s21 >= 0, s21 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s22 >= 0, s22 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s23 >= 0, s23 <= 1 * (1 + (1 + 0)) + 1, s24 >= 0, s24 <= 1 * (1 + (1 + (1 + 0))) + 1, s25 >= 0, s25 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s26 >= 0, s26 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s27 >= 0, s27 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testList(z) -{ 11 }→ 1 + s28 + (1 + s29 + (1 + s30 + (1 + s31 + (1 + s32 + (1 + s33 + (1 + s34 + (1 + s35 + (1 + s36 + (1 + s37 + 0))))))))) :|: s28 >= 0, s28 <= 1 * 0 + 1, s29 >= 0, s29 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s30 >= 0, s30 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s31 >= 0, s31 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s32 >= 0, s32 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s33 >= 0, s33 <= 1 * (1 + (1 + 0)) + 1, s34 >= 0, s34 <= 1 * (1 + (1 + (1 + 0))) + 1, s35 >= 0, s35 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s36 >= 0, s36 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s37 >= 0, s37 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
#compare: runtime: O(1) [0], size: O(1) [3] #cklt: runtime: O(1) [0], size: O(1) [2] #abs: runtime: O(1) [1], size: O(n1) [1 + z] #less: runtime: O(1) [1], size: O(1) [2] insertD#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insertD#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] insertD: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insert: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] testList: runtime: O(1) [11], size: O(1) [74] insertionsortD#1: runtime: O(n2) [1 + 4·z2], size: O(n1) [z] insertionsort#1: runtime: O(n2) [1 + 4·z2], size: O(n1) [z] insertionsortD: runtime: O(n2) [2 + 4·z2], size: O(n1) [z] insertionsort: runtime: O(n2) [2 + 4·z2], size: O(n1) [z] testInsertionsortD: runtime: ?, size: O(1) [74] |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#less(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ s5 :|: s5 >= 0, s5 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
insert(z, z') -{ 2 + 4·z' }→ s41 :|: s41 >= 0, s41 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insert#1(z, z') -{ 5 + 4·@ys }→ s43 :|: s43 >= 0, s43 <= 1 * z' + 1 * @y + 1 * @ys + 2, s6 >= 0, s6 <= 2, s2 >= 0, s2 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s42 :|: s42 >= 0, s42 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 2 + 4·z' }→ s38 :|: s38 >= 0, s38 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insertD#1(z, z') -{ 5 + 4·@ys }→ s40 :|: s40 >= 0, s40 <= 1 * z' + 1 * @y + 1 * @ys + 2, s7 >= 0, s7 <= 2, s3 >= 0, s3 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s39 :|: s39 >= 0, s39 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 2 + 4·z2 }→ s47 :|: s47 >= 0, s47 <= 1 * z, z >= 0
insertionsort#1(z) -{ 5 + 4·@xs2 + 4·s48 }→ s49 :|: s48 >= 0, s48 <= 1 * @xs, s49 >= 0, s49 <= 1 * @x + 1 * s48 + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 2 + 4·z2 }→ s44 :|: s44 >= 0, s44 <= 1 * z, z >= 0
insertionsortD#1(z) -{ 5 + 4·@xs2 + 4·s45 }→ s46 :|: s45 >= 0, s45 <= 1 * @xs, s46 >= 0, s46 <= 1 * @x + 1 * s45 + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 414 + 80·s10 + 8·s10·s11 + 8·s10·s12 + 8·s10·s13 + 8·s10·s14 + 8·s10·s15 + 8·s10·s16 + 8·s10·s17 + 8·s10·s8 + 8·s10·s9 + 4·s102 + 80·s11 + 8·s11·s12 + 8·s11·s13 + 8·s11·s14 + 8·s11·s15 + 8·s11·s16 + 8·s11·s17 + 8·s11·s8 + 8·s11·s9 + 4·s112 + 80·s12 + 8·s12·s13 + 8·s12·s14 + 8·s12·s15 + 8·s12·s16 + 8·s12·s17 + 8·s12·s8 + 8·s12·s9 + 4·s122 + 80·s13 + 8·s13·s14 + 8·s13·s15 + 8·s13·s16 + 8·s13·s17 + 8·s13·s8 + 8·s13·s9 + 4·s132 + 80·s14 + 8·s14·s15 + 8·s14·s16 + 8·s14·s17 + 8·s14·s8 + 8·s14·s9 + 4·s142 + 80·s15 + 8·s15·s16 + 8·s15·s17 + 8·s15·s8 + 8·s15·s9 + 4·s152 + 80·s16 + 8·s16·s17 + 8·s16·s8 + 8·s16·s9 + 4·s162 + 80·s17 + 8·s17·s8 + 8·s17·s9 + 4·s172 + 80·s8 + 8·s8·s9 + 4·s82 + 80·s9 + 4·s92 }→ s51 :|: s51 >= 0, s51 <= 1 * (1 + s8 + (1 + s9 + (1 + s10 + (1 + s11 + (1 + s12 + (1 + s13 + (1 + s14 + (1 + s15 + (1 + s16 + (1 + s17 + 0)))))))))), s8 >= 0, s8 <= 1 * 0 + 1, s9 >= 0, s9 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s10 >= 0, s10 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s11 >= 0, s11 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s12 >= 0, s12 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s13 >= 0, s13 <= 1 * (1 + (1 + 0)) + 1, s14 >= 0, s14 <= 1 * (1 + (1 + (1 + 0))) + 1, s15 >= 0, s15 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s16 >= 0, s16 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s17 >= 0, s17 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testInsertionsortD(z) -{ 414 + 80·s18 + 8·s18·s19 + 8·s18·s20 + 8·s18·s21 + 8·s18·s22 + 8·s18·s23 + 8·s18·s24 + 8·s18·s25 + 8·s18·s26 + 8·s18·s27 + 4·s182 + 80·s19 + 8·s19·s20 + 8·s19·s21 + 8·s19·s22 + 8·s19·s23 + 8·s19·s24 + 8·s19·s25 + 8·s19·s26 + 8·s19·s27 + 4·s192 + 80·s20 + 8·s20·s21 + 8·s20·s22 + 8·s20·s23 + 8·s20·s24 + 8·s20·s25 + 8·s20·s26 + 8·s20·s27 + 4·s202 + 80·s21 + 8·s21·s22 + 8·s21·s23 + 8·s21·s24 + 8·s21·s25 + 8·s21·s26 + 8·s21·s27 + 4·s212 + 80·s22 + 8·s22·s23 + 8·s22·s24 + 8·s22·s25 + 8·s22·s26 + 8·s22·s27 + 4·s222 + 80·s23 + 8·s23·s24 + 8·s23·s25 + 8·s23·s26 + 8·s23·s27 + 4·s232 + 80·s24 + 8·s24·s25 + 8·s24·s26 + 8·s24·s27 + 4·s242 + 80·s25 + 8·s25·s26 + 8·s25·s27 + 4·s252 + 80·s26 + 8·s26·s27 + 4·s262 + 80·s27 + 4·s272 }→ s50 :|: s50 >= 0, s50 <= 1 * (1 + s18 + (1 + s19 + (1 + s20 + (1 + s21 + (1 + s22 + (1 + s23 + (1 + s24 + (1 + s25 + (1 + s26 + (1 + s27 + 0)))))))))), s18 >= 0, s18 <= 1 * 0 + 1, s19 >= 0, s19 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s20 >= 0, s20 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s21 >= 0, s21 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s22 >= 0, s22 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s23 >= 0, s23 <= 1 * (1 + (1 + 0)) + 1, s24 >= 0, s24 <= 1 * (1 + (1 + (1 + 0))) + 1, s25 >= 0, s25 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s26 >= 0, s26 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s27 >= 0, s27 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testList(z) -{ 11 }→ 1 + s28 + (1 + s29 + (1 + s30 + (1 + s31 + (1 + s32 + (1 + s33 + (1 + s34 + (1 + s35 + (1 + s36 + (1 + s37 + 0))))))))) :|: s28 >= 0, s28 <= 1 * 0 + 1, s29 >= 0, s29 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s30 >= 0, s30 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s31 >= 0, s31 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s32 >= 0, s32 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s33 >= 0, s33 <= 1 * (1 + (1 + 0)) + 1, s34 >= 0, s34 <= 1 * (1 + (1 + (1 + 0))) + 1, s35 >= 0, s35 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s36 >= 0, s36 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s37 >= 0, s37 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
#compare: runtime: O(1) [0], size: O(1) [3] #cklt: runtime: O(1) [0], size: O(1) [2] #abs: runtime: O(1) [1], size: O(n1) [1 + z] #less: runtime: O(1) [1], size: O(1) [2] insertD#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insertD#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] insertD: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insert: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] testList: runtime: O(1) [11], size: O(1) [74] insertionsortD#1: runtime: O(n2) [1 + 4·z2], size: O(n1) [z] insertionsort#1: runtime: O(n2) [1 + 4·z2], size: O(n1) [z] insertionsortD: runtime: O(n2) [2 + 4·z2], size: O(n1) [z] insertionsort: runtime: O(n2) [2 + 4·z2], size: O(n1) [z] testInsertionsortD: runtime: O(1) [21918], size: O(1) [74] |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#less(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ s5 :|: s5 >= 0, s5 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
insert(z, z') -{ 2 + 4·z' }→ s41 :|: s41 >= 0, s41 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insert#1(z, z') -{ 5 + 4·@ys }→ s43 :|: s43 >= 0, s43 <= 1 * z' + 1 * @y + 1 * @ys + 2, s6 >= 0, s6 <= 2, s2 >= 0, s2 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s42 :|: s42 >= 0, s42 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 2 + 4·z' }→ s38 :|: s38 >= 0, s38 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insertD#1(z, z') -{ 5 + 4·@ys }→ s40 :|: s40 >= 0, s40 <= 1 * z' + 1 * @y + 1 * @ys + 2, s7 >= 0, s7 <= 2, s3 >= 0, s3 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s39 :|: s39 >= 0, s39 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 2 + 4·z2 }→ s47 :|: s47 >= 0, s47 <= 1 * z, z >= 0
insertionsort#1(z) -{ 5 + 4·@xs2 + 4·s48 }→ s49 :|: s48 >= 0, s48 <= 1 * @xs, s49 >= 0, s49 <= 1 * @x + 1 * s48 + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 2 + 4·z2 }→ s44 :|: s44 >= 0, s44 <= 1 * z, z >= 0
insertionsortD#1(z) -{ 5 + 4·@xs2 + 4·s45 }→ s46 :|: s45 >= 0, s45 <= 1 * @xs, s46 >= 0, s46 <= 1 * @x + 1 * s45 + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 414 + 80·s10 + 8·s10·s11 + 8·s10·s12 + 8·s10·s13 + 8·s10·s14 + 8·s10·s15 + 8·s10·s16 + 8·s10·s17 + 8·s10·s8 + 8·s10·s9 + 4·s102 + 80·s11 + 8·s11·s12 + 8·s11·s13 + 8·s11·s14 + 8·s11·s15 + 8·s11·s16 + 8·s11·s17 + 8·s11·s8 + 8·s11·s9 + 4·s112 + 80·s12 + 8·s12·s13 + 8·s12·s14 + 8·s12·s15 + 8·s12·s16 + 8·s12·s17 + 8·s12·s8 + 8·s12·s9 + 4·s122 + 80·s13 + 8·s13·s14 + 8·s13·s15 + 8·s13·s16 + 8·s13·s17 + 8·s13·s8 + 8·s13·s9 + 4·s132 + 80·s14 + 8·s14·s15 + 8·s14·s16 + 8·s14·s17 + 8·s14·s8 + 8·s14·s9 + 4·s142 + 80·s15 + 8·s15·s16 + 8·s15·s17 + 8·s15·s8 + 8·s15·s9 + 4·s152 + 80·s16 + 8·s16·s17 + 8·s16·s8 + 8·s16·s9 + 4·s162 + 80·s17 + 8·s17·s8 + 8·s17·s9 + 4·s172 + 80·s8 + 8·s8·s9 + 4·s82 + 80·s9 + 4·s92 }→ s51 :|: s51 >= 0, s51 <= 1 * (1 + s8 + (1 + s9 + (1 + s10 + (1 + s11 + (1 + s12 + (1 + s13 + (1 + s14 + (1 + s15 + (1 + s16 + (1 + s17 + 0)))))))))), s8 >= 0, s8 <= 1 * 0 + 1, s9 >= 0, s9 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s10 >= 0, s10 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s11 >= 0, s11 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s12 >= 0, s12 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s13 >= 0, s13 <= 1 * (1 + (1 + 0)) + 1, s14 >= 0, s14 <= 1 * (1 + (1 + (1 + 0))) + 1, s15 >= 0, s15 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s16 >= 0, s16 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s17 >= 0, s17 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testInsertionsortD(z) -{ 414 + 80·s18 + 8·s18·s19 + 8·s18·s20 + 8·s18·s21 + 8·s18·s22 + 8·s18·s23 + 8·s18·s24 + 8·s18·s25 + 8·s18·s26 + 8·s18·s27 + 4·s182 + 80·s19 + 8·s19·s20 + 8·s19·s21 + 8·s19·s22 + 8·s19·s23 + 8·s19·s24 + 8·s19·s25 + 8·s19·s26 + 8·s19·s27 + 4·s192 + 80·s20 + 8·s20·s21 + 8·s20·s22 + 8·s20·s23 + 8·s20·s24 + 8·s20·s25 + 8·s20·s26 + 8·s20·s27 + 4·s202 + 80·s21 + 8·s21·s22 + 8·s21·s23 + 8·s21·s24 + 8·s21·s25 + 8·s21·s26 + 8·s21·s27 + 4·s212 + 80·s22 + 8·s22·s23 + 8·s22·s24 + 8·s22·s25 + 8·s22·s26 + 8·s22·s27 + 4·s222 + 80·s23 + 8·s23·s24 + 8·s23·s25 + 8·s23·s26 + 8·s23·s27 + 4·s232 + 80·s24 + 8·s24·s25 + 8·s24·s26 + 8·s24·s27 + 4·s242 + 80·s25 + 8·s25·s26 + 8·s25·s27 + 4·s252 + 80·s26 + 8·s26·s27 + 4·s262 + 80·s27 + 4·s272 }→ s50 :|: s50 >= 0, s50 <= 1 * (1 + s18 + (1 + s19 + (1 + s20 + (1 + s21 + (1 + s22 + (1 + s23 + (1 + s24 + (1 + s25 + (1 + s26 + (1 + s27 + 0)))))))))), s18 >= 0, s18 <= 1 * 0 + 1, s19 >= 0, s19 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s20 >= 0, s20 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s21 >= 0, s21 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s22 >= 0, s22 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s23 >= 0, s23 <= 1 * (1 + (1 + 0)) + 1, s24 >= 0, s24 <= 1 * (1 + (1 + (1 + 0))) + 1, s25 >= 0, s25 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s26 >= 0, s26 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s27 >= 0, s27 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testList(z) -{ 11 }→ 1 + s28 + (1 + s29 + (1 + s30 + (1 + s31 + (1 + s32 + (1 + s33 + (1 + s34 + (1 + s35 + (1 + s36 + (1 + s37 + 0))))))))) :|: s28 >= 0, s28 <= 1 * 0 + 1, s29 >= 0, s29 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s30 >= 0, s30 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s31 >= 0, s31 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s32 >= 0, s32 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s33 >= 0, s33 <= 1 * (1 + (1 + 0)) + 1, s34 >= 0, s34 <= 1 * (1 + (1 + (1 + 0))) + 1, s35 >= 0, s35 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s36 >= 0, s36 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s37 >= 0, s37 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
#compare: runtime: O(1) [0], size: O(1) [3] #cklt: runtime: O(1) [0], size: O(1) [2] #abs: runtime: O(1) [1], size: O(n1) [1 + z] #less: runtime: O(1) [1], size: O(1) [2] insertD#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insertD#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] insertD: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insert: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] testList: runtime: O(1) [11], size: O(1) [74] insertionsortD#1: runtime: O(n2) [1 + 4·z2], size: O(n1) [z] insertionsort#1: runtime: O(n2) [1 + 4·z2], size: O(n1) [z] insertionsortD: runtime: O(n2) [2 + 4·z2], size: O(n1) [z] insertionsort: runtime: O(n2) [2 + 4·z2], size: O(n1) [z] testInsertionsortD: runtime: O(1) [21918], size: O(1) [74] |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#less(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ s5 :|: s5 >= 0, s5 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
insert(z, z') -{ 2 + 4·z' }→ s41 :|: s41 >= 0, s41 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insert#1(z, z') -{ 5 + 4·@ys }→ s43 :|: s43 >= 0, s43 <= 1 * z' + 1 * @y + 1 * @ys + 2, s6 >= 0, s6 <= 2, s2 >= 0, s2 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s42 :|: s42 >= 0, s42 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 2 + 4·z' }→ s38 :|: s38 >= 0, s38 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insertD#1(z, z') -{ 5 + 4·@ys }→ s40 :|: s40 >= 0, s40 <= 1 * z' + 1 * @y + 1 * @ys + 2, s7 >= 0, s7 <= 2, s3 >= 0, s3 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s39 :|: s39 >= 0, s39 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 2 + 4·z2 }→ s47 :|: s47 >= 0, s47 <= 1 * z, z >= 0
insertionsort#1(z) -{ 5 + 4·@xs2 + 4·s48 }→ s49 :|: s48 >= 0, s48 <= 1 * @xs, s49 >= 0, s49 <= 1 * @x + 1 * s48 + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 2 + 4·z2 }→ s44 :|: s44 >= 0, s44 <= 1 * z, z >= 0
insertionsortD#1(z) -{ 5 + 4·@xs2 + 4·s45 }→ s46 :|: s45 >= 0, s45 <= 1 * @xs, s46 >= 0, s46 <= 1 * @x + 1 * s45 + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 414 + 80·s10 + 8·s10·s11 + 8·s10·s12 + 8·s10·s13 + 8·s10·s14 + 8·s10·s15 + 8·s10·s16 + 8·s10·s17 + 8·s10·s8 + 8·s10·s9 + 4·s102 + 80·s11 + 8·s11·s12 + 8·s11·s13 + 8·s11·s14 + 8·s11·s15 + 8·s11·s16 + 8·s11·s17 + 8·s11·s8 + 8·s11·s9 + 4·s112 + 80·s12 + 8·s12·s13 + 8·s12·s14 + 8·s12·s15 + 8·s12·s16 + 8·s12·s17 + 8·s12·s8 + 8·s12·s9 + 4·s122 + 80·s13 + 8·s13·s14 + 8·s13·s15 + 8·s13·s16 + 8·s13·s17 + 8·s13·s8 + 8·s13·s9 + 4·s132 + 80·s14 + 8·s14·s15 + 8·s14·s16 + 8·s14·s17 + 8·s14·s8 + 8·s14·s9 + 4·s142 + 80·s15 + 8·s15·s16 + 8·s15·s17 + 8·s15·s8 + 8·s15·s9 + 4·s152 + 80·s16 + 8·s16·s17 + 8·s16·s8 + 8·s16·s9 + 4·s162 + 80·s17 + 8·s17·s8 + 8·s17·s9 + 4·s172 + 80·s8 + 8·s8·s9 + 4·s82 + 80·s9 + 4·s92 }→ s51 :|: s51 >= 0, s51 <= 1 * (1 + s8 + (1 + s9 + (1 + s10 + (1 + s11 + (1 + s12 + (1 + s13 + (1 + s14 + (1 + s15 + (1 + s16 + (1 + s17 + 0)))))))))), s8 >= 0, s8 <= 1 * 0 + 1, s9 >= 0, s9 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s10 >= 0, s10 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s11 >= 0, s11 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s12 >= 0, s12 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s13 >= 0, s13 <= 1 * (1 + (1 + 0)) + 1, s14 >= 0, s14 <= 1 * (1 + (1 + (1 + 0))) + 1, s15 >= 0, s15 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s16 >= 0, s16 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s17 >= 0, s17 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testInsertionsortD(z) -{ 414 + 80·s18 + 8·s18·s19 + 8·s18·s20 + 8·s18·s21 + 8·s18·s22 + 8·s18·s23 + 8·s18·s24 + 8·s18·s25 + 8·s18·s26 + 8·s18·s27 + 4·s182 + 80·s19 + 8·s19·s20 + 8·s19·s21 + 8·s19·s22 + 8·s19·s23 + 8·s19·s24 + 8·s19·s25 + 8·s19·s26 + 8·s19·s27 + 4·s192 + 80·s20 + 8·s20·s21 + 8·s20·s22 + 8·s20·s23 + 8·s20·s24 + 8·s20·s25 + 8·s20·s26 + 8·s20·s27 + 4·s202 + 80·s21 + 8·s21·s22 + 8·s21·s23 + 8·s21·s24 + 8·s21·s25 + 8·s21·s26 + 8·s21·s27 + 4·s212 + 80·s22 + 8·s22·s23 + 8·s22·s24 + 8·s22·s25 + 8·s22·s26 + 8·s22·s27 + 4·s222 + 80·s23 + 8·s23·s24 + 8·s23·s25 + 8·s23·s26 + 8·s23·s27 + 4·s232 + 80·s24 + 8·s24·s25 + 8·s24·s26 + 8·s24·s27 + 4·s242 + 80·s25 + 8·s25·s26 + 8·s25·s27 + 4·s252 + 80·s26 + 8·s26·s27 + 4·s262 + 80·s27 + 4·s272 }→ s50 :|: s50 >= 0, s50 <= 1 * (1 + s18 + (1 + s19 + (1 + s20 + (1 + s21 + (1 + s22 + (1 + s23 + (1 + s24 + (1 + s25 + (1 + s26 + (1 + s27 + 0)))))))))), s18 >= 0, s18 <= 1 * 0 + 1, s19 >= 0, s19 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s20 >= 0, s20 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s21 >= 0, s21 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s22 >= 0, s22 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s23 >= 0, s23 <= 1 * (1 + (1 + 0)) + 1, s24 >= 0, s24 <= 1 * (1 + (1 + (1 + 0))) + 1, s25 >= 0, s25 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s26 >= 0, s26 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s27 >= 0, s27 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testList(z) -{ 11 }→ 1 + s28 + (1 + s29 + (1 + s30 + (1 + s31 + (1 + s32 + (1 + s33 + (1 + s34 + (1 + s35 + (1 + s36 + (1 + s37 + 0))))))))) :|: s28 >= 0, s28 <= 1 * 0 + 1, s29 >= 0, s29 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s30 >= 0, s30 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s31 >= 0, s31 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s32 >= 0, s32 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s33 >= 0, s33 <= 1 * (1 + (1 + 0)) + 1, s34 >= 0, s34 <= 1 * (1 + (1 + (1 + 0))) + 1, s35 >= 0, s35 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s36 >= 0, s36 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s37 >= 0, s37 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
#compare: runtime: O(1) [0], size: O(1) [3] #cklt: runtime: O(1) [0], size: O(1) [2] #abs: runtime: O(1) [1], size: O(n1) [1 + z] #less: runtime: O(1) [1], size: O(1) [2] insertD#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insertD#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] insertD: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insert: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] testList: runtime: O(1) [11], size: O(1) [74] insertionsortD#1: runtime: O(n2) [1 + 4·z2], size: O(n1) [z] insertionsort#1: runtime: O(n2) [1 + 4·z2], size: O(n1) [z] insertionsortD: runtime: O(n2) [2 + 4·z2], size: O(n1) [z] insertionsort: runtime: O(n2) [2 + 4·z2], size: O(n1) [z] testInsertionsortD: runtime: O(1) [21918], size: O(1) [74] testInsertionsort: runtime: ?, size: O(1) [74] |
#abs(z) -{ 1 }→ 0 :|: z = 0
#abs(z) -{ 1 }→ 1 + (z - 1) :|: z - 1 >= 0
#abs(z) -{ 1 }→ 1 + (1 + (z - 1)) :|: z - 1 >= 0
#cklt(z) -{ 0 }→ 2 :|: z = 3
#cklt(z) -{ 0 }→ 1 :|: z = 1
#cklt(z) -{ 0 }→ 1 :|: z = 2
#cklt(z) -{ 0 }→ 0 :|: z >= 0
#compare(z, z') -{ 0 }→ s :|: s >= 0, s <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ s' :|: s' >= 0, s' <= 3, z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 3 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z = 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' = 0
#compare(z, z') -{ 0 }→ 2 :|: z - 1 >= 0, z' - 1 >= 0
#compare(z, z') -{ 0 }→ 1 :|: z = 0, z' = 0
#compare(z, z') -{ 0 }→ 0 :|: z >= 0, z' >= 0
#less(z, z') -{ 1 }→ s4 :|: s4 >= 0, s4 <= 2, s'' >= 0, s'' <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ s5 :|: s5 >= 0, s5 <= 2, s1 >= 0, s1 <= 3, z' - 1 >= 0, z - 1 >= 0
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z - 1 >= 0, z' = 0, 3 = 3
#less(z, z') -{ 1 }→ 2 :|: z' - 1 >= 0, z - 1 >= 0, 3 = 3
#less(z, z') -{ 1 }→ 1 :|: z = 0, z' = 0, 1 = 1
#less(z, z') -{ 1 }→ 1 :|: z' - 1 >= 0, z = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' = 0, 2 = 2
#less(z, z') -{ 1 }→ 1 :|: z - 1 >= 0, z' - 1 >= 0, 2 = 2
#less(z, z') -{ 1 }→ 0 :|: z = 0, z' = 0, v0 >= 0, 1 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z' - 1 >= 0, z - 1 >= 0, v0 >= 0, 3 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' = 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z - 1 >= 0, z' - 1 >= 0, v0 >= 0, 2 = v0
#less(z, z') -{ 1 }→ 0 :|: z >= 0, z' >= 0, v0 >= 0, 0 = v0
insert(z, z') -{ 2 + 4·z' }→ s41 :|: s41 >= 0, s41 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insert#1(z, z') -{ 5 + 4·@ys }→ s43 :|: s43 >= 0, s43 <= 1 * z' + 1 * @y + 1 * @ys + 2, s6 >= 0, s6 <= 2, s2 >= 0, s2 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insert#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insert#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insert#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s42 :|: s42 >= 0, s42 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertD(z, z') -{ 2 + 4·z' }→ s38 :|: s38 >= 0, s38 <= 1 * z' + 1 * z + 1, z' >= 0, z >= 0
insertD#1(z, z') -{ 5 + 4·@ys }→ s40 :|: s40 >= 0, s40 <= 1 * z' + 1 * @y + 1 * @ys + 2, s7 >= 0, s7 <= 2, s3 >= 0, s3 <= 3, z = 1 + @y + @ys, z' >= 0, @y >= 0, @ys >= 0
insertD#1(z, z') -{ 1 }→ 1 + z' + 0 :|: z' >= 0, z = 0
insertD#2(z, z', z'', z1) -{ 0 }→ 0 :|: z >= 0, z' >= 0, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 1 }→ 1 + z' + (1 + z'' + z1) :|: z' >= 0, z = 1, z'' >= 0, z1 >= 0
insertD#2(z, z', z'', z1) -{ 3 + 4·z1 }→ 1 + z'' + s39 :|: s39 >= 0, s39 <= 1 * z' + 1 * z1 + 1, z = 2, z' >= 0, z'' >= 0, z1 >= 0
insertionsort(z) -{ 2 + 4·z2 }→ s47 :|: s47 >= 0, s47 <= 1 * z, z >= 0
insertionsort#1(z) -{ 5 + 4·@xs2 + 4·s48 }→ s49 :|: s48 >= 0, s48 <= 1 * @xs, s49 >= 0, s49 <= 1 * @x + 1 * s48 + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsort#1(z) -{ 1 }→ 0 :|: z = 0
insertionsortD(z) -{ 2 + 4·z2 }→ s44 :|: s44 >= 0, s44 <= 1 * z, z >= 0
insertionsortD#1(z) -{ 5 + 4·@xs2 + 4·s45 }→ s46 :|: s45 >= 0, s45 <= 1 * @xs, s46 >= 0, s46 <= 1 * @x + 1 * s45 + 1, @x >= 0, z = 1 + @x + @xs, @xs >= 0
insertionsortD#1(z) -{ 1 }→ 0 :|: z = 0
testInsertionsort(z) -{ 414 + 80·s10 + 8·s10·s11 + 8·s10·s12 + 8·s10·s13 + 8·s10·s14 + 8·s10·s15 + 8·s10·s16 + 8·s10·s17 + 8·s10·s8 + 8·s10·s9 + 4·s102 + 80·s11 + 8·s11·s12 + 8·s11·s13 + 8·s11·s14 + 8·s11·s15 + 8·s11·s16 + 8·s11·s17 + 8·s11·s8 + 8·s11·s9 + 4·s112 + 80·s12 + 8·s12·s13 + 8·s12·s14 + 8·s12·s15 + 8·s12·s16 + 8·s12·s17 + 8·s12·s8 + 8·s12·s9 + 4·s122 + 80·s13 + 8·s13·s14 + 8·s13·s15 + 8·s13·s16 + 8·s13·s17 + 8·s13·s8 + 8·s13·s9 + 4·s132 + 80·s14 + 8·s14·s15 + 8·s14·s16 + 8·s14·s17 + 8·s14·s8 + 8·s14·s9 + 4·s142 + 80·s15 + 8·s15·s16 + 8·s15·s17 + 8·s15·s8 + 8·s15·s9 + 4·s152 + 80·s16 + 8·s16·s17 + 8·s16·s8 + 8·s16·s9 + 4·s162 + 80·s17 + 8·s17·s8 + 8·s17·s9 + 4·s172 + 80·s8 + 8·s8·s9 + 4·s82 + 80·s9 + 4·s92 }→ s51 :|: s51 >= 0, s51 <= 1 * (1 + s8 + (1 + s9 + (1 + s10 + (1 + s11 + (1 + s12 + (1 + s13 + (1 + s14 + (1 + s15 + (1 + s16 + (1 + s17 + 0)))))))))), s8 >= 0, s8 <= 1 * 0 + 1, s9 >= 0, s9 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s10 >= 0, s10 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s11 >= 0, s11 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s12 >= 0, s12 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s13 >= 0, s13 <= 1 * (1 + (1 + 0)) + 1, s14 >= 0, s14 <= 1 * (1 + (1 + (1 + 0))) + 1, s15 >= 0, s15 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s16 >= 0, s16 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s17 >= 0, s17 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testInsertionsortD(z) -{ 414 + 80·s18 + 8·s18·s19 + 8·s18·s20 + 8·s18·s21 + 8·s18·s22 + 8·s18·s23 + 8·s18·s24 + 8·s18·s25 + 8·s18·s26 + 8·s18·s27 + 4·s182 + 80·s19 + 8·s19·s20 + 8·s19·s21 + 8·s19·s22 + 8·s19·s23 + 8·s19·s24 + 8·s19·s25 + 8·s19·s26 + 8·s19·s27 + 4·s192 + 80·s20 + 8·s20·s21 + 8·s20·s22 + 8·s20·s23 + 8·s20·s24 + 8·s20·s25 + 8·s20·s26 + 8·s20·s27 + 4·s202 + 80·s21 + 8·s21·s22 + 8·s21·s23 + 8·s21·s24 + 8·s21·s25 + 8·s21·s26 + 8·s21·s27 + 4·s212 + 80·s22 + 8·s22·s23 + 8·s22·s24 + 8·s22·s25 + 8·s22·s26 + 8·s22·s27 + 4·s222 + 80·s23 + 8·s23·s24 + 8·s23·s25 + 8·s23·s26 + 8·s23·s27 + 4·s232 + 80·s24 + 8·s24·s25 + 8·s24·s26 + 8·s24·s27 + 4·s242 + 80·s25 + 8·s25·s26 + 8·s25·s27 + 4·s252 + 80·s26 + 8·s26·s27 + 4·s262 + 80·s27 + 4·s272 }→ s50 :|: s50 >= 0, s50 <= 1 * (1 + s18 + (1 + s19 + (1 + s20 + (1 + s21 + (1 + s22 + (1 + s23 + (1 + s24 + (1 + s25 + (1 + s26 + (1 + s27 + 0)))))))))), s18 >= 0, s18 <= 1 * 0 + 1, s19 >= 0, s19 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s20 >= 0, s20 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s21 >= 0, s21 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s22 >= 0, s22 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s23 >= 0, s23 <= 1 * (1 + (1 + 0)) + 1, s24 >= 0, s24 <= 1 * (1 + (1 + (1 + 0))) + 1, s25 >= 0, s25 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s26 >= 0, s26 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s27 >= 0, s27 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
testList(z) -{ 11 }→ 1 + s28 + (1 + s29 + (1 + s30 + (1 + s31 + (1 + s32 + (1 + s33 + (1 + s34 + (1 + s35 + (1 + s36 + (1 + s37 + 0))))))))) :|: s28 >= 0, s28 <= 1 * 0 + 1, s29 >= 0, s29 <= 1 * (1 + (1 + (1 + (1 + (1 + 0))))) + 1, s30 >= 0, s30 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + 0)))))) + 1, s31 >= 0, s31 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))))) + 1, s32 >= 0, s32 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0)))))))) + 1, s33 >= 0, s33 <= 1 * (1 + (1 + 0)) + 1, s34 >= 0, s34 <= 1 * (1 + (1 + (1 + 0))) + 1, s35 >= 0, s35 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))))) + 1, s36 >= 0, s36 <= 1 * (1 + (1 + (1 + (1 + (1 + (1 + (1 + 0))))))) + 1, s37 >= 0, s37 <= 1 * (1 + (1 + (1 + (1 + 0)))) + 1, z >= 0
#compare: runtime: O(1) [0], size: O(1) [3] #cklt: runtime: O(1) [0], size: O(1) [2] #abs: runtime: O(1) [1], size: O(n1) [1 + z] #less: runtime: O(1) [1], size: O(1) [2] insertD#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insertD#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] insertD: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#2: runtime: O(n1) [3 + 4·z1], size: O(n1) [2 + z' + z'' + z1] insert: runtime: O(n1) [2 + 4·z'], size: O(n1) [1 + z + z'] insert#1: runtime: O(n1) [1 + 4·z], size: O(n1) [1 + z + z'] testList: runtime: O(1) [11], size: O(1) [74] insertionsortD#1: runtime: O(n2) [1 + 4·z2], size: O(n1) [z] insertionsort#1: runtime: O(n2) [1 + 4·z2], size: O(n1) [z] insertionsortD: runtime: O(n2) [2 + 4·z2], size: O(n1) [z] insertionsort: runtime: O(n2) [2 + 4·z2], size: O(n1) [z] testInsertionsortD: runtime: O(1) [21918], size: O(1) [74] testInsertionsort: runtime: O(1) [21918], size: O(1) [74] |