0 CpxTRS
↳1 TrsToWeightedTrsProof (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), 0 ms)
↳8 CpxTypedWeightedCompleteTrs
↳9 CpxTypedWeightedTrsToRntsProof (UPPER BOUND(ID), 0 ms)
↳10 CpxRNTS
↳11 InliningProof (UPPER BOUND(ID), 55 ms)
↳12 CpxRNTS
↳13 SimplificationProof (BOTH BOUNDS(ID, ID), 0 ms)
↳14 CpxRNTS
↳15 CpxRntsAnalysisOrderProof (BOTH BOUNDS(ID, ID), 5 ms)
↳16 CpxRNTS
↳17 IntTrsBoundProof (UPPER BOUND(ID), 532 ms)
↳18 CpxRNTS
↳19 IntTrsBoundProof (UPPER BOUND(ID), 136 ms)
↳20 CpxRNTS
↳21 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳22 CpxRNTS
↳23 IntTrsBoundProof (UPPER BOUND(ID), 118 ms)
↳24 CpxRNTS
↳25 IntTrsBoundProof (UPPER BOUND(ID), 49 ms)
↳26 CpxRNTS
↳27 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳28 CpxRNTS
↳29 IntTrsBoundProof (UPPER BOUND(ID), 370 ms)
↳30 CpxRNTS
↳31 IntTrsBoundProof (UPPER BOUND(ID), 117 ms)
↳32 CpxRNTS
↳33 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳34 CpxRNTS
↳35 IntTrsBoundProof (UPPER BOUND(ID), 143 ms)
↳36 CpxRNTS
↳37 IntTrsBoundProof (UPPER BOUND(ID), 7 ms)
↳38 CpxRNTS
↳39 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳40 CpxRNTS
↳41 IntTrsBoundProof (UPPER BOUND(ID), 4639 ms)
↳42 CpxRNTS
↳43 IntTrsBoundProof (UPPER BOUND(ID), 1421 ms)
↳44 CpxRNTS
↳45 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳46 CpxRNTS
↳47 IntTrsBoundProof (UPPER BOUND(ID), 306 ms)
↳48 CpxRNTS
↳49 IntTrsBoundProof (UPPER BOUND(ID), 16 ms)
↳50 CpxRNTS
↳51 FinalProof (⇔, 0 ms)
↳52 BOUNDS(1, n^2)
minus(0, y) → 0
minus(x, 0) → x
minus(s(x), s(y)) → minus(x, y)
plus(0, y) → y
plus(s(x), y) → plus(x, s(y))
zero(s(x)) → false
zero(0) → true
p(s(x)) → x
div(x, y) → quot(x, y, 0)
quot(x, y, z) → if(zero(x), x, y, plus(z, s(0)))
if(true, x, y, z) → p(z)
if(false, x, s(y), z) → quot(minus(x, s(y)), s(y), z)
minus(0, y) → 0 [1]
minus(x, 0) → x [1]
minus(s(x), s(y)) → minus(x, y) [1]
plus(0, y) → y [1]
plus(s(x), y) → plus(x, s(y)) [1]
zero(s(x)) → false [1]
zero(0) → true [1]
p(s(x)) → x [1]
div(x, y) → quot(x, y, 0) [1]
quot(x, y, z) → if(zero(x), x, y, plus(z, s(0))) [1]
if(true, x, y, z) → p(z) [1]
if(false, x, s(y), z) → quot(minus(x, s(y)), s(y), z) [1]
minus(0, y) → 0 [1]
minus(x, 0) → x [1]
minus(s(x), s(y)) → minus(x, y) [1]
plus(0, y) → y [1]
plus(s(x), y) → plus(x, s(y)) [1]
zero(s(x)) → false [1]
zero(0) → true [1]
p(s(x)) → x [1]
div(x, y) → quot(x, y, 0) [1]
quot(x, y, z) → if(zero(x), x, y, plus(z, s(0))) [1]
if(true, x, y, z) → p(z) [1]
if(false, x, s(y), z) → quot(minus(x, s(y)), s(y), z) [1]
minus :: 0:s → 0:s → 0:s 0 :: 0:s s :: 0:s → 0:s plus :: 0:s → 0:s → 0:s zero :: 0:s → false:true false :: false:true true :: false:true p :: 0:s → 0:s div :: 0:s → 0:s → 0:s quot :: 0:s → 0:s → 0:s → 0:s if :: false:true → 0:s → 0:s → 0:s → 0:s |
(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:
p
div
quot
if
minus
zero
plus
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
false => 0
true => 1
div(z', z'') -{ 1 }→ quot(x, y, 0) :|: z' = x, z'' = y, x >= 0, y >= 0
if(z', z'', z1, z2) -{ 2 }→ quot(minus(x2, y), 1 + y, z) :|: z >= 0, z2 = z, y >= 0, z'' = 1 + x2, z1 = 1 + y, x2 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ quot(0, 1 + y, z) :|: z'' = 0, z >= 0, z2 = z, y >= 0, z1 = 1 + y, z' = 0
if(z', z'', z1, z2) -{ 1 }→ p(z) :|: z1 = y, z >= 0, z2 = z, x >= 0, y >= 0, z'' = x, z' = 1
minus(z', z'') -{ 1 }→ x :|: z'' = 0, z' = x, x >= 0
minus(z', z'') -{ 1 }→ minus(x, y) :|: z' = 1 + x, x >= 0, y >= 0, z'' = 1 + y
minus(z', z'') -{ 1 }→ 0 :|: z'' = y, y >= 0, z' = 0
p(z') -{ 1 }→ x :|: z' = 1 + x, x >= 0
plus(z', z'') -{ 1 }→ y :|: z'' = y, y >= 0, z' = 0
plus(z', z'') -{ 1 }→ plus(x, 1 + y) :|: z' = 1 + x, z'' = y, x >= 0, y >= 0
quot(z', z'', z1) -{ 3 }→ if(1, 0, y, plus(x1, 1 + (1 + 0))) :|: x1 >= 0, z'' = y, y >= 0, z1 = 1 + x1, z' = 0
quot(z', z'', z1) -{ 3 }→ if(1, 0, y, 1 + 0) :|: z1 = 0, z'' = y, y >= 0, z' = 0
quot(z', z'', z1) -{ 3 }→ if(0, 1 + x', y, plus(x'', 1 + (1 + 0))) :|: z1 = 1 + x'', z' = 1 + x', z'' = y, x' >= 0, y >= 0, x'' >= 0
quot(z', z'', z1) -{ 3 }→ if(0, 1 + x', y, 1 + 0) :|: z1 = 0, z' = 1 + x', z'' = y, x' >= 0, y >= 0
zero(z') -{ 1 }→ 1 :|: z' = 0
zero(z') -{ 1 }→ 0 :|: z' = 1 + x, x >= 0
p(z') -{ 1 }→ x :|: z' = 1 + x, x >= 0
div(z', z'') -{ 1 }→ quot(x, y, 0) :|: z' = x, z'' = y, x >= 0, y >= 0
if(z', z'', z1, z2) -{ 2 }→ x' :|: z1 = y, z >= 0, z2 = z, x >= 0, y >= 0, z'' = x, z' = 1, z = 1 + x', x' >= 0
if(z', z'', z1, z2) -{ 2 }→ quot(minus(x2, y), 1 + y, z) :|: z >= 0, z2 = z, y >= 0, z'' = 1 + x2, z1 = 1 + y, x2 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ quot(0, 1 + y, z) :|: z'' = 0, z >= 0, z2 = z, y >= 0, z1 = 1 + y, z' = 0
minus(z', z'') -{ 1 }→ x :|: z'' = 0, z' = x, x >= 0
minus(z', z'') -{ 1 }→ minus(x, y) :|: z' = 1 + x, x >= 0, y >= 0, z'' = 1 + y
minus(z', z'') -{ 1 }→ 0 :|: z'' = y, y >= 0, z' = 0
p(z') -{ 1 }→ x :|: z' = 1 + x, x >= 0
plus(z', z'') -{ 1 }→ y :|: z'' = y, y >= 0, z' = 0
plus(z', z'') -{ 1 }→ plus(x, 1 + y) :|: z' = 1 + x, z'' = y, x >= 0, y >= 0
quot(z', z'', z1) -{ 3 }→ if(1, 0, y, plus(x1, 1 + (1 + 0))) :|: x1 >= 0, z'' = y, y >= 0, z1 = 1 + x1, z' = 0
quot(z', z'', z1) -{ 3 }→ if(1, 0, y, 1 + 0) :|: z1 = 0, z'' = y, y >= 0, z' = 0
quot(z', z'', z1) -{ 3 }→ if(0, 1 + x', y, plus(x'', 1 + (1 + 0))) :|: z1 = 1 + x'', z' = 1 + x', z'' = y, x' >= 0, y >= 0, x'' >= 0
quot(z', z'', z1) -{ 3 }→ if(0, 1 + x', y, 1 + 0) :|: z1 = 0, z' = 1 + x', z'' = y, x' >= 0, y >= 0
zero(z') -{ 1 }→ 1 :|: z' = 0
zero(z') -{ 1 }→ 0 :|: z' = 1 + x, x >= 0
div(z', z'') -{ 1 }→ quot(z', z'', 0) :|: z' >= 0, z'' >= 0
if(z', z'', z1, z2) -{ 2 }→ quot(minus(z'' - 1, z1 - 1), 1 + (z1 - 1), z2) :|: z2 >= 0, z1 - 1 >= 0, z'' - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ quot(0, 1 + (z1 - 1), z2) :|: z'' = 0, z2 >= 0, z1 - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ z2 - 1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1, z2 - 1 >= 0
minus(z', z'') -{ 1 }→ z' :|: z'' = 0, z' >= 0
minus(z', z'') -{ 1 }→ minus(z' - 1, z'' - 1) :|: z' - 1 >= 0, z'' - 1 >= 0
minus(z', z'') -{ 1 }→ 0 :|: z'' >= 0, z' = 0
p(z') -{ 1 }→ z' - 1 :|: z' - 1 >= 0
plus(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
plus(z', z'') -{ 1 }→ plus(z' - 1, 1 + z'') :|: z' - 1 >= 0, z'' >= 0
quot(z', z'', z1) -{ 3 }→ if(1, 0, z'', plus(z1 - 1, 1 + (1 + 0))) :|: z1 - 1 >= 0, z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 }→ if(1, 0, z'', 1 + 0) :|: z1 = 0, z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 }→ if(0, 1 + (z' - 1), z'', plus(z1 - 1, 1 + (1 + 0))) :|: z' - 1 >= 0, z'' >= 0, z1 - 1 >= 0
quot(z', z'', z1) -{ 3 }→ if(0, 1 + (z' - 1), z'', 1 + 0) :|: z1 = 0, z' - 1 >= 0, z'' >= 0
zero(z') -{ 1 }→ 1 :|: z' = 0
zero(z') -{ 1 }→ 0 :|: z' - 1 >= 0
{ minus } { zero } { plus } { p } { if, quot } { div } |
div(z', z'') -{ 1 }→ quot(z', z'', 0) :|: z' >= 0, z'' >= 0
if(z', z'', z1, z2) -{ 2 }→ quot(minus(z'' - 1, z1 - 1), 1 + (z1 - 1), z2) :|: z2 >= 0, z1 - 1 >= 0, z'' - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ quot(0, 1 + (z1 - 1), z2) :|: z'' = 0, z2 >= 0, z1 - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ z2 - 1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1, z2 - 1 >= 0
minus(z', z'') -{ 1 }→ z' :|: z'' = 0, z' >= 0
minus(z', z'') -{ 1 }→ minus(z' - 1, z'' - 1) :|: z' - 1 >= 0, z'' - 1 >= 0
minus(z', z'') -{ 1 }→ 0 :|: z'' >= 0, z' = 0
p(z') -{ 1 }→ z' - 1 :|: z' - 1 >= 0
plus(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
plus(z', z'') -{ 1 }→ plus(z' - 1, 1 + z'') :|: z' - 1 >= 0, z'' >= 0
quot(z', z'', z1) -{ 3 }→ if(1, 0, z'', plus(z1 - 1, 1 + (1 + 0))) :|: z1 - 1 >= 0, z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 }→ if(1, 0, z'', 1 + 0) :|: z1 = 0, z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 }→ if(0, 1 + (z' - 1), z'', plus(z1 - 1, 1 + (1 + 0))) :|: z' - 1 >= 0, z'' >= 0, z1 - 1 >= 0
quot(z', z'', z1) -{ 3 }→ if(0, 1 + (z' - 1), z'', 1 + 0) :|: z1 = 0, z' - 1 >= 0, z'' >= 0
zero(z') -{ 1 }→ 1 :|: z' = 0
zero(z') -{ 1 }→ 0 :|: z' - 1 >= 0
div(z', z'') -{ 1 }→ quot(z', z'', 0) :|: z' >= 0, z'' >= 0
if(z', z'', z1, z2) -{ 2 }→ quot(minus(z'' - 1, z1 - 1), 1 + (z1 - 1), z2) :|: z2 >= 0, z1 - 1 >= 0, z'' - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ quot(0, 1 + (z1 - 1), z2) :|: z'' = 0, z2 >= 0, z1 - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ z2 - 1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1, z2 - 1 >= 0
minus(z', z'') -{ 1 }→ z' :|: z'' = 0, z' >= 0
minus(z', z'') -{ 1 }→ minus(z' - 1, z'' - 1) :|: z' - 1 >= 0, z'' - 1 >= 0
minus(z', z'') -{ 1 }→ 0 :|: z'' >= 0, z' = 0
p(z') -{ 1 }→ z' - 1 :|: z' - 1 >= 0
plus(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
plus(z', z'') -{ 1 }→ plus(z' - 1, 1 + z'') :|: z' - 1 >= 0, z'' >= 0
quot(z', z'', z1) -{ 3 }→ if(1, 0, z'', plus(z1 - 1, 1 + (1 + 0))) :|: z1 - 1 >= 0, z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 }→ if(1, 0, z'', 1 + 0) :|: z1 = 0, z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 }→ if(0, 1 + (z' - 1), z'', plus(z1 - 1, 1 + (1 + 0))) :|: z' - 1 >= 0, z'' >= 0, z1 - 1 >= 0
quot(z', z'', z1) -{ 3 }→ if(0, 1 + (z' - 1), z'', 1 + 0) :|: z1 = 0, z' - 1 >= 0, z'' >= 0
zero(z') -{ 1 }→ 1 :|: z' = 0
zero(z') -{ 1 }→ 0 :|: z' - 1 >= 0
minus: runtime: ?, size: O(n1) [z'] |
div(z', z'') -{ 1 }→ quot(z', z'', 0) :|: z' >= 0, z'' >= 0
if(z', z'', z1, z2) -{ 2 }→ quot(minus(z'' - 1, z1 - 1), 1 + (z1 - 1), z2) :|: z2 >= 0, z1 - 1 >= 0, z'' - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ quot(0, 1 + (z1 - 1), z2) :|: z'' = 0, z2 >= 0, z1 - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ z2 - 1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1, z2 - 1 >= 0
minus(z', z'') -{ 1 }→ z' :|: z'' = 0, z' >= 0
minus(z', z'') -{ 1 }→ minus(z' - 1, z'' - 1) :|: z' - 1 >= 0, z'' - 1 >= 0
minus(z', z'') -{ 1 }→ 0 :|: z'' >= 0, z' = 0
p(z') -{ 1 }→ z' - 1 :|: z' - 1 >= 0
plus(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
plus(z', z'') -{ 1 }→ plus(z' - 1, 1 + z'') :|: z' - 1 >= 0, z'' >= 0
quot(z', z'', z1) -{ 3 }→ if(1, 0, z'', plus(z1 - 1, 1 + (1 + 0))) :|: z1 - 1 >= 0, z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 }→ if(1, 0, z'', 1 + 0) :|: z1 = 0, z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 }→ if(0, 1 + (z' - 1), z'', plus(z1 - 1, 1 + (1 + 0))) :|: z' - 1 >= 0, z'' >= 0, z1 - 1 >= 0
quot(z', z'', z1) -{ 3 }→ if(0, 1 + (z' - 1), z'', 1 + 0) :|: z1 = 0, z' - 1 >= 0, z'' >= 0
zero(z') -{ 1 }→ 1 :|: z' = 0
zero(z') -{ 1 }→ 0 :|: z' - 1 >= 0
minus: runtime: O(n1) [1 + z''], size: O(n1) [z'] |
div(z', z'') -{ 1 }→ quot(z', z'', 0) :|: z' >= 0, z'' >= 0
if(z', z'', z1, z2) -{ 2 + z1 }→ quot(s', 1 + (z1 - 1), z2) :|: s' >= 0, s' <= 1 * (z'' - 1), z2 >= 0, z1 - 1 >= 0, z'' - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ quot(0, 1 + (z1 - 1), z2) :|: z'' = 0, z2 >= 0, z1 - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ z2 - 1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1, z2 - 1 >= 0
minus(z', z'') -{ 1 + z'' }→ s :|: s >= 0, s <= 1 * (z' - 1), z' - 1 >= 0, z'' - 1 >= 0
minus(z', z'') -{ 1 }→ z' :|: z'' = 0, z' >= 0
minus(z', z'') -{ 1 }→ 0 :|: z'' >= 0, z' = 0
p(z') -{ 1 }→ z' - 1 :|: z' - 1 >= 0
plus(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
plus(z', z'') -{ 1 }→ plus(z' - 1, 1 + z'') :|: z' - 1 >= 0, z'' >= 0
quot(z', z'', z1) -{ 3 }→ if(1, 0, z'', plus(z1 - 1, 1 + (1 + 0))) :|: z1 - 1 >= 0, z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 }→ if(1, 0, z'', 1 + 0) :|: z1 = 0, z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 }→ if(0, 1 + (z' - 1), z'', plus(z1 - 1, 1 + (1 + 0))) :|: z' - 1 >= 0, z'' >= 0, z1 - 1 >= 0
quot(z', z'', z1) -{ 3 }→ if(0, 1 + (z' - 1), z'', 1 + 0) :|: z1 = 0, z' - 1 >= 0, z'' >= 0
zero(z') -{ 1 }→ 1 :|: z' = 0
zero(z') -{ 1 }→ 0 :|: z' - 1 >= 0
minus: runtime: O(n1) [1 + z''], size: O(n1) [z'] |
div(z', z'') -{ 1 }→ quot(z', z'', 0) :|: z' >= 0, z'' >= 0
if(z', z'', z1, z2) -{ 2 + z1 }→ quot(s', 1 + (z1 - 1), z2) :|: s' >= 0, s' <= 1 * (z'' - 1), z2 >= 0, z1 - 1 >= 0, z'' - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ quot(0, 1 + (z1 - 1), z2) :|: z'' = 0, z2 >= 0, z1 - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ z2 - 1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1, z2 - 1 >= 0
minus(z', z'') -{ 1 + z'' }→ s :|: s >= 0, s <= 1 * (z' - 1), z' - 1 >= 0, z'' - 1 >= 0
minus(z', z'') -{ 1 }→ z' :|: z'' = 0, z' >= 0
minus(z', z'') -{ 1 }→ 0 :|: z'' >= 0, z' = 0
p(z') -{ 1 }→ z' - 1 :|: z' - 1 >= 0
plus(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
plus(z', z'') -{ 1 }→ plus(z' - 1, 1 + z'') :|: z' - 1 >= 0, z'' >= 0
quot(z', z'', z1) -{ 3 }→ if(1, 0, z'', plus(z1 - 1, 1 + (1 + 0))) :|: z1 - 1 >= 0, z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 }→ if(1, 0, z'', 1 + 0) :|: z1 = 0, z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 }→ if(0, 1 + (z' - 1), z'', plus(z1 - 1, 1 + (1 + 0))) :|: z' - 1 >= 0, z'' >= 0, z1 - 1 >= 0
quot(z', z'', z1) -{ 3 }→ if(0, 1 + (z' - 1), z'', 1 + 0) :|: z1 = 0, z' - 1 >= 0, z'' >= 0
zero(z') -{ 1 }→ 1 :|: z' = 0
zero(z') -{ 1 }→ 0 :|: z' - 1 >= 0
minus: runtime: O(n1) [1 + z''], size: O(n1) [z'] zero: runtime: ?, size: O(1) [1] |
div(z', z'') -{ 1 }→ quot(z', z'', 0) :|: z' >= 0, z'' >= 0
if(z', z'', z1, z2) -{ 2 + z1 }→ quot(s', 1 + (z1 - 1), z2) :|: s' >= 0, s' <= 1 * (z'' - 1), z2 >= 0, z1 - 1 >= 0, z'' - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ quot(0, 1 + (z1 - 1), z2) :|: z'' = 0, z2 >= 0, z1 - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ z2 - 1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1, z2 - 1 >= 0
minus(z', z'') -{ 1 + z'' }→ s :|: s >= 0, s <= 1 * (z' - 1), z' - 1 >= 0, z'' - 1 >= 0
minus(z', z'') -{ 1 }→ z' :|: z'' = 0, z' >= 0
minus(z', z'') -{ 1 }→ 0 :|: z'' >= 0, z' = 0
p(z') -{ 1 }→ z' - 1 :|: z' - 1 >= 0
plus(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
plus(z', z'') -{ 1 }→ plus(z' - 1, 1 + z'') :|: z' - 1 >= 0, z'' >= 0
quot(z', z'', z1) -{ 3 }→ if(1, 0, z'', plus(z1 - 1, 1 + (1 + 0))) :|: z1 - 1 >= 0, z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 }→ if(1, 0, z'', 1 + 0) :|: z1 = 0, z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 }→ if(0, 1 + (z' - 1), z'', plus(z1 - 1, 1 + (1 + 0))) :|: z' - 1 >= 0, z'' >= 0, z1 - 1 >= 0
quot(z', z'', z1) -{ 3 }→ if(0, 1 + (z' - 1), z'', 1 + 0) :|: z1 = 0, z' - 1 >= 0, z'' >= 0
zero(z') -{ 1 }→ 1 :|: z' = 0
zero(z') -{ 1 }→ 0 :|: z' - 1 >= 0
minus: runtime: O(n1) [1 + z''], size: O(n1) [z'] zero: runtime: O(1) [1], size: O(1) [1] |
div(z', z'') -{ 1 }→ quot(z', z'', 0) :|: z' >= 0, z'' >= 0
if(z', z'', z1, z2) -{ 2 + z1 }→ quot(s', 1 + (z1 - 1), z2) :|: s' >= 0, s' <= 1 * (z'' - 1), z2 >= 0, z1 - 1 >= 0, z'' - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ quot(0, 1 + (z1 - 1), z2) :|: z'' = 0, z2 >= 0, z1 - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ z2 - 1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1, z2 - 1 >= 0
minus(z', z'') -{ 1 + z'' }→ s :|: s >= 0, s <= 1 * (z' - 1), z' - 1 >= 0, z'' - 1 >= 0
minus(z', z'') -{ 1 }→ z' :|: z'' = 0, z' >= 0
minus(z', z'') -{ 1 }→ 0 :|: z'' >= 0, z' = 0
p(z') -{ 1 }→ z' - 1 :|: z' - 1 >= 0
plus(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
plus(z', z'') -{ 1 }→ plus(z' - 1, 1 + z'') :|: z' - 1 >= 0, z'' >= 0
quot(z', z'', z1) -{ 3 }→ if(1, 0, z'', plus(z1 - 1, 1 + (1 + 0))) :|: z1 - 1 >= 0, z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 }→ if(1, 0, z'', 1 + 0) :|: z1 = 0, z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 }→ if(0, 1 + (z' - 1), z'', plus(z1 - 1, 1 + (1 + 0))) :|: z' - 1 >= 0, z'' >= 0, z1 - 1 >= 0
quot(z', z'', z1) -{ 3 }→ if(0, 1 + (z' - 1), z'', 1 + 0) :|: z1 = 0, z' - 1 >= 0, z'' >= 0
zero(z') -{ 1 }→ 1 :|: z' = 0
zero(z') -{ 1 }→ 0 :|: z' - 1 >= 0
minus: runtime: O(n1) [1 + z''], size: O(n1) [z'] zero: runtime: O(1) [1], size: O(1) [1] |
div(z', z'') -{ 1 }→ quot(z', z'', 0) :|: z' >= 0, z'' >= 0
if(z', z'', z1, z2) -{ 2 + z1 }→ quot(s', 1 + (z1 - 1), z2) :|: s' >= 0, s' <= 1 * (z'' - 1), z2 >= 0, z1 - 1 >= 0, z'' - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ quot(0, 1 + (z1 - 1), z2) :|: z'' = 0, z2 >= 0, z1 - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ z2 - 1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1, z2 - 1 >= 0
minus(z', z'') -{ 1 + z'' }→ s :|: s >= 0, s <= 1 * (z' - 1), z' - 1 >= 0, z'' - 1 >= 0
minus(z', z'') -{ 1 }→ z' :|: z'' = 0, z' >= 0
minus(z', z'') -{ 1 }→ 0 :|: z'' >= 0, z' = 0
p(z') -{ 1 }→ z' - 1 :|: z' - 1 >= 0
plus(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
plus(z', z'') -{ 1 }→ plus(z' - 1, 1 + z'') :|: z' - 1 >= 0, z'' >= 0
quot(z', z'', z1) -{ 3 }→ if(1, 0, z'', plus(z1 - 1, 1 + (1 + 0))) :|: z1 - 1 >= 0, z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 }→ if(1, 0, z'', 1 + 0) :|: z1 = 0, z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 }→ if(0, 1 + (z' - 1), z'', plus(z1 - 1, 1 + (1 + 0))) :|: z' - 1 >= 0, z'' >= 0, z1 - 1 >= 0
quot(z', z'', z1) -{ 3 }→ if(0, 1 + (z' - 1), z'', 1 + 0) :|: z1 = 0, z' - 1 >= 0, z'' >= 0
zero(z') -{ 1 }→ 1 :|: z' = 0
zero(z') -{ 1 }→ 0 :|: z' - 1 >= 0
minus: runtime: O(n1) [1 + z''], size: O(n1) [z'] zero: runtime: O(1) [1], size: O(1) [1] plus: runtime: ?, size: O(n1) [z' + z''] |
div(z', z'') -{ 1 }→ quot(z', z'', 0) :|: z' >= 0, z'' >= 0
if(z', z'', z1, z2) -{ 2 + z1 }→ quot(s', 1 + (z1 - 1), z2) :|: s' >= 0, s' <= 1 * (z'' - 1), z2 >= 0, z1 - 1 >= 0, z'' - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ quot(0, 1 + (z1 - 1), z2) :|: z'' = 0, z2 >= 0, z1 - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ z2 - 1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1, z2 - 1 >= 0
minus(z', z'') -{ 1 + z'' }→ s :|: s >= 0, s <= 1 * (z' - 1), z' - 1 >= 0, z'' - 1 >= 0
minus(z', z'') -{ 1 }→ z' :|: z'' = 0, z' >= 0
minus(z', z'') -{ 1 }→ 0 :|: z'' >= 0, z' = 0
p(z') -{ 1 }→ z' - 1 :|: z' - 1 >= 0
plus(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
plus(z', z'') -{ 1 }→ plus(z' - 1, 1 + z'') :|: z' - 1 >= 0, z'' >= 0
quot(z', z'', z1) -{ 3 }→ if(1, 0, z'', plus(z1 - 1, 1 + (1 + 0))) :|: z1 - 1 >= 0, z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 }→ if(1, 0, z'', 1 + 0) :|: z1 = 0, z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 }→ if(0, 1 + (z' - 1), z'', plus(z1 - 1, 1 + (1 + 0))) :|: z' - 1 >= 0, z'' >= 0, z1 - 1 >= 0
quot(z', z'', z1) -{ 3 }→ if(0, 1 + (z' - 1), z'', 1 + 0) :|: z1 = 0, z' - 1 >= 0, z'' >= 0
zero(z') -{ 1 }→ 1 :|: z' = 0
zero(z') -{ 1 }→ 0 :|: z' - 1 >= 0
minus: runtime: O(n1) [1 + z''], size: O(n1) [z'] zero: runtime: O(1) [1], size: O(1) [1] plus: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] |
div(z', z'') -{ 1 }→ quot(z', z'', 0) :|: z' >= 0, z'' >= 0
if(z', z'', z1, z2) -{ 2 + z1 }→ quot(s', 1 + (z1 - 1), z2) :|: s' >= 0, s' <= 1 * (z'' - 1), z2 >= 0, z1 - 1 >= 0, z'' - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ quot(0, 1 + (z1 - 1), z2) :|: z'' = 0, z2 >= 0, z1 - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ z2 - 1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1, z2 - 1 >= 0
minus(z', z'') -{ 1 + z'' }→ s :|: s >= 0, s <= 1 * (z' - 1), z' - 1 >= 0, z'' - 1 >= 0
minus(z', z'') -{ 1 }→ z' :|: z'' = 0, z' >= 0
minus(z', z'') -{ 1 }→ 0 :|: z'' >= 0, z' = 0
p(z') -{ 1 }→ z' - 1 :|: z' - 1 >= 0
plus(z', z'') -{ 1 + z' }→ s'' :|: s'' >= 0, s'' <= 1 * (z' - 1) + 1 * (1 + z''), z' - 1 >= 0, z'' >= 0
plus(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 + z1 }→ if(1, 0, z'', s2) :|: s2 >= 0, s2 <= 1 * (z1 - 1) + 1 * (1 + (1 + 0)), z1 - 1 >= 0, z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 }→ if(1, 0, z'', 1 + 0) :|: z1 = 0, z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 + z1 }→ if(0, 1 + (z' - 1), z'', s1) :|: s1 >= 0, s1 <= 1 * (z1 - 1) + 1 * (1 + (1 + 0)), z' - 1 >= 0, z'' >= 0, z1 - 1 >= 0
quot(z', z'', z1) -{ 3 }→ if(0, 1 + (z' - 1), z'', 1 + 0) :|: z1 = 0, z' - 1 >= 0, z'' >= 0
zero(z') -{ 1 }→ 1 :|: z' = 0
zero(z') -{ 1 }→ 0 :|: z' - 1 >= 0
minus: runtime: O(n1) [1 + z''], size: O(n1) [z'] zero: runtime: O(1) [1], size: O(1) [1] plus: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] |
div(z', z'') -{ 1 }→ quot(z', z'', 0) :|: z' >= 0, z'' >= 0
if(z', z'', z1, z2) -{ 2 + z1 }→ quot(s', 1 + (z1 - 1), z2) :|: s' >= 0, s' <= 1 * (z'' - 1), z2 >= 0, z1 - 1 >= 0, z'' - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ quot(0, 1 + (z1 - 1), z2) :|: z'' = 0, z2 >= 0, z1 - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ z2 - 1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1, z2 - 1 >= 0
minus(z', z'') -{ 1 + z'' }→ s :|: s >= 0, s <= 1 * (z' - 1), z' - 1 >= 0, z'' - 1 >= 0
minus(z', z'') -{ 1 }→ z' :|: z'' = 0, z' >= 0
minus(z', z'') -{ 1 }→ 0 :|: z'' >= 0, z' = 0
p(z') -{ 1 }→ z' - 1 :|: z' - 1 >= 0
plus(z', z'') -{ 1 + z' }→ s'' :|: s'' >= 0, s'' <= 1 * (z' - 1) + 1 * (1 + z''), z' - 1 >= 0, z'' >= 0
plus(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 + z1 }→ if(1, 0, z'', s2) :|: s2 >= 0, s2 <= 1 * (z1 - 1) + 1 * (1 + (1 + 0)), z1 - 1 >= 0, z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 }→ if(1, 0, z'', 1 + 0) :|: z1 = 0, z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 + z1 }→ if(0, 1 + (z' - 1), z'', s1) :|: s1 >= 0, s1 <= 1 * (z1 - 1) + 1 * (1 + (1 + 0)), z' - 1 >= 0, z'' >= 0, z1 - 1 >= 0
quot(z', z'', z1) -{ 3 }→ if(0, 1 + (z' - 1), z'', 1 + 0) :|: z1 = 0, z' - 1 >= 0, z'' >= 0
zero(z') -{ 1 }→ 1 :|: z' = 0
zero(z') -{ 1 }→ 0 :|: z' - 1 >= 0
minus: runtime: O(n1) [1 + z''], size: O(n1) [z'] zero: runtime: O(1) [1], size: O(1) [1] plus: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] p: runtime: ?, size: O(n1) [z'] |
div(z', z'') -{ 1 }→ quot(z', z'', 0) :|: z' >= 0, z'' >= 0
if(z', z'', z1, z2) -{ 2 + z1 }→ quot(s', 1 + (z1 - 1), z2) :|: s' >= 0, s' <= 1 * (z'' - 1), z2 >= 0, z1 - 1 >= 0, z'' - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ quot(0, 1 + (z1 - 1), z2) :|: z'' = 0, z2 >= 0, z1 - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ z2 - 1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1, z2 - 1 >= 0
minus(z', z'') -{ 1 + z'' }→ s :|: s >= 0, s <= 1 * (z' - 1), z' - 1 >= 0, z'' - 1 >= 0
minus(z', z'') -{ 1 }→ z' :|: z'' = 0, z' >= 0
minus(z', z'') -{ 1 }→ 0 :|: z'' >= 0, z' = 0
p(z') -{ 1 }→ z' - 1 :|: z' - 1 >= 0
plus(z', z'') -{ 1 + z' }→ s'' :|: s'' >= 0, s'' <= 1 * (z' - 1) + 1 * (1 + z''), z' - 1 >= 0, z'' >= 0
plus(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 + z1 }→ if(1, 0, z'', s2) :|: s2 >= 0, s2 <= 1 * (z1 - 1) + 1 * (1 + (1 + 0)), z1 - 1 >= 0, z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 }→ if(1, 0, z'', 1 + 0) :|: z1 = 0, z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 + z1 }→ if(0, 1 + (z' - 1), z'', s1) :|: s1 >= 0, s1 <= 1 * (z1 - 1) + 1 * (1 + (1 + 0)), z' - 1 >= 0, z'' >= 0, z1 - 1 >= 0
quot(z', z'', z1) -{ 3 }→ if(0, 1 + (z' - 1), z'', 1 + 0) :|: z1 = 0, z' - 1 >= 0, z'' >= 0
zero(z') -{ 1 }→ 1 :|: z' = 0
zero(z') -{ 1 }→ 0 :|: z' - 1 >= 0
minus: runtime: O(n1) [1 + z''], size: O(n1) [z'] zero: runtime: O(1) [1], size: O(1) [1] plus: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] p: runtime: O(1) [1], size: O(n1) [z'] |
div(z', z'') -{ 1 }→ quot(z', z'', 0) :|: z' >= 0, z'' >= 0
if(z', z'', z1, z2) -{ 2 + z1 }→ quot(s', 1 + (z1 - 1), z2) :|: s' >= 0, s' <= 1 * (z'' - 1), z2 >= 0, z1 - 1 >= 0, z'' - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ quot(0, 1 + (z1 - 1), z2) :|: z'' = 0, z2 >= 0, z1 - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ z2 - 1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1, z2 - 1 >= 0
minus(z', z'') -{ 1 + z'' }→ s :|: s >= 0, s <= 1 * (z' - 1), z' - 1 >= 0, z'' - 1 >= 0
minus(z', z'') -{ 1 }→ z' :|: z'' = 0, z' >= 0
minus(z', z'') -{ 1 }→ 0 :|: z'' >= 0, z' = 0
p(z') -{ 1 }→ z' - 1 :|: z' - 1 >= 0
plus(z', z'') -{ 1 + z' }→ s'' :|: s'' >= 0, s'' <= 1 * (z' - 1) + 1 * (1 + z''), z' - 1 >= 0, z'' >= 0
plus(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 + z1 }→ if(1, 0, z'', s2) :|: s2 >= 0, s2 <= 1 * (z1 - 1) + 1 * (1 + (1 + 0)), z1 - 1 >= 0, z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 }→ if(1, 0, z'', 1 + 0) :|: z1 = 0, z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 + z1 }→ if(0, 1 + (z' - 1), z'', s1) :|: s1 >= 0, s1 <= 1 * (z1 - 1) + 1 * (1 + (1 + 0)), z' - 1 >= 0, z'' >= 0, z1 - 1 >= 0
quot(z', z'', z1) -{ 3 }→ if(0, 1 + (z' - 1), z'', 1 + 0) :|: z1 = 0, z' - 1 >= 0, z'' >= 0
zero(z') -{ 1 }→ 1 :|: z' = 0
zero(z') -{ 1 }→ 0 :|: z' - 1 >= 0
minus: runtime: O(n1) [1 + z''], size: O(n1) [z'] zero: runtime: O(1) [1], size: O(1) [1] plus: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] p: runtime: O(1) [1], size: O(n1) [z'] |
div(z', z'') -{ 1 }→ quot(z', z'', 0) :|: z' >= 0, z'' >= 0
if(z', z'', z1, z2) -{ 2 + z1 }→ quot(s', 1 + (z1 - 1), z2) :|: s' >= 0, s' <= 1 * (z'' - 1), z2 >= 0, z1 - 1 >= 0, z'' - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ quot(0, 1 + (z1 - 1), z2) :|: z'' = 0, z2 >= 0, z1 - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ z2 - 1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1, z2 - 1 >= 0
minus(z', z'') -{ 1 + z'' }→ s :|: s >= 0, s <= 1 * (z' - 1), z' - 1 >= 0, z'' - 1 >= 0
minus(z', z'') -{ 1 }→ z' :|: z'' = 0, z' >= 0
minus(z', z'') -{ 1 }→ 0 :|: z'' >= 0, z' = 0
p(z') -{ 1 }→ z' - 1 :|: z' - 1 >= 0
plus(z', z'') -{ 1 + z' }→ s'' :|: s'' >= 0, s'' <= 1 * (z' - 1) + 1 * (1 + z''), z' - 1 >= 0, z'' >= 0
plus(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 + z1 }→ if(1, 0, z'', s2) :|: s2 >= 0, s2 <= 1 * (z1 - 1) + 1 * (1 + (1 + 0)), z1 - 1 >= 0, z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 }→ if(1, 0, z'', 1 + 0) :|: z1 = 0, z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 + z1 }→ if(0, 1 + (z' - 1), z'', s1) :|: s1 >= 0, s1 <= 1 * (z1 - 1) + 1 * (1 + (1 + 0)), z' - 1 >= 0, z'' >= 0, z1 - 1 >= 0
quot(z', z'', z1) -{ 3 }→ if(0, 1 + (z' - 1), z'', 1 + 0) :|: z1 = 0, z' - 1 >= 0, z'' >= 0
zero(z') -{ 1 }→ 1 :|: z' = 0
zero(z') -{ 1 }→ 0 :|: z' - 1 >= 0
minus: runtime: O(n1) [1 + z''], size: O(n1) [z'] zero: runtime: O(1) [1], size: O(1) [1] plus: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] p: runtime: O(1) [1], size: O(n1) [z'] if: runtime: ?, size: O(n1) [1 + z'' + z2] quot: runtime: ?, size: O(n1) [2 + z' + z1] |
div(z', z'') -{ 1 }→ quot(z', z'', 0) :|: z' >= 0, z'' >= 0
if(z', z'', z1, z2) -{ 2 + z1 }→ quot(s', 1 + (z1 - 1), z2) :|: s' >= 0, s' <= 1 * (z'' - 1), z2 >= 0, z1 - 1 >= 0, z'' - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ quot(0, 1 + (z1 - 1), z2) :|: z'' = 0, z2 >= 0, z1 - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ z2 - 1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1, z2 - 1 >= 0
minus(z', z'') -{ 1 + z'' }→ s :|: s >= 0, s <= 1 * (z' - 1), z' - 1 >= 0, z'' - 1 >= 0
minus(z', z'') -{ 1 }→ z' :|: z'' = 0, z' >= 0
minus(z', z'') -{ 1 }→ 0 :|: z'' >= 0, z' = 0
p(z') -{ 1 }→ z' - 1 :|: z' - 1 >= 0
plus(z', z'') -{ 1 + z' }→ s'' :|: s'' >= 0, s'' <= 1 * (z' - 1) + 1 * (1 + z''), z' - 1 >= 0, z'' >= 0
plus(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 + z1 }→ if(1, 0, z'', s2) :|: s2 >= 0, s2 <= 1 * (z1 - 1) + 1 * (1 + (1 + 0)), z1 - 1 >= 0, z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 }→ if(1, 0, z'', 1 + 0) :|: z1 = 0, z'' >= 0, z' = 0
quot(z', z'', z1) -{ 3 + z1 }→ if(0, 1 + (z' - 1), z'', s1) :|: s1 >= 0, s1 <= 1 * (z1 - 1) + 1 * (1 + (1 + 0)), z' - 1 >= 0, z'' >= 0, z1 - 1 >= 0
quot(z', z'', z1) -{ 3 }→ if(0, 1 + (z' - 1), z'', 1 + 0) :|: z1 = 0, z' - 1 >= 0, z'' >= 0
zero(z') -{ 1 }→ 1 :|: z' = 0
zero(z') -{ 1 }→ 0 :|: z' - 1 >= 0
minus: runtime: O(n1) [1 + z''], size: O(n1) [z'] zero: runtime: O(1) [1], size: O(1) [1] plus: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] p: runtime: O(1) [1], size: O(n1) [z'] if: runtime: O(n2) [15 + 10·z'' + 2·z''·z1 + z''·z2 + z''2 + 3·z1 + 2·z2], size: O(n1) [1 + z'' + z2] quot: runtime: O(n2) [20 + 11·z' + 2·z'·z'' + z'·z1 + z'2 + 3·z'' + 3·z1], size: O(n1) [2 + z' + z1] |
div(z', z'') -{ 21 + 11·z' + 2·z'·z'' + z'2 + 3·z'' }→ s3 :|: s3 >= 0, s3 <= 1 * z' + 1 * 0 + 2, z' >= 0, z'' >= 0
if(z', z'', z1, z2) -{ 22 + 3·z1 + 3·z2 }→ s8 :|: s8 >= 0, s8 <= 1 * 0 + 1 * z2 + 2, z'' = 0, z2 >= 0, z1 - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 22 + 11·s' + 2·s'·z1 + s'·z2 + s'2 + 4·z1 + 3·z2 }→ s9 :|: s9 >= 0, s9 <= 1 * s' + 1 * z2 + 2, s' >= 0, s' <= 1 * (z'' - 1), z2 >= 0, z1 - 1 >= 0, z'' - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ z2 - 1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1, z2 - 1 >= 0
minus(z', z'') -{ 1 + z'' }→ s :|: s >= 0, s <= 1 * (z' - 1), z' - 1 >= 0, z'' - 1 >= 0
minus(z', z'') -{ 1 }→ z' :|: z'' = 0, z' >= 0
minus(z', z'') -{ 1 }→ 0 :|: z'' >= 0, z' = 0
p(z') -{ 1 }→ z' - 1 :|: z' - 1 >= 0
plus(z', z'') -{ 1 + z' }→ s'' :|: s'' >= 0, s'' <= 1 * (z' - 1) + 1 * (1 + z''), z' - 1 >= 0, z'' >= 0
plus(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
quot(z', z'', z1) -{ 20 + 11·z' + 2·z'·z'' + z'2 + 3·z'' }→ s4 :|: s4 >= 0, s4 <= 1 * (1 + 0) + 1 + 1 * (1 + (z' - 1)), z1 = 0, z' - 1 >= 0, z'' >= 0
quot(z', z'', z1) -{ 18 + 2·s1 + s1·z' + 10·z' + 2·z'·z'' + z'2 + 3·z'' + z1 }→ s5 :|: s5 >= 0, s5 <= 1 * s1 + 1 + 1 * (1 + (z' - 1)), s1 >= 0, s1 <= 1 * (z1 - 1) + 1 * (1 + (1 + 0)), z' - 1 >= 0, z'' >= 0, z1 - 1 >= 0
quot(z', z'', z1) -{ 20 + 3·z'' }→ s6 :|: s6 >= 0, s6 <= 1 * (1 + 0) + 1 + 1 * 0, z1 = 0, z'' >= 0, z' = 0
quot(z', z'', z1) -{ 18 + 2·s2 + 3·z'' + z1 }→ s7 :|: s7 >= 0, s7 <= 1 * s2 + 1 + 1 * 0, s2 >= 0, s2 <= 1 * (z1 - 1) + 1 * (1 + (1 + 0)), z1 - 1 >= 0, z'' >= 0, z' = 0
zero(z') -{ 1 }→ 1 :|: z' = 0
zero(z') -{ 1 }→ 0 :|: z' - 1 >= 0
minus: runtime: O(n1) [1 + z''], size: O(n1) [z'] zero: runtime: O(1) [1], size: O(1) [1] plus: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] p: runtime: O(1) [1], size: O(n1) [z'] if: runtime: O(n2) [15 + 10·z'' + 2·z''·z1 + z''·z2 + z''2 + 3·z1 + 2·z2], size: O(n1) [1 + z'' + z2] quot: runtime: O(n2) [20 + 11·z' + 2·z'·z'' + z'·z1 + z'2 + 3·z'' + 3·z1], size: O(n1) [2 + z' + z1] |
div(z', z'') -{ 21 + 11·z' + 2·z'·z'' + z'2 + 3·z'' }→ s3 :|: s3 >= 0, s3 <= 1 * z' + 1 * 0 + 2, z' >= 0, z'' >= 0
if(z', z'', z1, z2) -{ 22 + 3·z1 + 3·z2 }→ s8 :|: s8 >= 0, s8 <= 1 * 0 + 1 * z2 + 2, z'' = 0, z2 >= 0, z1 - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 22 + 11·s' + 2·s'·z1 + s'·z2 + s'2 + 4·z1 + 3·z2 }→ s9 :|: s9 >= 0, s9 <= 1 * s' + 1 * z2 + 2, s' >= 0, s' <= 1 * (z'' - 1), z2 >= 0, z1 - 1 >= 0, z'' - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ z2 - 1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1, z2 - 1 >= 0
minus(z', z'') -{ 1 + z'' }→ s :|: s >= 0, s <= 1 * (z' - 1), z' - 1 >= 0, z'' - 1 >= 0
minus(z', z'') -{ 1 }→ z' :|: z'' = 0, z' >= 0
minus(z', z'') -{ 1 }→ 0 :|: z'' >= 0, z' = 0
p(z') -{ 1 }→ z' - 1 :|: z' - 1 >= 0
plus(z', z'') -{ 1 + z' }→ s'' :|: s'' >= 0, s'' <= 1 * (z' - 1) + 1 * (1 + z''), z' - 1 >= 0, z'' >= 0
plus(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
quot(z', z'', z1) -{ 20 + 11·z' + 2·z'·z'' + z'2 + 3·z'' }→ s4 :|: s4 >= 0, s4 <= 1 * (1 + 0) + 1 + 1 * (1 + (z' - 1)), z1 = 0, z' - 1 >= 0, z'' >= 0
quot(z', z'', z1) -{ 18 + 2·s1 + s1·z' + 10·z' + 2·z'·z'' + z'2 + 3·z'' + z1 }→ s5 :|: s5 >= 0, s5 <= 1 * s1 + 1 + 1 * (1 + (z' - 1)), s1 >= 0, s1 <= 1 * (z1 - 1) + 1 * (1 + (1 + 0)), z' - 1 >= 0, z'' >= 0, z1 - 1 >= 0
quot(z', z'', z1) -{ 20 + 3·z'' }→ s6 :|: s6 >= 0, s6 <= 1 * (1 + 0) + 1 + 1 * 0, z1 = 0, z'' >= 0, z' = 0
quot(z', z'', z1) -{ 18 + 2·s2 + 3·z'' + z1 }→ s7 :|: s7 >= 0, s7 <= 1 * s2 + 1 + 1 * 0, s2 >= 0, s2 <= 1 * (z1 - 1) + 1 * (1 + (1 + 0)), z1 - 1 >= 0, z'' >= 0, z' = 0
zero(z') -{ 1 }→ 1 :|: z' = 0
zero(z') -{ 1 }→ 0 :|: z' - 1 >= 0
minus: runtime: O(n1) [1 + z''], size: O(n1) [z'] zero: runtime: O(1) [1], size: O(1) [1] plus: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] p: runtime: O(1) [1], size: O(n1) [z'] if: runtime: O(n2) [15 + 10·z'' + 2·z''·z1 + z''·z2 + z''2 + 3·z1 + 2·z2], size: O(n1) [1 + z'' + z2] quot: runtime: O(n2) [20 + 11·z' + 2·z'·z'' + z'·z1 + z'2 + 3·z'' + 3·z1], size: O(n1) [2 + z' + z1] div: runtime: ?, size: O(n1) [2 + z'] |
div(z', z'') -{ 21 + 11·z' + 2·z'·z'' + z'2 + 3·z'' }→ s3 :|: s3 >= 0, s3 <= 1 * z' + 1 * 0 + 2, z' >= 0, z'' >= 0
if(z', z'', z1, z2) -{ 22 + 3·z1 + 3·z2 }→ s8 :|: s8 >= 0, s8 <= 1 * 0 + 1 * z2 + 2, z'' = 0, z2 >= 0, z1 - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 22 + 11·s' + 2·s'·z1 + s'·z2 + s'2 + 4·z1 + 3·z2 }→ s9 :|: s9 >= 0, s9 <= 1 * s' + 1 * z2 + 2, s' >= 0, s' <= 1 * (z'' - 1), z2 >= 0, z1 - 1 >= 0, z'' - 1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ z2 - 1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1, z2 - 1 >= 0
minus(z', z'') -{ 1 + z'' }→ s :|: s >= 0, s <= 1 * (z' - 1), z' - 1 >= 0, z'' - 1 >= 0
minus(z', z'') -{ 1 }→ z' :|: z'' = 0, z' >= 0
minus(z', z'') -{ 1 }→ 0 :|: z'' >= 0, z' = 0
p(z') -{ 1 }→ z' - 1 :|: z' - 1 >= 0
plus(z', z'') -{ 1 + z' }→ s'' :|: s'' >= 0, s'' <= 1 * (z' - 1) + 1 * (1 + z''), z' - 1 >= 0, z'' >= 0
plus(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
quot(z', z'', z1) -{ 20 + 11·z' + 2·z'·z'' + z'2 + 3·z'' }→ s4 :|: s4 >= 0, s4 <= 1 * (1 + 0) + 1 + 1 * (1 + (z' - 1)), z1 = 0, z' - 1 >= 0, z'' >= 0
quot(z', z'', z1) -{ 18 + 2·s1 + s1·z' + 10·z' + 2·z'·z'' + z'2 + 3·z'' + z1 }→ s5 :|: s5 >= 0, s5 <= 1 * s1 + 1 + 1 * (1 + (z' - 1)), s1 >= 0, s1 <= 1 * (z1 - 1) + 1 * (1 + (1 + 0)), z' - 1 >= 0, z'' >= 0, z1 - 1 >= 0
quot(z', z'', z1) -{ 20 + 3·z'' }→ s6 :|: s6 >= 0, s6 <= 1 * (1 + 0) + 1 + 1 * 0, z1 = 0, z'' >= 0, z' = 0
quot(z', z'', z1) -{ 18 + 2·s2 + 3·z'' + z1 }→ s7 :|: s7 >= 0, s7 <= 1 * s2 + 1 + 1 * 0, s2 >= 0, s2 <= 1 * (z1 - 1) + 1 * (1 + (1 + 0)), z1 - 1 >= 0, z'' >= 0, z' = 0
zero(z') -{ 1 }→ 1 :|: z' = 0
zero(z') -{ 1 }→ 0 :|: z' - 1 >= 0
minus: runtime: O(n1) [1 + z''], size: O(n1) [z'] zero: runtime: O(1) [1], size: O(1) [1] plus: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] p: runtime: O(1) [1], size: O(n1) [z'] if: runtime: O(n2) [15 + 10·z'' + 2·z''·z1 + z''·z2 + z''2 + 3·z1 + 2·z2], size: O(n1) [1 + z'' + z2] quot: runtime: O(n2) [20 + 11·z' + 2·z'·z'' + z'·z1 + z'2 + 3·z'' + 3·z1], size: O(n1) [2 + z' + z1] div: runtime: O(n2) [21 + 11·z' + 2·z'·z'' + z'2 + 3·z''], size: O(n1) [2 + z'] |