Werner Lewis | 99e8178 | 2022-09-30 16:28:43 +0100 | [diff] [blame] | 1 | """Common features for bignum in test generation framework.""" |
| 2 | # Copyright The Mbed TLS Contributors |
| 3 | # SPDX-License-Identifier: Apache-2.0 |
| 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 6 | # not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 13 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | |
Werner Lewis | 99e8178 | 2022-09-30 16:28:43 +0100 | [diff] [blame] | 17 | from abc import abstractmethod |
Janos Follath | 98edf21 | 2022-11-19 12:48:17 +0000 | [diff] [blame] | 18 | from typing import Iterator, List, Tuple, TypeVar, Any |
| 19 | from itertools import chain |
Werner Lewis | 99e8178 | 2022-09-30 16:28:43 +0100 | [diff] [blame] | 20 | |
Janos Follath | 87df373 | 2022-11-09 12:31:23 +0000 | [diff] [blame] | 21 | from . import test_case |
Janos Follath | 0cd8967 | 2022-11-09 12:14:14 +0000 | [diff] [blame] | 22 | from . import test_data_generation |
| 23 | |
Werner Lewis | 99e8178 | 2022-09-30 16:28:43 +0100 | [diff] [blame] | 24 | T = TypeVar('T') #pylint: disable=invalid-name |
| 25 | |
Werner Lewis | a850312 | 2022-10-04 10:10:40 +0100 | [diff] [blame] | 26 | def invmod(a: int, n: int) -> int: |
| 27 | """Return inverse of a to modulo n. |
| 28 | |
| 29 | Equivalent to pow(a, -1, n) in Python 3.8+. Implementation is equivalent |
| 30 | to long_invmod() in CPython. |
| 31 | """ |
| 32 | b, c = 1, 0 |
| 33 | while n: |
| 34 | q, r = divmod(a, n) |
| 35 | a, b, c, n = n, c, b - q*c, r |
| 36 | # at this point a is the gcd of the original inputs |
| 37 | if a == 1: |
| 38 | return b |
| 39 | raise ValueError("Not invertible") |
| 40 | |
Werner Lewis | 99e8178 | 2022-09-30 16:28:43 +0100 | [diff] [blame] | 41 | def hex_to_int(val: str) -> int: |
Gilles Peskine | 35af021 | 2022-11-15 20:43:33 +0100 | [diff] [blame] | 42 | """Implement the syntax accepted by mbedtls_test_read_mpi(). |
| 43 | |
| 44 | This is a superset of what is accepted by mbedtls_test_read_mpi_core(). |
| 45 | """ |
Gilles Peskine | b9b9026 | 2022-11-10 09:15:21 +0100 | [diff] [blame] | 46 | if val in ['', '-']: |
Gilles Peskine | 35af021 | 2022-11-15 20:43:33 +0100 | [diff] [blame] | 47 | return 0 |
| 48 | return int(val, 16) |
Werner Lewis | 99e8178 | 2022-09-30 16:28:43 +0100 | [diff] [blame] | 49 | |
| 50 | def quote_str(val) -> str: |
| 51 | return "\"{}\"".format(val) |
| 52 | |
Werner Lewis | f86c82e | 2022-10-19 13:50:10 +0100 | [diff] [blame] | 53 | def bound_mpi(val: int, bits_in_limb: int) -> int: |
| 54 | """First number exceeding number of limbs needed for given input value.""" |
| 55 | return bound_mpi_limbs(limbs_mpi(val, bits_in_limb), bits_in_limb) |
Werner Lewis | 99e8178 | 2022-09-30 16:28:43 +0100 | [diff] [blame] | 56 | |
Werner Lewis | f86c82e | 2022-10-19 13:50:10 +0100 | [diff] [blame] | 57 | def bound_mpi_limbs(limbs: int, bits_in_limb: int) -> int: |
| 58 | """First number exceeding maximum of given number of limbs.""" |
| 59 | bits = bits_in_limb * limbs |
Werner Lewis | 99e8178 | 2022-09-30 16:28:43 +0100 | [diff] [blame] | 60 | return 1 << bits |
| 61 | |
Werner Lewis | f86c82e | 2022-10-19 13:50:10 +0100 | [diff] [blame] | 62 | def limbs_mpi(val: int, bits_in_limb: int) -> int: |
| 63 | """Return the number of limbs required to store value.""" |
| 64 | return (val.bit_length() + bits_in_limb - 1) // bits_in_limb |
Werner Lewis | 99e8178 | 2022-09-30 16:28:43 +0100 | [diff] [blame] | 65 | |
| 66 | def combination_pairs(values: List[T]) -> List[Tuple[T, T]]: |
Gilles Peskine | 4cbbfd8 | 2022-11-09 21:57:52 +0100 | [diff] [blame] | 67 | """Return all pair combinations from input values.""" |
| 68 | return [(x, y) for x in values for y in values] |
Werner Lewis | 99e8178 | 2022-09-30 16:28:43 +0100 | [diff] [blame] | 69 | |
Janos Follath | 0cd8967 | 2022-11-09 12:14:14 +0000 | [diff] [blame] | 70 | class OperationCommon(test_data_generation.BaseTest): |
Werner Lewis | 99e8178 | 2022-09-30 16:28:43 +0100 | [diff] [blame] | 71 | """Common features for bignum binary operations. |
| 72 | |
| 73 | This adds functionality common in binary operation tests. |
| 74 | |
| 75 | Attributes: |
| 76 | symbol: Symbol to use for the operation in case description. |
| 77 | input_values: List of values to use as test case inputs. These are |
| 78 | combined to produce pairs of values. |
| 79 | input_cases: List of tuples containing pairs of test case inputs. This |
| 80 | can be used to implement specific pairs of inputs. |
Werner Lewis | bbf0a32 | 2022-10-04 10:07:13 +0100 | [diff] [blame] | 81 | unique_combinations_only: Boolean to select if test case combinations |
| 82 | must be unique. If True, only A,B or B,A would be included as a test |
| 83 | case. If False, both A,B and B,A would be included. |
Janos Follath | 6fa3f06 | 2022-11-17 20:33:51 +0000 | [diff] [blame] | 84 | input_style: Controls the way how test data is passed to the functions |
| 85 | in the generated test cases. "variable" passes them as they are |
| 86 | defined in the python source. "arch_split" pads the values with |
| 87 | zeroes depending on the architecture/limb size. If this is set, |
| 88 | test cases are generated for all architectures. |
Janos Follath | a36a3d3 | 2022-11-18 17:49:13 +0000 | [diff] [blame] | 89 | arity: the number of operands for the operation. Currently supported |
| 90 | values are 1 and 2. |
Werner Lewis | 99e8178 | 2022-09-30 16:28:43 +0100 | [diff] [blame] | 91 | """ |
| 92 | symbol = "" |
| 93 | input_values = [] # type: List[str] |
Janos Follath | 98edf21 | 2022-11-19 12:48:17 +0000 | [diff] [blame] | 94 | input_cases = [] # type: List[Any] |
Werner Lewis | bbf0a32 | 2022-10-04 10:07:13 +0100 | [diff] [blame] | 95 | unique_combinations_only = True |
Janos Follath | 6fa3f06 | 2022-11-17 20:33:51 +0000 | [diff] [blame] | 96 | input_styles = ["variable", "arch_split"] # type: List[str] |
| 97 | input_style = "variable" # type: str |
Janos Follath | 155ad8c | 2022-11-17 14:42:40 +0000 | [diff] [blame] | 98 | limb_sizes = [32, 64] # type: List[int] |
Janos Follath | a36a3d3 | 2022-11-18 17:49:13 +0000 | [diff] [blame] | 99 | arities = [1, 2] |
| 100 | arity = 2 |
Werner Lewis | 99e8178 | 2022-09-30 16:28:43 +0100 | [diff] [blame] | 101 | |
Janos Follath | a36a3d3 | 2022-11-18 17:49:13 +0000 | [diff] [blame] | 102 | def __init__(self, val_a: str, val_b: str = "0", bits_in_limb: int = 64) -> None: |
Janos Follath | 4c59d35 | 2022-11-18 16:05:46 +0000 | [diff] [blame] | 103 | self.val_a = val_a |
| 104 | self.val_b = val_b |
Janos Follath | abfca8f | 2022-11-18 16:48:45 +0000 | [diff] [blame] | 105 | # Setting the int versions here as opposed to making them @properties |
| 106 | # provides earlier/more robust input validation. |
Werner Lewis | 99e8178 | 2022-09-30 16:28:43 +0100 | [diff] [blame] | 107 | self.int_a = hex_to_int(val_a) |
| 108 | self.int_b = hex_to_int(val_b) |
Janos Follath | 155ad8c | 2022-11-17 14:42:40 +0000 | [diff] [blame] | 109 | if bits_in_limb not in self.limb_sizes: |
| 110 | raise ValueError("Invalid number of bits in limb!") |
Janos Follath | 6fa3f06 | 2022-11-17 20:33:51 +0000 | [diff] [blame] | 111 | if self.input_style == "arch_split": |
Janos Follath | 155ad8c | 2022-11-17 14:42:40 +0000 | [diff] [blame] | 112 | self.dependencies = ["MBEDTLS_HAVE_INT{:d}".format(bits_in_limb)] |
| 113 | self.bits_in_limb = bits_in_limb |
Werner Lewis | 99e8178 | 2022-09-30 16:28:43 +0100 | [diff] [blame] | 114 | |
Janos Follath | b41ab92 | 2022-11-17 15:13:02 +0000 | [diff] [blame] | 115 | @property |
| 116 | def boundary(self) -> int: |
Janos Follath | a36a3d3 | 2022-11-18 17:49:13 +0000 | [diff] [blame] | 117 | if self.arity == 1: |
| 118 | return self.int_a |
| 119 | elif self.arity == 2: |
| 120 | return max(self.int_a, self.int_b) |
| 121 | raise ValueError("Unsupported number of operands!") |
Janos Follath | b41ab92 | 2022-11-17 15:13:02 +0000 | [diff] [blame] | 122 | |
| 123 | @property |
Janos Follath | 6fa3f06 | 2022-11-17 20:33:51 +0000 | [diff] [blame] | 124 | def limb_boundary(self) -> int: |
| 125 | return bound_mpi(self.boundary, self.bits_in_limb) |
| 126 | |
| 127 | @property |
Janos Follath | b41ab92 | 2022-11-17 15:13:02 +0000 | [diff] [blame] | 128 | def limbs(self) -> int: |
| 129 | return limbs_mpi(self.boundary, self.bits_in_limb) |
| 130 | |
| 131 | @property |
| 132 | def hex_digits(self) -> int: |
| 133 | return 2 * (self.limbs * self.bits_in_limb // 8) |
| 134 | |
Janos Follath | 4c59d35 | 2022-11-18 16:05:46 +0000 | [diff] [blame] | 135 | def format_arg(self, val) -> str: |
| 136 | if self.input_style not in self.input_styles: |
| 137 | raise ValueError("Unknown input style!") |
| 138 | if self.input_style == "variable": |
| 139 | return val |
| 140 | else: |
| 141 | return val.zfill(self.hex_digits) |
| 142 | |
| 143 | def format_result(self, res) -> str: |
| 144 | res_str = '{:x}'.format(res) |
| 145 | return quote_str(self.format_arg(res_str)) |
Janos Follath | b41ab92 | 2022-11-17 15:13:02 +0000 | [diff] [blame] | 146 | |
| 147 | @property |
Janos Follath | 4c59d35 | 2022-11-18 16:05:46 +0000 | [diff] [blame] | 148 | def arg_a(self) -> str: |
| 149 | return self.format_arg(self.val_a) |
| 150 | |
| 151 | @property |
| 152 | def arg_b(self) -> str: |
Janos Follath | a36a3d3 | 2022-11-18 17:49:13 +0000 | [diff] [blame] | 153 | if self.arity == 1: |
| 154 | raise AttributeError("Operation is unary and doesn't have arg_b!") |
Janos Follath | 4c59d35 | 2022-11-18 16:05:46 +0000 | [diff] [blame] | 155 | return self.format_arg(self.val_b) |
Janos Follath | b41ab92 | 2022-11-17 15:13:02 +0000 | [diff] [blame] | 156 | |
Werner Lewis | 99e8178 | 2022-09-30 16:28:43 +0100 | [diff] [blame] | 157 | def arguments(self) -> List[str]: |
Janos Follath | a36a3d3 | 2022-11-18 17:49:13 +0000 | [diff] [blame] | 158 | args = [quote_str(self.arg_a)] |
| 159 | if self.arity == 2: |
| 160 | args.append(quote_str(self.arg_b)) |
| 161 | return args + self.result() |
Werner Lewis | 99e8178 | 2022-09-30 16:28:43 +0100 | [diff] [blame] | 162 | |
Janos Follath | 3aeb60a | 2022-11-09 13:24:46 +0000 | [diff] [blame] | 163 | def description(self) -> str: |
| 164 | """Generate a description for the test case. |
| 165 | |
| 166 | If not set, case_description uses the form A `symbol` B, where symbol |
| 167 | is used to represent the operation. Descriptions of each value are |
| 168 | generated to provide some context to the test case. |
| 169 | """ |
| 170 | if not self.case_description: |
| 171 | self.case_description = "{:x} {} {:x}".format( |
| 172 | self.int_a, self.symbol, self.int_b |
| 173 | ) |
| 174 | return super().description() |
| 175 | |
Janos Follath | 939621f | 2022-11-18 18:15:24 +0000 | [diff] [blame] | 176 | @property |
| 177 | def is_valid(self) -> bool: |
| 178 | return True |
| 179 | |
Werner Lewis | 99e8178 | 2022-09-30 16:28:43 +0100 | [diff] [blame] | 180 | @abstractmethod |
Werner Lewis | 1b20e7e | 2022-10-12 14:53:17 +0100 | [diff] [blame] | 181 | def result(self) -> List[str]: |
Werner Lewis | 99e8178 | 2022-09-30 16:28:43 +0100 | [diff] [blame] | 182 | """Get the result of the operation. |
| 183 | |
| 184 | This could be calculated during initialization and stored as `_result` |
| 185 | and then returned, or calculated when the method is called. |
| 186 | """ |
| 187 | raise NotImplementedError |
| 188 | |
| 189 | @classmethod |
| 190 | def get_value_pairs(cls) -> Iterator[Tuple[str, str]]: |
| 191 | """Generator to yield pairs of inputs. |
| 192 | |
| 193 | Combinations are first generated from all input values, and then |
| 194 | specific cases provided. |
| 195 | """ |
Werner Lewis | bbf0a32 | 2022-10-04 10:07:13 +0100 | [diff] [blame] | 196 | if cls.unique_combinations_only: |
| 197 | yield from combination_pairs(cls.input_values) |
| 198 | else: |
| 199 | yield from ( |
| 200 | (a, b) |
| 201 | for a in cls.input_values |
| 202 | for b in cls.input_values |
| 203 | ) |
Janos Follath | f8b3b72 | 2022-11-03 14:46:18 +0000 | [diff] [blame] | 204 | |
Janos Follath | 87df373 | 2022-11-09 12:31:23 +0000 | [diff] [blame] | 205 | @classmethod |
| 206 | def generate_function_tests(cls) -> Iterator[test_case.TestCase]: |
Janos Follath | 6fa3f06 | 2022-11-17 20:33:51 +0000 | [diff] [blame] | 207 | if cls.input_style not in cls.input_styles: |
| 208 | raise ValueError("Unknown input style!") |
Janos Follath | a36a3d3 | 2022-11-18 17:49:13 +0000 | [diff] [blame] | 209 | if cls.arity not in cls.arities: |
| 210 | raise ValueError("Unsupported number of operands!") |
Janos Follath | 939621f | 2022-11-18 18:15:24 +0000 | [diff] [blame] | 211 | if cls.input_style == "arch_split": |
Janos Follath | c4fca5d | 2022-11-19 10:42:20 +0000 | [diff] [blame] | 212 | test_objects = (cls(a, b, bits_in_limb=bil) |
| 213 | for a, b in cls.get_value_pairs() |
Janos Follath | 939621f | 2022-11-18 18:15:24 +0000 | [diff] [blame] | 214 | for bil in cls.limb_sizes) |
Janos Follath | 98edf21 | 2022-11-19 12:48:17 +0000 | [diff] [blame] | 215 | special_cases = (cls(*args, bits_in_limb=bil) # type: ignore |
| 216 | for args in cls.input_cases |
| 217 | for bil in cls.limb_sizes) |
Janos Follath | 939621f | 2022-11-18 18:15:24 +0000 | [diff] [blame] | 218 | else: |
Janos Follath | c4fca5d | 2022-11-19 10:42:20 +0000 | [diff] [blame] | 219 | test_objects = (cls(a, b) |
| 220 | for a, b in cls.get_value_pairs()) |
Janos Follath | 98edf21 | 2022-11-19 12:48:17 +0000 | [diff] [blame] | 221 | special_cases = (cls(*args) for args in cls.input_cases) |
Janos Follath | 939621f | 2022-11-18 18:15:24 +0000 | [diff] [blame] | 222 | yield from (valid_test_object.create_test_case() |
| 223 | for valid_test_object in filter( |
| 224 | lambda test_object: test_object.is_valid, |
Janos Follath | 98edf21 | 2022-11-19 12:48:17 +0000 | [diff] [blame] | 225 | chain(test_objects, special_cases) |
| 226 | ) |
| 227 | ) |
| 228 | |
Janos Follath | 87df373 | 2022-11-09 12:31:23 +0000 | [diff] [blame] | 229 | |
Janos Follath | 3aeb60a | 2022-11-09 13:24:46 +0000 | [diff] [blame] | 230 | |
Janos Follath | 5b1dbb4 | 2022-11-17 13:32:43 +0000 | [diff] [blame] | 231 | class ModOperationCommon(OperationCommon): |
| 232 | #pylint: disable=abstract-method |
| 233 | """Target for bignum mod_raw test case generation.""" |
Janos Follath | c4fca5d | 2022-11-19 10:42:20 +0000 | [diff] [blame] | 234 | moduli = [] # type: List[str] |
Janos Follath | 5b1dbb4 | 2022-11-17 13:32:43 +0000 | [diff] [blame] | 235 | |
Janos Follath | 155ad8c | 2022-11-17 14:42:40 +0000 | [diff] [blame] | 236 | def __init__(self, val_n: str, val_a: str, val_b: str = "0", |
| 237 | bits_in_limb: int = 64) -> None: |
| 238 | super().__init__(val_a=val_a, val_b=val_b, bits_in_limb=bits_in_limb) |
Janos Follath | 5b1dbb4 | 2022-11-17 13:32:43 +0000 | [diff] [blame] | 239 | self.val_n = val_n |
Janos Follath | abfca8f | 2022-11-18 16:48:45 +0000 | [diff] [blame] | 240 | # Setting the int versions here as opposed to making them @properties |
| 241 | # provides earlier/more robust input validation. |
| 242 | self.int_n = hex_to_int(val_n) |
Janos Follath | 5b1dbb4 | 2022-11-17 13:32:43 +0000 | [diff] [blame] | 243 | |
| 244 | @property |
| 245 | def boundary(self) -> int: |
Janos Follath | a36a3d3 | 2022-11-18 17:49:13 +0000 | [diff] [blame] | 246 | return self.int_n |
Janos Follath | 5b1dbb4 | 2022-11-17 13:32:43 +0000 | [diff] [blame] | 247 | |
| 248 | @property |
Janos Follath | 4c59d35 | 2022-11-18 16:05:46 +0000 | [diff] [blame] | 249 | def arg_n(self) -> str: |
| 250 | return self.format_arg(self.val_n) |
Janos Follath | 5b1dbb4 | 2022-11-17 13:32:43 +0000 | [diff] [blame] | 251 | |
Janos Follath | a36a3d3 | 2022-11-18 17:49:13 +0000 | [diff] [blame] | 252 | def arguments(self) -> List[str]: |
| 253 | return [quote_str(self.arg_n)] + super().arguments() |
| 254 | |
Janos Follath | 5b1dbb4 | 2022-11-17 13:32:43 +0000 | [diff] [blame] | 255 | @property |
Janos Follath | 5b1dbb4 | 2022-11-17 13:32:43 +0000 | [diff] [blame] | 256 | def r(self) -> int: # pylint: disable=invalid-name |
| 257 | l = limbs_mpi(self.int_n, self.bits_in_limb) |
| 258 | return bound_mpi_limbs(l, self.bits_in_limb) |
| 259 | |
| 260 | @property |
| 261 | def r_inv(self) -> int: |
| 262 | return invmod(self.r, self.int_n) |
| 263 | |
| 264 | @property |
| 265 | def r2(self) -> int: # pylint: disable=invalid-name |
| 266 | return pow(self.r, 2) |
| 267 | |
Janos Follath | c4fca5d | 2022-11-19 10:42:20 +0000 | [diff] [blame] | 268 | @property |
| 269 | def is_valid(self) -> bool: |
| 270 | if self.int_a >= self.int_n: |
| 271 | return False |
| 272 | if self.arity == 2 and self.int_b >= self.int_n: |
| 273 | return False |
| 274 | return True |
| 275 | |
| 276 | @classmethod |
Janos Follath | 435b305 | 2022-11-19 14:18:02 +0000 | [diff] [blame^] | 277 | def input_cases_args(cls) -> Iterator[Tuple[Any, Any, Any]]: |
| 278 | if cls.arity == 1: |
| 279 | yield from ((n, a, "0") for a, n in cls.input_cases) |
| 280 | elif cls.arity == 2: |
| 281 | yield from ((n, a, b) for a, b, n in cls.input_cases) |
| 282 | else: |
| 283 | raise ValueError("Unsupported number of operands!") |
| 284 | |
| 285 | @classmethod |
Janos Follath | c4fca5d | 2022-11-19 10:42:20 +0000 | [diff] [blame] | 286 | def generate_function_tests(cls) -> Iterator[test_case.TestCase]: |
| 287 | if cls.input_style not in cls.input_styles: |
| 288 | raise ValueError("Unknown input style!") |
| 289 | if cls.arity not in cls.arities: |
| 290 | raise ValueError("Unsupported number of operands!") |
| 291 | if cls.input_style == "arch_split": |
| 292 | test_objects = (cls(n, a, b, bits_in_limb=bil) |
| 293 | for n in cls.moduli |
| 294 | for a, b in cls.get_value_pairs() |
| 295 | for bil in cls.limb_sizes) |
Janos Follath | 435b305 | 2022-11-19 14:18:02 +0000 | [diff] [blame^] | 296 | special_cases = (cls(*args, bits_in_limb=bil) |
| 297 | for args in cls.input_cases_args() |
| 298 | for bil in cls.limb_sizes) |
Janos Follath | c4fca5d | 2022-11-19 10:42:20 +0000 | [diff] [blame] | 299 | else: |
| 300 | test_objects = (cls(n, a, b) |
| 301 | for n in cls.moduli |
| 302 | for a, b in cls.get_value_pairs()) |
Janos Follath | 435b305 | 2022-11-19 14:18:02 +0000 | [diff] [blame^] | 303 | special_cases = (cls(*args) for args in cls.input_cases_args()) |
Janos Follath | c4fca5d | 2022-11-19 10:42:20 +0000 | [diff] [blame] | 304 | yield from (valid_test_object.create_test_case() |
| 305 | for valid_test_object in filter( |
| 306 | lambda test_object: test_object.is_valid, |
Janos Follath | 435b305 | 2022-11-19 14:18:02 +0000 | [diff] [blame^] | 307 | chain(test_objects, special_cases) |
Janos Follath | c4fca5d | 2022-11-19 10:42:20 +0000 | [diff] [blame] | 308 | )) |
Janos Follath | 5b1dbb4 | 2022-11-17 13:32:43 +0000 | [diff] [blame] | 309 | |
Janos Follath | f8b3b72 | 2022-11-03 14:46:18 +0000 | [diff] [blame] | 310 | # BEGIN MERGE SLOT 1 |
| 311 | |
| 312 | # END MERGE SLOT 1 |
| 313 | |
| 314 | # BEGIN MERGE SLOT 2 |
| 315 | |
| 316 | # END MERGE SLOT 2 |
| 317 | |
| 318 | # BEGIN MERGE SLOT 3 |
| 319 | |
| 320 | # END MERGE SLOT 3 |
| 321 | |
| 322 | # BEGIN MERGE SLOT 4 |
| 323 | |
| 324 | # END MERGE SLOT 4 |
| 325 | |
| 326 | # BEGIN MERGE SLOT 5 |
| 327 | |
| 328 | # END MERGE SLOT 5 |
| 329 | |
| 330 | # BEGIN MERGE SLOT 6 |
| 331 | |
| 332 | # END MERGE SLOT 6 |
| 333 | |
| 334 | # BEGIN MERGE SLOT 7 |
| 335 | |
| 336 | # END MERGE SLOT 7 |
| 337 | |
| 338 | # BEGIN MERGE SLOT 8 |
| 339 | |
| 340 | # END MERGE SLOT 8 |
| 341 | |
| 342 | # BEGIN MERGE SLOT 9 |
| 343 | |
| 344 | # END MERGE SLOT 9 |
| 345 | |
| 346 | # BEGIN MERGE SLOT 10 |
| 347 | |
| 348 | # END MERGE SLOT 10 |