From 431b3805375735349b4a2c074ce9dab3cdb68bf0 Mon Sep 17 00:00:00 2001 From: Roland Edi Date: Thu, 26 Nov 2026 20:23:14 +0000 Subject: [PATCH 1/2] tests: model the console BVH node set Add a pure-Python model of image_bvh_intersect_ray for FP32 and binary16 box nodes and triangle nodes. The model covers descriptor and node pointer decoding, box extent clipping, stable nearest-first sorting, watertight triangle tests and the mode-1 numerator results. The model-only witness set has 315 literal cases: 231 node cases (66 FP32 box, 46 binary16 box, 119 triangle) and 84 pointer cases. They cover hits, misses, ties, shared edges, negative zero, NaN, zero directions, disabled children, f16 rounding and permutations. The HIP kernel, the code object and the existing five-ray native case are unchanged. Model-only: python -B tests/gfx1030_bvh_box/check.py --model-only Result: model_witness_cases=315 node=231 pointer=84 mismatches=0 --- docs/experiments.md | 2 + docs/experiments/bvh-node-model.md | 102 ++++ tests/gfx1030_bvh_box/bvh_model.py | 235 ++++++++ tests/gfx1030_bvh_box/check.py | 919 ++++++++++++++++++++++++++++- 4 files changed, 1256 insertions(+), 2 deletions(-) create mode 100644 docs/experiments/bvh-node-model.md create mode 100644 tests/gfx1030_bvh_box/bvh_model.py diff --git a/docs/experiments.md b/docs/experiments.md index f9fb98d4e..93e9e69a1 100644 --- a/docs/experiments.md +++ b/docs/experiments.md @@ -4671,6 +4671,8 @@ LLVM and LLD 15 build the code object and verify one instruction of each kind in its disassembly. The CPU witnesses and mutations pass independently. Native readback remains pending, including the raw miss and disabled-slot words. The probe leaves translator behavior and form coverage unchanged. +The node model and its witness set are described in +[bvh-node-model.md](experiments/bvh-node-model.md). ### gfx1013 2D explicit-LOD image gathers diff --git a/docs/experiments/bvh-node-model.md b/docs/experiments/bvh-node-model.md new file mode 100644 index 000000000..3f8b18475 --- /dev/null +++ b/docs/experiments/bvh-node-model.md @@ -0,0 +1,102 @@ +# Console BVH node model and witness set + +Refs [#1759](https://github.com/R0Y00/Xbox2Windows/issues/1759), +[#2413](https://github.com/R0Y00/Xbox2Windows/issues/2413) and +[#2603](https://github.com/R0Y00/Xbox2Windows/pull/2603). This note covers the +pure-Python node model in `tests/gfx1030_bvh_box/bvh_model.py` and the +model-only witness set in `tests/gfx1030_bvh_box/check.py --model-only`. The +HIP kernel, the gfx1030 code object and the shader translator are unchanged. + +## Node formats + +A node pointer has its kind in the low three bits. The rest addresses a +64-byte node as `(pointer >> 3) << 6`. The 32-bit form adds that offset to a +40-bit base held in descriptor DWORD 0 and the low byte of DWORD 1, in +256-byte units. The 64-bit form uses the absolute pointer. + +| Kind | Node | Bytes | Layout | +|---|---|---|---| +| 0-3 | triangle 0-3 | 64 | five vertices, three f32 each, bytes 0-59; ID DWORD at byte 60 | +| 4 | box, f16 bounds | 64 | four child pointers, then four boxes of six f16 from byte 16 | +| 5 | box, f32 bounds | 128 | four child pointers, then four boxes of six f32 from byte 16; bytes 112-127 unused | +| 6, 7 | instance, procedural | - | not read by this instruction | + +`TRIANGLE_VERTICES` is `((0, 1, 2), (1, 3, 2), (2, 3, 4), (2, 4, 0))`. +Triangle `k` uses those three node vertices. The ID byte for triangle `k` +selects the vertices weighted by I and J in bits 1:0 and 3:2; the remaining +vertex is `3 - I - J`. Bits 7:4 of the ID byte are ignored. A malformed ID +that names the fourth map nibble reads node vertex 0, as the arithmetic +lands. + +Descriptor DWORD 1 bit 31 enables nearest-first box sorting. DWORD 3 bit 24 +selects triangle return mode 1. DWORD 3 bits 31:28 hold the resource type, +`0x8`. + +## Results + +A box node returns four child pointers. A hit is included at its entry +distance; a miss or an absent child is `0xffffffff`. Sorting uses a strict +comparison, so equal entries keep their child order; misses sort last when +sorting is enabled. + +Triangle return mode 1 is `{t_num, t_denom, I_num, J_num}`, all as f32. On a +miss it is `{+inf, 1.0, 0.0, 0.0}`. The instruction does not test the ray +extent for triangles. Return mode 0 is not modeled in this slice. + +## Assumptions + +- Arithmetic is binary32 at each step, rounding to nearest even. Python + floats only carry the values; the result DWORDs are the f32 bit patterns. +- The inverse direction is an instruction input. The box test clamps it to + `+-FLT_MAX` before multiplying, so an origin exactly on a face does not + create `0 * infinity`. +- `fmin`/`fmax` return the non-NaN operand when one is NaN. A NaN minimum x + marks an absent box. Other NaN box components are outside the defined + input. +- A box is hit when `leave >= max(0, enter)` and `enter < extent`. An entry + exactly at the extent is not a hit. A box containing the origin can be hit + at a negative entry. +- The triangle test is the watertight Woop, Benthin and Wald formulation used + by RADV. A ray exactly through an edge or vertex hits both triangles that + share it. A NaN vertex, a zero determinant or a triangle behind the ray + misses. +- A zero direction gives an infinite inverse; the triangle shear then + produces NaN and the triangle misses. + +These choices follow Mesa RADV's MIT-licensed software emulation and the +RDNA 2 ISA descriptor tables. They are a CPU model, not a native measurement: +hardware rounding, which of two equally near boxes is returned first, and the +exact edge case remain assumptions. No code is copied from the GPL-3.0 +VIctory reference. + +## Witness set + +The model-only run has 315 cases: 231 node cases and 84 pointer-decoding +cases. The node cases are 66 f32 box, 46 f16 box and 119 triangle cases. The +expected four-DWORD results are literals in `check.py`; the runner does not +recompute them with the model. The existing five-ray FP32 box assertions in +`model_check()` still run before the witness set. + +Coverage includes sorted and unsorted hits, misses, ties, extent clipping, +disabled and zero child pointers, inverted and infinite bounds, negative +zero, NaN bounds and vertices, zero directions, f16 rounding, subnormals and +65504, all six triangle vertex permutations for each kind, ID high bits, +malformed IDs, shared edges and vertices, t = 0, triangles behind the ray, +and degenerate triangles. Pointer cases cover every kind, nonzero and +high bases, 48-bit wrap and the absolute 64-bit form. + +## Reproduce + +```sh +python3 -B tests/gfx1030_bvh_box/check.py --model-only +``` + +The command needs no GPU, HIP library or code object. The native five-ray +case still needs LLVM/LLD 15 and a gfx1030 HIP device: + +```sh +sh tests/gfx1030_bvh_box/build.sh +python3 -B tests/gfx1030_bvh_box/check.py --device 0 +``` + +No game files, dumps or third-party source are part of this fixture. diff --git a/tests/gfx1030_bvh_box/bvh_model.py b/tests/gfx1030_bvh_box/bvh_model.py new file mode 100644 index 000000000..da0b588e5 --- /dev/null +++ b/tests/gfx1030_bvh_box/bvh_model.py @@ -0,0 +1,235 @@ +# SPDX-License-Identifier: MIT +"""CPU model of the console BVH node test. + +This models one ``image_bvh_intersect_ray`` / ``image_bvh64_intersect_ray`` +call: a ray and a node pointer in, four result DWORDs out. Node traversal, +the stack and instance transforms belong to the calling shader and are not +part of this module. + +The node formats and the box test follow the public software emulation in +Mesa's RADV driver (MIT). The triangle test is the watertight formulation +from Woop, Benthin and Wald, JCGT 2013, as RADV uses it. The result layout +is the 40-bit ray-tracing descriptor's triangle return mode 1: +``{t_num, t_denom, I_num, J_num}``. Arithmetic is binary32 at every step, +rounding to nearest even; scalar Python floats only carry the values. +""" + +import math +import struct + + +MASK32 = (1 << 32) - 1 +MASK48 = (1 << 48) - 1 +MASK64 = (1 << 64) - 1 +INVALID = 0xffffffff + +NODE_BOX16 = 4 +NODE_BOX32 = 5 +SORT_ENABLE = 1 << 31 +RETURN_BARYCENTRICS = 1 << 24 + +TRIANGLE_VERTICES = ((0, 1, 2), (1, 3, 2), (2, 3, 4), (2, 4, 0)) +MISS = (math.inf, 1.0, 0.0, 0.0) +FLT_MAX = struct.unpack(" 0.0 else -math.inf + + +def f32_bits(value): + return struct.unpack("= b else b + + +def node_address(descriptor, pointer, wide=False): + """Return ``(kind, byte address)`` for a node pointer. + + The low three bits are the node kind. The rest addresses a 64-byte + node: ``(pointer >> 3) << 6``. The 32-bit form adds that offset to a + 40-bit base held in descriptor DWORD 0 and the low byte of DWORD 1, in + 256-byte units. The 64-bit form uses the absolute pointer. + """ + kind = pointer & 7 + if wide: + return kind, ((pointer >> 3) << 6) & MASK64 + base = (((descriptor[1] & 0xff) << 32) | (descriptor[0] & MASK32)) << 8 + return kind, (base + ((pointer >> 3) << 6)) & MASK48 + + +def descriptor(base=0, *, sort=True, return_barycentrics=True, size=0x3ffffffffff): + """Build the four descriptor DWORDs a node test reads. + + The base argument is a 256-byte aligned byte address. The DWORDs hold + it in 256-byte units, as the instruction's resource does. + """ + assert base & 0xff == 0, "the descriptor base is 256-byte aligned" + units = base >> 8 + return ( + units & MASK32, + ((units >> 32) & 0xff) | (SORT_ENABLE if sort else 0), + size & MASK32, + ((size >> 32) & 0x3fffff) + | (RETURN_BARYCENTRICS if return_barycentrics else 0) + | (8 << 28), + ) + + +def _load_box(data, offset, kind, index): + if kind == NODE_BOX32: + start = offset + 16 + 24 * index + return struct.unpack_from("<6f", data, start) + start = offset + 16 + 12 * index + return struct.unpack_from("<6e", data, start) + + +def _box_entry(lo, hi, origin, inverse, extent): + # RADV removes infinities so an origin exactly on a face does not turn + # zero times infinity into NaN. max then min is the order its NIR uses. + inv = [fmin(fmax(inverse[i], -FLT_MAX), FLT_MAX) for i in range(3)] + low = [fmul(fsub(lo[i], origin[i]), inv[i]) for i in range(3)] + high = [fmul(fsub(hi[i], origin[i]), inv[i]) for i in range(3)] + enter = fmax(fmax(fmin(low[0], high[0]), fmin(low[1], high[1])), fmin(low[2], high[2])) + leave = fmin(fmin(fmax(low[0], high[0]), fmax(low[1], high[1])), fmax(low[2], high[2])) + # min.x is the inactive-slot marker. Other NaN components are outside + # the defined input; fmin/fmax above use the non-NaN operand. + if math.isnan(lo[0]): + return None + if leave >= fmax(0.0, enter) and enter < extent: + return enter + return None + + +def _boxes(data, offset, kind, origin, inverse, extent, sort): + children = struct.unpack_from("<4I", data, offset) + indices = [INVALID] * 4 + distances = [math.inf] * 4 + for i in range(4): + if children[i] == INVALID: + continue + coords = _load_box(data, offset, kind, i) + enter = _box_entry(coords[:3], coords[3:], origin, inverse, extent) + if enter is not None: + indices[i] = children[i] + distances[i] = enter + if sort: + # RADV's five-comparator network. A strict comparison leaves equal + # entries in child order. + for a, b in ((0, 1), (2, 3), (0, 2), (1, 3), (1, 2)): + if distances[b] < distances[a]: + distances[a], distances[b] = distances[b], distances[a] + indices[a], indices[b] = indices[b], indices[a] + return indices + + +def _node_vertex(data, offset, index): + return struct.unpack_from("<3f", data, offset + 12 * index) + + +def _triangle(data, offset, kind, origin, direction, inverse): + id_dword = struct.unpack_from("> (8 * (kind & 3))) & 0xff + i = id_byte & 3 + j = (id_byte >> 2) & 3 + first = (3 - i - j) & 3 + # The fourth map nibble is zero in the node format; a malformed ID that + # names it reads the node's first vertex, as the arithmetic lands. + mapped = TRIANGLE_VERTICES[kind & 3] + (0,) + a, b, c = (_node_vertex(data, offset, mapped[n]) for n in (first, i, j)) + + size = (abs(direction[0]), abs(direction[1]), abs(direction[2])) + if size[0] >= size[1]: + kz = 0 if size[0] >= size[2] else 2 + elif size[1] >= size[2]: + kz = 1 + else: + kz = 2 + kx = (kz + 1) % 3 + ky = (kx + 1) % 3 + if direction[kz] < 0.0: + kx, ky = ky, kx + + sz = inverse[kz] + sx = fmul(direction[kx], sz) + sy = fmul(direction[ky], sz) + + def shear(vertex): + rel = [fsub(vertex[n], origin[n]) for n in range(3)] + return ( + fsub(rel[kx], fmul(sx, rel[kz])), + fsub(rel[ky], fmul(sy, rel[kz])), + fmul(sz, rel[kz]), + ) + + ax, ay, az = shear(a) + bx, by, bz = shear(b) + cx, cy, cz = shear(c) + u = fsub(fmul(cx, by), fmul(cy, bx)) + v = fsub(fmul(ax, cy), fmul(ay, cx)) + w = fsub(fmul(bx, ay), fmul(by, ax)) + + behind = u < 0.0 or v < 0.0 or w < 0.0 + before = u > 0.0 or v > 0.0 or w > 0.0 + det = fadd(u, fadd(v, w)) + t = fadd(fadd(fmul(u, az), fmul(v, bz)), fmul(w, cz)) + ahead = (det > 0.0 and t >= 0.0) or (det < 0.0 and t <= 0.0) + if (behind and before) or not ahead: + return MISS + # The instruction does not test the ray extent for triangles. + return f32(t), f32(det), f32(v), f32(w) + + +def intersect(data, descriptor_words, pointer, *, origin, direction, inverse, extent, + wide=False): + """Return the four result DWORDs for one node and one ray.""" + kind, address = node_address(descriptor_words, pointer, wide) + sort = bool(descriptor_words[1] & SORT_ENABLE) + if kind == NODE_BOX32 or kind == NODE_BOX16: + return _boxes(data, address, kind, origin, inverse, extent, sort) + if kind <= 3: + if not descriptor_words[3] & RETURN_BARYCENTRICS: + raise ValueError("triangle return mode 0 is not modeled") + # The instruction does not test the ray extent for triangles. + values = _triangle(data, address, kind, origin, direction, inverse) + return [f32_bits(value) for value in values] + # Instance and procedural nodes are not read by this instruction. + return [f32_bits(value) for value in MISS] diff --git a/tests/gfx1030_bvh_box/check.py b/tests/gfx1030_bvh_box/check.py index 3153ff5f9..66b69bca6 100644 --- a/tests/gfx1030_bvh_box/check.py +++ b/tests/gfx1030_bvh_box/check.py @@ -3,9 +3,16 @@ import argparse import ctypes as ct import hashlib +import math import os from pathlib import Path import struct +import sys +from collections import namedtuple + + +sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) +import bvh_model ROOT = Path(__file__).resolve().parents[2] @@ -17,6 +24,9 @@ TRANSFER_TO_DEVICE = 1 TRANSFER_TO_HOST = 2 MASK32 = (1 << 32) - 1 +inf = math.inf +D_SORT = bvh_model.descriptor(0, sort=True) +D_NOSORT = bvh_model.descriptor(0, sort=False) def box(child, depth, x=-8): @@ -80,6 +90,910 @@ def model_check(): print("all_miss zero-fill control word=0 expected=ffffffff actual=00000000") +Witness = namedtuple("Witness", "name image descriptor pointer ray expected wide") +PointerWitness = namedtuple("PointerWitness", "name descriptor pointer wide expected") + + +def C(name, image, descriptor, pointer, ray, expected, wide=False): + return Witness(name, image, descriptor, pointer, ray, expected, wide) + + +def P(name, descriptor, pointer, wide, expected): + return PointerWitness(name, descriptor, pointer, wide, expected) + + +def witness_check(): + failures = 0 + for case in WITNESSES: + origin, direction, inverse, extent = case.ray + actual = tuple(bvh_model.intersect(case.image, case.descriptor, case.pointer, + origin=origin, direction=direction, inverse=inverse, + extent=extent, wide=case.wide)) + difference = first_difference(case.expected, actual) + if difference: + index, wanted, got = difference + print(f"witness {case.name} word={index} expected={wanted:08x} actual={got:08x}") + failures += 1 + for case in POINTER_WITNESSES: + actual = bvh_model.node_address(case.descriptor, case.pointer, case.wide) + if actual != case.expected: + print(f"pointer witness {case.name} expected={case.expected} actual={actual}") + failures += 1 + print(f"model_witness_cases={len(WITNESSES) + len(POINTER_WITNESSES)} " + f"node={len(WITNESSES)} pointer={len(POINTER_WITNESSES)} mismatches={failures}") + return failures + + +# box32/four-sorted +NODE_0 = bytes.fromhex( + "050100000c020000040300000004000000002041000080bf000080bf00003041" + "0000803f0000803f0000a041000080bf000080bf0000a8410000803f0000803f" + "0000f041000080bf000080bf0000f8410000803f0000803f00002042000080bf" + "000080bf000024420000803f0000803f00000000000000000000000000000000" +) +# box32/tie-sorted +NODE_1 = bytes.fromhex( + "050100000c020000040300000004000000002041000080bf000080bf00003041" + "0000803f0000803f00002041000080bf000080bf000030410000803f0000803f" + "00002041000080bf000080bf000030410000803f0000803f00002041000080bf" + "000080bf000030410000803f0000803f00000000000000000000000000000000" +) +# box32/tie-two-then-far +NODE_2 = bytes.fromhex( + "050100000c020000040300000004000000002041000080bf000080bf00003041" + "0000803f0000803f00002041000080bf000080bf000030410000803f0000803f" + "0000f041000080bf000080bf0000f8410000803f0000803f00002042000080bf" + "000080bf000024420000803f0000803f00000000000000000000000000000000" +) +# box32/mixed-sorted +NODE_3 = bytes.fromhex( + "05010000ffffffff04030000ffffffff00002041000080bf000080bf00003041" + "0000803f0000803f0000a041000080bf000080bf0000a8410000803f0000803f" + "0000f041000080bf000080bf0000f8410000803f0000803f00002042000080bf" + "000080bf000024420000803f0000803f00000000000000000000000000000000" +) +# box32/zero-child-sorted +NODE_4 = bytes.fromhex( + "0000000005010000000000000403000000002041000080bf000080bf00003041" + "0000803f0000803f0000a041000080bf000080bf0000a8410000803f0000803f" + "0000f041000080bf000080bf0000f8410000803f0000803f00002042000080bf" + "000080bf000024420000803f0000803f00000000000000000000000000000000" +) +# box32/overlap-sorted +NODE_5 = bytes.fromhex( + "050100000c020000040300000004000000002041000080bf000080bf0000f041" + "0000803f0000803f0000a041000080bf000080bf0000c8410000803f0000803f" + "00002042000080bf000080bf000024420000803f0000803f0000a040000080bf" + "000080bf0000c0400000803f0000803f00000000000000000000000000000000" +) +# box32/3d-0.5-0.5 +NODE_6 = bytes.fromhex( + "050100000c020000040300000004000000002041000000000000000000003041" + "0000803f0000803f00002041000000400000000000003041000040400000803f" + "000020410000000000000040000030410000803f000040400000204100000040" + "0000004000003041000040400000404000000000000000000000000000000000" +) +# box32/behind-0-e1e+09 +NODE_7 = bytes.fromhex( + "050100000c02000004030000000400000000a0c1000080bf000080bf000020c1" + "0000803f0000803f000020c1000080bf000080bf000020410000803f0000803f" + "00000000000080bf000080bf000020410000803f0000803f00002041000080bf" + "000080bf0000a0410000803f0000803f00000000000000000000000000000000" +) +# box32/zerodir-10.5-0 +NODE_8 = bytes.fromhex( + "050100000c02000004030000000400000000204100002041000080bf00003041" + "000030410000803f0000a04100002041000080bf0000a841000030410000803f" + "0000f04100002041000080bf0000f841000030410000803f0000204200002041" + "000080bf00002442000030410000803f00000000000000000000000000000000" +) +# box32/inverted +NODE_9 = bytes.fromhex( + "050100000c020000040300000004000000003041000080bf000080bf00002041" + "0000803f0000803f00000000000080bf000080bf0000a0410000803f0000803f" + "0000f041000080bf000080bf0000c8410000803f0000803f00002042000080bf" + "000080bf000024420000803f0000803f00000000000000000000000000000000" +) +# box32/infinite-bounds +NODE_10 = bytes.fromhex( + "050100000c020000040300000004000000002041000080bf000080bf0000807f" + "0000803f0000803f000080ff000080bf000080bf0000a0410000803f0000803f" + "000080ff000080bf000080bf0000807f0000803f0000803f00002041000080bf" + "000080bf000020410000803f0000803f00000000000000000000000000000000" +) +# box32/nan-min-disabled +NODE_11 = bytes.fromhex( + "050100000c02000004030000000400000000c07f000080bf000080bf00003041" + "0000803f0000803f0000a041000080bf000080bf0000a8410000803f0000803f" + "0000f041000080bf000080bf0000f8410000803f0000803f00002042000080bf" + "000080bf000024420000803f0000803f00000000000000000000000000000000" +) +# box32/nan-max-convention +NODE_12 = bytes.fromhex( + "050100000c020000040300000004000000002041000080bf000080bf0000c07f" + "0000803f0000803f0000a041000080bf000080bf0000a8410000803f0000803f" + "0000f041000080bf000080bf0000f8410000803f0000803f00002042000080bf" + "000080bf000024420000803f0000803f00000000000000000000000000000000" +) +# box16/four-sorted +NODE_13 = bytes.fromhex( + "050100000c0200000403000000040000004900bc00bc8049003c003c004d00bc" + "00bc404d003c003c804f00bc00bcc04f003c003c005100bc00bc2051003c003c" +) +# box16/tie-sorted +NODE_14 = bytes.fromhex( + "050100000c0200000403000000040000004900bc00bc8049003c003c004900bc" + "00bc8049003c003c004900bc00bc8049003c003c004900bc00bc8049003c003c" +) +# box16/mixed-sorted +NODE_15 = bytes.fromhex( + "05010000ffffffff04030000ffffffff004900bc00bc8049003c003c004d00bc" + "00bc404d003c003c804f00bc00bcc04f003c003c005100bc00bc2051003c003c" +) +# box16/zero-child-sorted +NODE_16 = bytes.fromhex( + "00000000050100000000000004030000004900bc00bc8049003c003c004d00bc" + "00bc404d003c003c804f00bc00bcc04f003c003c005100bc00bc2051003c003c" +) +# box16/round-low-e0 +NODE_17 = bytes.fromhex( + "050100000c0200000403000000040000662e00bc00bc003c003c003c662e00bc" + "00bc003c003c003c662e00bc00bc003c003c003c662e00bc00bc003c003c003c" +) +# box16/round-high-neg +NODE_18 = bytes.fromhex( + "050100000c0200000403000000040000000000bc00bc3340003c003c000000bc" + "00bc3340003c003c000000bc00bc3340003c003c000000bc00bc3340003c003c" +) +# box16/subnormal-e1 +NODE_19 = bytes.fromhex( + "050100000c0200000403000000040000010000bc00bc0200003c003c000400bc" + "00bc0008003c003c003c00bc00bc0040003c003c000000bc00bc0038003c003c" +) +# box16/65504-e10 +NODE_20 = bytes.fromhex( + "050100000c0200000403000000040000ff7b00bc00bcff7b003c003cff7b00bc" + "00bcff7b003c003cff7b00bc00bcff7b003c003cff7b00bc00bcff7b003c003c" +) +# box16/infinite-bounds +NODE_21 = bytes.fromhex( + "050100000c0200000403000000040000004900bc00bc007c003c003c00fc00bc" + "00bc004d003c003c00fc00bc00bc007c003c003c004900bc00bc0049003c003c" +) +# box16/nan-min-disabled +NODE_22 = bytes.fromhex( + "050100000c0200000403000000040000007e00bc00bc8049003c003c004d00bc" + "00bc404d003c003c804f00bc00bcc04f003c003c005100bc00bc2051003c003c" +) +# box16/negzero-0.0 +NODE_23 = bytes.fromhex( + "050100000c0200000403000000040000008000bc00bc0000003c003c008000bc" + "00bc0000003c003c008000bc00bc0000003c003c008000bc00bc0000003c003c" +) +# box32/scramble-sorted +NODE_24 = bytes.fromhex( + "050100000c020000040300000004000000002042000080bf000080bf00002442" + "0000803f0000803f00002041000080bf000080bf000030410000803f0000803f" + "0000f041000080bf000080bf0000f8410000803f0000803f0000a041000080bf" + "000080bf0000a8410000803f0000803f00000000000000000000000000000000" +) +# box16/scramble-sorted +NODE_25 = bytes.fromhex( + "050100000c0200000403000000040000005100bc00bc2051003c003c004900bc" + "00bc8049003c003c804f00bc00bcc04f003c003c004d00bc00bc404d003c003c" +) +# box32/pairs-sorted +NODE_26 = bytes.fromhex( + "050100000c02000004030000000400000000a041000080bf000080bf0000a841" + "0000803f0000803f0000a041000080bf000080bf0000a8410000803f0000803f" + "00002041000080bf000080bf000030410000803f0000803f00002041000080bf" + "000080bf000030410000803f0000803f00000000000000000000000000000000" +) +# box16/pairs-sorted +NODE_27 = bytes.fromhex( + "050100000c0200000403000000040000004d00bc00bc404d003c003c004d00bc" + "00bc404d003c003c004900bc00bc8049003c003c004900bc00bc8049003c003c" +) +# box32/interleaved-sorted +NODE_28 = bytes.fromhex( + "050100000c020000040300000004000000002041000080bf000080bf00003041" + "0000803f0000803f0000a041000080bf000080bf0000a8410000803f0000803f" + "00002041000080bf000080bf000030410000803f0000803f0000a041000080bf" + "000080bf0000a8410000803f0000803f00000000000000000000000000000000" +) +# box16/interleaved-sorted +NODE_29 = bytes.fromhex( + "050100000c0200000403000000040000004900bc00bc8049003c003c004d00bc" + "00bc404d003c003c004900bc00bc8049003c003c004d00bc00bc404d003c003c" +) +# box16/3d-0.5-0.5 +NODE_30 = bytes.fromhex( + "050100000c02000004030000000400000049000000008049003c003c00490040" + "000080490042003c0049000000408049003c0042004900400040804900420042" +) +# box16/inverted +NODE_31 = bytes.fromhex( + "050100000c0200000403000000040000804900bc00bc0049003c003c000000bc" + "00bc004d003c003c804f00bc00bc404e003c003c005100bc00bc2051003c003c" +) +# tri/kind0-center +NODE_32 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f09090909" +) +# tri/kind0-id09 +NODE_33 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f09000000" +) +# tri/kind0-id09-hi +NODE_34 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f59000000" +) +# tri/kind0-id06 +NODE_35 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f06000000" +) +# tri/kind0-id06-hi +NODE_36 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f56000000" +) +# tri/kind0-id08 +NODE_37 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f08000000" +) +# tri/kind0-id08-hi +NODE_38 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f58000000" +) +# tri/kind0-id02 +NODE_39 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f02000000" +) +# tri/kind0-id02-hi +NODE_40 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f52000000" +) +# tri/kind0-id04 +NODE_41 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f04000000" +) +# tri/kind0-id04-hi +NODE_42 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f54000000" +) +# tri/kind0-id01 +NODE_43 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f01000000" +) +# tri/kind0-id01-hi +NODE_44 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f51000000" +) +# tri/kind1-id09 +NODE_45 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00090000" +) +# tri/kind1-id09-hi +NODE_46 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00590000" +) +# tri/kind1-id06 +NODE_47 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00060000" +) +# tri/kind1-id06-hi +NODE_48 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00560000" +) +# tri/kind1-id08 +NODE_49 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00080000" +) +# tri/kind1-id08-hi +NODE_50 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00580000" +) +# tri/kind1-id02 +NODE_51 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00020000" +) +# tri/kind1-id02-hi +NODE_52 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00520000" +) +# tri/kind1-id04 +NODE_53 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00040000" +) +# tri/kind1-id04-hi +NODE_54 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00540000" +) +# tri/kind1-id01 +NODE_55 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00010000" +) +# tri/kind1-id01-hi +NODE_56 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00510000" +) +# tri/kind2-id09 +NODE_57 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00000900" +) +# tri/kind2-id09-hi +NODE_58 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00005900" +) +# tri/kind2-id06 +NODE_59 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00000600" +) +# tri/kind2-id06-hi +NODE_60 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00005600" +) +# tri/kind2-id08 +NODE_61 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00000800" +) +# tri/kind2-id08-hi +NODE_62 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00005800" +) +# tri/kind2-id02 +NODE_63 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00000200" +) +# tri/kind2-id02-hi +NODE_64 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00005200" +) +# tri/kind2-id04 +NODE_65 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00000400" +) +# tri/kind2-id04-hi +NODE_66 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00005400" +) +# tri/kind2-id01 +NODE_67 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00000100" +) +# tri/kind2-id01-hi +NODE_68 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00005100" +) +# tri/kind3-id09 +NODE_69 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00000009" +) +# tri/kind3-id09-hi +NODE_70 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00000059" +) +# tri/kind3-id06 +NODE_71 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00000006" +) +# tri/kind3-id06-hi +NODE_72 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00000056" +) +# tri/kind3-id08 +NODE_73 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00000008" +) +# tri/kind3-id08-hi +NODE_74 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00000058" +) +# tri/kind3-id02 +NODE_75 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00000002" +) +# tri/kind3-id02-hi +NODE_76 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00000052" +) +# tri/kind3-id04 +NODE_77 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00000004" +) +# tri/kind3-id04-hi +NODE_78 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00000054" +) +# tri/kind3-id01 +NODE_79 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00000001" +) +# tri/kind3-id01-hi +NODE_80 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00000051" +) +# tri/kind0-hibits10 +NODE_81 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f19090909" +) +# tri/kind0-hibits80 +NODE_82 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f89090909" +) +# tri/kind0-hibitsf0 +NODE_83 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803ff9090909" +) +# tri/kind1-hibits10 +NODE_84 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f09190909" +) +# tri/kind1-hibits80 +NODE_85 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f09890909" +) +# tri/kind1-hibitsf0 +NODE_86 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f09f90909" +) +# tri/kind2-hibits10 +NODE_87 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f09091909" +) +# tri/kind2-hibits80 +NODE_88 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f09098909" +) +# tri/kind2-hibitsf0 +NODE_89 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f0909f909" +) +# tri/kind3-hibits10 +NODE_90 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f09090919" +) +# tri/kind3-hibits80 +NODE_91 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f09090989" +) +# tri/kind3-hibitsf0 +NODE_92 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f090909f9" +) +# tri/kind0-mal00 +NODE_93 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00000000" +) +# tri/kind0-malff +NODE_94 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803fff000000" +) +# tri/kind1-malff +NODE_95 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f00ff0000" +) +# tri/kind2-malff +NODE_96 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f0000ff00" +) +# tri/kind3-malff +NODE_97 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f000000ff" +) +# tri/kind0-nan +NODE_98 = bytes.fromhex( + "00000000000000000000803f00008040000000000000803f0000c07f00000000" + "0000803f00008040000080400000803f00000041000000000000803f09090909" +) +# tri/kind0-negzero-vertex +NODE_99 = bytes.fromhex( + "00000080000000000000803f00008040000000000000803f0000000000008040" + "0000803f00008040000080400000803f00000041000000000000803f09090909" +) +# tri/kind0-x1024 +NODE_100 = bytes.fromhex( + "0000000000000000000080440000804500000000000080440000000000008045" + "0000804400008045000080450000804400000046000000000000804409090909" +) +# tri/kind0-div1024 +NODE_101 = bytes.fromhex( + "00000000000000000000803a0000803b000000000000803a000000000000803b" + "0000803a0000803b0000803b0000803a0000003c000000000000803a09090909" +) +# tri/kind0-degenerate +NODE_102 = bytes.fromhex( + "00000000000000000000803f0000803f000000000000803f0000004000000000" + "0000803f00004040000000000000803f00008040000000000000803f09090909" +) + +WITNESSES = [ + C("box32/four-sorted", NODE_0, D_SORT, 5, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box32/reverse-sorted", NODE_0, D_SORT, 5, ((50.0, 0.0, 0.0), (-1.0, 0.0, 0.0), (-1.0, -inf, -inf), 1000000000.0,), (0x00000400, 0x00000304, 0x0000020c, 0x00000105,)), + C("box32/four-nosort", NODE_0, D_NOSORT, 5, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box32/reverse-nosort", NODE_0, D_NOSORT, 5, ((50.0, 0.0, 0.0), (-1.0, 0.0, 0.0), (-1.0, -inf, -inf), 1000000000.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box32/extent-45", NODE_0, D_SORT, 5, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 45.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box32/extent-35", NODE_0, D_SORT, 5, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 35.0,), (0x00000105, 0x0000020c, 0x00000304, 0xffffffff,)), + C("box32/extent-25", NODE_0, D_SORT, 5, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 25.0,), (0x00000105, 0x0000020c, 0xffffffff, 0xffffffff,)), + C("box32/extent-20", NODE_0, D_SORT, 5, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 20.0,), (0x00000105, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box32/extent-19.999998", NODE_0, D_SORT, 5, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 19.999998,), (0x00000105, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box32/extent-5", NODE_0, D_SORT, 5, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 5.0,), (0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box32/extent-0", NODE_0, D_SORT, 5, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 0.0,), (0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box32/extent--1", NODE_0, D_SORT, 5, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), -1.0,), (0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box32/origin-10.5-0-e1e+09", NODE_0, D_SORT, 5, ((10.5, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box32/origin-10.5-0-e0.1", NODE_0, D_SORT, 5, ((10.5, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 0.1,), (0x00000105, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box32/origin-10.5-0-e0", NODE_0, D_SORT, 5, ((10.5, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 0.0,), (0x00000105, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box32/origin-12.5-0-e1e+09", NODE_0, D_SORT, 5, ((12.5, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x0000020c, 0x00000304, 0x00000400, 0xffffffff,)), + C("box32/origin-12.5-0-e0.1", NODE_0, D_SORT, 5, ((12.5, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 0.1,), (0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box32/origin-12.5-0-e0", NODE_0, D_SORT, 5, ((12.5, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 0.0,), (0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box32/origin-35.5-0-e1e+09", NODE_0, D_SORT, 5, ((35.5, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000400, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box32/origin-35.5-0-e0.1", NODE_0, D_SORT, 5, ((35.5, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 0.1,), (0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box32/origin-35.5-0-e0", NODE_0, D_SORT, 5, ((35.5, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 0.0,), (0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box32/origin-0-1-e1e+09", NODE_0, D_SORT, 5, ((0.0, 1.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box32/origin-0-1-e0.1", NODE_0, D_SORT, 5, ((0.0, 1.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 0.1,), (0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box32/origin-0-1-e0", NODE_0, D_SORT, 5, ((0.0, 1.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 0.0,), (0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box32/origin-0--1-e1e+09", NODE_0, D_SORT, 5, ((0.0, -1.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box32/origin-0--1-e0.1", NODE_0, D_SORT, 5, ((0.0, -1.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 0.1,), (0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box32/origin-0--1-e0", NODE_0, D_SORT, 5, ((0.0, -1.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 0.0,), (0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box32/tie-sorted", NODE_1, D_SORT, 5, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box32/tie-nosort", NODE_1, D_NOSORT, 5, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box32/tie-two-then-far", NODE_2, D_SORT, 5, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box32/mixed-sorted", NODE_3, D_SORT, 5, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000105, 0x00000304, 0xffffffff, 0xffffffff,)), + C("box32/mixed-nosort", NODE_3, D_NOSORT, 5, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000105, 0xffffffff, 0x00000304, 0xffffffff,)), + C("box32/zero-child-sorted", NODE_4, D_SORT, 5, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000000, 0x00000105, 0x00000000, 0x00000304,)), + C("box32/zero-child-nosort", NODE_4, D_NOSORT, 5, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000000, 0x00000105, 0x00000000, 0x00000304,)), + C("box32/overlap-sorted", NODE_5, D_SORT, 5, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000400, 0x00000105, 0x0000020c, 0x00000304,)), + C("box32/overlap-nosort", NODE_5, D_NOSORT, 5, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box32/3d-0.5-0.5", NODE_6, D_SORT, 5, ((0.0, 0.5, 0.5), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000105, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box32/3d-2.5-2.5", NODE_6, D_SORT, 5, ((0.0, 2.5, 2.5), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000400, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box32/3d-1.5-1.5", NODE_6, D_SORT, 5, ((0.0, 1.5, 1.5), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box32/behind-0-e1e+09", NODE_7, D_SORT, 5, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x0000020c, 0x00000304, 0x00000400, 0xffffffff,)), + C("box32/behind-0-e0", NODE_7, D_SORT, 5, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 0.0,), (0x0000020c, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box32/behind-0-e5", NODE_7, D_SORT, 5, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 5.0,), (0x0000020c, 0x00000304, 0xffffffff, 0xffffffff,)), + C("box32/behind-5-e1e+09", NODE_7, D_SORT, 5, ((5.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x0000020c, 0x00000304, 0x00000400, 0xffffffff,)), + C("box32/behind-5-e0", NODE_7, D_SORT, 5, ((5.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 0.0,), (0x0000020c, 0x00000304, 0xffffffff, 0xffffffff,)), + C("box32/behind-5-e5", NODE_7, D_SORT, 5, ((5.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 5.0,), (0x0000020c, 0x00000304, 0xffffffff, 0xffffffff,)), + C("box32/behind--15-e1e+09", NODE_7, D_SORT, 5, ((-15.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box32/behind--15-e0", NODE_7, D_SORT, 5, ((-15.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 0.0,), (0x00000105, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box32/behind--15-e5", NODE_7, D_SORT, 5, ((-15.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 5.0,), (0x00000105, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box32/zerodir-10.5-0", NODE_8, D_SORT, 5, ((10.5, 0.0, 0.0), (0.0, 1.0, 0.0), (inf, 1.0, inf), 100.0,), (0x00000105, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box32/zerodir-0-10.5", NODE_8, D_SORT, 5, ((0.0, 10.5, 0.0), (0.0, 1.0, 0.0), (inf, 1.0, inf), 100.0,), (0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box32/zerodir-50-10.5", NODE_8, D_SORT, 5, ((50.0, 10.5, 0.0), (0.0, 1.0, 0.0), (inf, 1.0, inf), 100.0,), (0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box32/negzero-y", NODE_1, D_SORT, 5, ((0.0, 0.0, 0.0), (1.0, -0.0, 0.0), (1.0, -inf, inf), 100.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box32/negzero-z", NODE_1, D_SORT, 5, ((0.0, 0.0, 0.0), (1.0, 0.0, -0.0), (1.0, inf, -inf), 100.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box32/inverted", NODE_9, D_SORT, 5, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x0000020c, 0x00000105, 0x00000304, 0x00000400,)), + C("box32/infinite-bounds", NODE_10, D_SORT, 5, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x0000020c, 0x00000304, 0x00000105, 0x00000400,)), + C("box32/infinite-bounds-nosort", NODE_10, D_NOSORT, 5, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box32/nan-min-disabled", NODE_11, D_SORT, 5, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x0000020c, 0x00000304, 0x00000400, 0xffffffff,)), + C("box32/nan-max-convention", NODE_12, D_SORT, 5, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box16/four-sorted", NODE_13, D_SORT, 4, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box16/reverse-sorted", NODE_13, D_SORT, 4, ((50.0, 0.0, 0.0), (-1.0, 0.0, 0.0), (-1.0, -inf, -inf), 1000000000.0,), (0x00000400, 0x00000304, 0x0000020c, 0x00000105,)), + C("box16/four-nosort", NODE_13, D_NOSORT, 4, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box16/reverse-nosort", NODE_13, D_NOSORT, 4, ((50.0, 0.0, 0.0), (-1.0, 0.0, 0.0), (-1.0, -inf, -inf), 1000000000.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box16/extent-45", NODE_13, D_SORT, 4, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 45.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box16/extent-25", NODE_13, D_SORT, 4, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 25.0,), (0x00000105, 0x0000020c, 0xffffffff, 0xffffffff,)), + C("box16/extent-20", NODE_13, D_SORT, 4, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 20.0,), (0x00000105, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box16/extent-19.999998", NODE_13, D_SORT, 4, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 19.999998,), (0x00000105, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box16/extent-5", NODE_13, D_SORT, 4, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 5.0,), (0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box16/extent-0", NODE_13, D_SORT, 4, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 0.0,), (0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box16/tie-sorted", NODE_14, D_SORT, 4, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box16/tie-nosort", NODE_14, D_NOSORT, 4, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box16/mixed-sorted", NODE_15, D_SORT, 4, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000105, 0x00000304, 0xffffffff, 0xffffffff,)), + C("box16/mixed-nosort", NODE_15, D_NOSORT, 4, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000105, 0xffffffff, 0x00000304, 0xffffffff,)), + C("box16/zero-child-sorted", NODE_16, D_SORT, 4, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000000, 0x00000105, 0x00000000, 0x00000304,)), + C("box16/zero-child-nosort", NODE_16, D_NOSORT, 4, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000000, 0x00000105, 0x00000000, 0x00000304,)), + C("box16/round-low-e0", NODE_17, D_SORT, 4, ((0.09999000281095505, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 0.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box16/round-low-e0.001", NODE_17, D_SORT, 4, ((0.09999000281095505, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 0.001,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box16/round-low-e1", NODE_17, D_SORT, 4, ((0.09999000281095505, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box16/round-high-neg", NODE_18, D_SORT, 4, ((2.0998001098632812, 0.0, 0.0), (-1.0, 0.0, 0.0), (-1.0, -inf, -inf), 0.0,), (0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box16/round-high-pos", NODE_18, D_SORT, 4, ((2.0998001098632812, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 0.0,), (0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box16/subnormal-e1", NODE_19, D_SORT, 4, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1.0,), (0x00000400, 0x00000105, 0x0000020c, 0xffffffff,)), + C("box16/subnormal-e0.00012207", NODE_19, D_SORT, 4, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 0.0001220703125,), (0x00000400, 0x00000105, 0x0000020c, 0xffffffff,)), + C("box16/subnormal-e0", NODE_19, D_SORT, 4, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 0.0,), (0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box16/65504-e10", NODE_20, D_SORT, 4, ((65500.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 10.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box16/65504-e4", NODE_20, D_SORT, 4, ((65500.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 4.0,), (0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box16/65504-e3.9999998", NODE_20, D_SORT, 4, ((65500.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 3.9999998,), (0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box16/infinite-bounds", NODE_21, D_SORT, 4, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x0000020c, 0x00000304, 0x00000105, 0x00000400,)), + C("box16/infinite-bounds-nosort", NODE_21, D_NOSORT, 4, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box16/nan-min-disabled", NODE_22, D_SORT, 4, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x0000020c, 0x00000304, 0x00000400, 0xffffffff,)), + C("box16/negzero-0.0", NODE_23, D_SORT, 4, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 10.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box16/negzero--0.0", NODE_23, D_SORT, 4, ((-0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 10.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box16/negzero-0.5", NODE_23, D_SORT, 4, ((0.5, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 10.0,), (0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box16/negzero--1.0", NODE_23, D_SORT, 4, ((-1.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 10.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box32/scramble-sorted", NODE_24, D_SORT, 5, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x0000020c, 0x00000400, 0x00000304, 0x00000105,)), + C("box32/scramble-nosort", NODE_24, D_NOSORT, 5, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box16/scramble-sorted", NODE_25, D_SORT, 4, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x0000020c, 0x00000400, 0x00000304, 0x00000105,)), + C("box16/scramble-nosort", NODE_25, D_NOSORT, 4, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box32/pairs-sorted", NODE_26, D_SORT, 5, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000304, 0x00000400, 0x00000105, 0x0000020c,)), + C("box32/pairs-nosort", NODE_26, D_NOSORT, 5, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box16/pairs-sorted", NODE_27, D_SORT, 4, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000304, 0x00000400, 0x00000105, 0x0000020c,)), + C("box16/pairs-nosort", NODE_27, D_NOSORT, 4, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box32/interleaved-sorted", NODE_28, D_SORT, 5, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000105, 0x00000304, 0x0000020c, 0x00000400,)), + C("box32/interleaved-nosort", NODE_28, D_NOSORT, 5, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box16/interleaved-sorted", NODE_29, D_SORT, 4, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000105, 0x00000304, 0x0000020c, 0x00000400,)), + C("box16/interleaved-nosort", NODE_29, D_NOSORT, 4, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box32/all-tie-sorted", NODE_1, D_SORT, 5, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box32/all-tie-nosort", NODE_1, D_NOSORT, 5, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box16/all-tie-sorted", NODE_14, D_SORT, 4, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box16/all-tie-nosort", NODE_14, D_NOSORT, 4, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000105, 0x0000020c, 0x00000304, 0x00000400,)), + C("box16/3d-0.5-0.5", NODE_30, D_SORT, 4, ((0.0, 0.5, 0.5), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000105, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box16/3d-2.5-2.5", NODE_30, D_SORT, 4, ((0.0, 2.5, 2.5), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x00000400, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box16/3d-1.5-1.5", NODE_30, D_SORT, 4, ((0.0, 1.5, 1.5), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff,)), + C("box16/inverted", NODE_31, D_SORT, 4, ((0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, inf, inf), 1000000000.0,), (0x0000020c, 0x00000105, 0x00000304, 0x00000400,)), + C("tri/kind0-center", NODE_32, D_SORT, 0, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0xc1800000, 0xc1800000, 0xc0800000, 0xc0800000,)), + C("tri/kind1-center", NODE_32, D_SORT, 1, ((3.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0xc1800000, 0xc1800000, 0xc1000000, 0xc0800000,)), + C("tri/kind2-center", NODE_32, D_SORT, 2, ((4.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x41800000, 0x41800000, 0x41000000, 0x40800000,)), + C("tri/kind3-center", NODE_32, D_SORT, 3, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x42000000, 0x42000000, 0x40800000, 0x41a00000,)), + C("tri/kind0-edge-ac", NODE_32, D_SORT, 0, ((0.0, 2.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0xc1800000, 0xc1800000, 0x00000000, 0xc1000000,)), + C("tri/kind3-edge-ac", NODE_32, D_SORT, 3, ((0.0, 2.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x42000000, 0x42000000, 0x80000000, 0x41800000,)), + C("tri/kind0-vertex-a", NODE_32, D_SORT, 0, ((0.0, 0.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0xc1800000, 0xc1800000, 0x00000000, 0x00000000,)), + C("tri/kind3-vertex-a", NODE_32, D_SORT, 3, ((0.0, 0.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x42000000, 0x42000000, 0x00000000, 0x42000000,)), + C("tri/kind2-edge-ce", NODE_32, D_SORT, 2, ((4.0, 2.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x41800000, 0x41800000, 0x00000000, 0x41000000,)), + C("tri/kind0-outside", NODE_32, D_SORT, 0, ((5.0, 5.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x7f800000, 0x3f800000, 0x00000000, 0x00000000,)), + C("tri/kind1-outside", NODE_32, D_SORT, 1, ((0.0, 0.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x7f800000, 0x3f800000, 0x00000000, 0x00000000,)), + C("tri/kind2-outside", NODE_32, D_SORT, 2, ((0.0, 0.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x7f800000, 0x3f800000, 0x00000000, 0x00000000,)), + C("tri/kind3-outside", NODE_32, D_SORT, 3, ((4.0, 4.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x7f800000, 0x3f800000, 0x00000000, 0x00000000,)), + C("tri/kind0-id09", NODE_33, D_SORT, 0, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0xc1800000, 0xc1800000, 0xc0800000, 0xc0800000,)), + C("tri/kind0-id09-hi", NODE_34, D_SORT, 0, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0xc1800000, 0xc1800000, 0xc0800000, 0xc0800000,)), + C("tri/kind0-id06", NODE_35, D_SORT, 0, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x41800000, 0x41800000, 0x40800000, 0x40800000,)), + C("tri/kind0-id06-hi", NODE_36, D_SORT, 0, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x41800000, 0x41800000, 0x40800000, 0x40800000,)), + C("tri/kind0-id08", NODE_37, D_SORT, 0, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x41800000, 0x41800000, 0x41000000, 0x40800000,)), + C("tri/kind0-id08-hi", NODE_38, D_SORT, 0, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x41800000, 0x41800000, 0x41000000, 0x40800000,)), + C("tri/kind0-id02", NODE_39, D_SORT, 0, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0xc1800000, 0xc1800000, 0xc0800000, 0xc1000000,)), + C("tri/kind0-id02-hi", NODE_40, D_SORT, 0, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0xc1800000, 0xc1800000, 0xc0800000, 0xc1000000,)), + C("tri/kind0-id04", NODE_41, D_SORT, 0, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0xc1800000, 0xc1800000, 0xc1000000, 0xc0800000,)), + C("tri/kind0-id04-hi", NODE_42, D_SORT, 0, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0xc1800000, 0xc1800000, 0xc1000000, 0xc0800000,)), + C("tri/kind0-id01", NODE_43, D_SORT, 0, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x41800000, 0x41800000, 0x40800000, 0x41000000,)), + C("tri/kind0-id01-hi", NODE_44, D_SORT, 0, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x41800000, 0x41800000, 0x40800000, 0x41000000,)), + C("tri/kind1-id09", NODE_45, D_SORT, 1, ((3.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0xc1800000, 0xc1800000, 0xc1000000, 0xc0800000,)), + C("tri/kind1-id09-hi", NODE_46, D_SORT, 1, ((3.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0xc1800000, 0xc1800000, 0xc1000000, 0xc0800000,)), + C("tri/kind1-id06", NODE_47, D_SORT, 1, ((3.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x41800000, 0x41800000, 0x40800000, 0x41000000,)), + C("tri/kind1-id06-hi", NODE_48, D_SORT, 1, ((3.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x41800000, 0x41800000, 0x40800000, 0x41000000,)), + C("tri/kind1-id08", NODE_49, D_SORT, 1, ((3.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x41800000, 0x41800000, 0x40800000, 0x40800000,)), + C("tri/kind1-id08-hi", NODE_50, D_SORT, 1, ((3.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x41800000, 0x41800000, 0x40800000, 0x40800000,)), + C("tri/kind1-id02", NODE_51, D_SORT, 1, ((3.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0xc1800000, 0xc1800000, 0xc0800000, 0xc0800000,)), + C("tri/kind1-id02-hi", NODE_52, D_SORT, 1, ((3.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0xc1800000, 0xc1800000, 0xc0800000, 0xc0800000,)), + C("tri/kind1-id04", NODE_53, D_SORT, 1, ((3.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0xc1800000, 0xc1800000, 0xc0800000, 0xc1000000,)), + C("tri/kind1-id04-hi", NODE_54, D_SORT, 1, ((3.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0xc1800000, 0xc1800000, 0xc0800000, 0xc1000000,)), + C("tri/kind1-id01", NODE_55, D_SORT, 1, ((3.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x41800000, 0x41800000, 0x41000000, 0x40800000,)), + C("tri/kind1-id01-hi", NODE_56, D_SORT, 1, ((3.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x41800000, 0x41800000, 0x41000000, 0x40800000,)), + C("tri/kind2-id09", NODE_57, D_SORT, 2, ((4.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x41800000, 0x41800000, 0x41000000, 0x40800000,)), + C("tri/kind2-id09-hi", NODE_58, D_SORT, 2, ((4.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x41800000, 0x41800000, 0x41000000, 0x40800000,)), + C("tri/kind2-id06", NODE_59, D_SORT, 2, ((4.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0xc1800000, 0xc1800000, 0xc0800000, 0xc1000000,)), + C("tri/kind2-id06-hi", NODE_60, D_SORT, 2, ((4.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0xc1800000, 0xc1800000, 0xc0800000, 0xc1000000,)), + C("tri/kind2-id08", NODE_61, D_SORT, 2, ((4.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0xc1800000, 0xc1800000, 0xc0800000, 0xc0800000,)), + C("tri/kind2-id08-hi", NODE_62, D_SORT, 2, ((4.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0xc1800000, 0xc1800000, 0xc0800000, 0xc0800000,)), + C("tri/kind2-id02", NODE_63, D_SORT, 2, ((4.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x41800000, 0x41800000, 0x40800000, 0x40800000,)), + C("tri/kind2-id02-hi", NODE_64, D_SORT, 2, ((4.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x41800000, 0x41800000, 0x40800000, 0x40800000,)), + C("tri/kind2-id04", NODE_65, D_SORT, 2, ((4.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x41800000, 0x41800000, 0x40800000, 0x41000000,)), + C("tri/kind2-id04-hi", NODE_66, D_SORT, 2, ((4.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x41800000, 0x41800000, 0x40800000, 0x41000000,)), + C("tri/kind2-id01", NODE_67, D_SORT, 2, ((4.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0xc1800000, 0xc1800000, 0xc1000000, 0xc0800000,)), + C("tri/kind2-id01-hi", NODE_68, D_SORT, 2, ((4.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0xc1800000, 0xc1800000, 0xc1000000, 0xc0800000,)), + C("tri/kind3-id09", NODE_69, D_SORT, 3, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x42000000, 0x42000000, 0x40800000, 0x41a00000,)), + C("tri/kind3-id09-hi", NODE_70, D_SORT, 3, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x42000000, 0x42000000, 0x40800000, 0x41a00000,)), + C("tri/kind3-id06", NODE_71, D_SORT, 3, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0xc2000000, 0xc2000000, 0xc1a00000, 0xc0800000,)), + C("tri/kind3-id06-hi", NODE_72, D_SORT, 3, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0xc2000000, 0xc2000000, 0xc1a00000, 0xc0800000,)), + C("tri/kind3-id08", NODE_73, D_SORT, 3, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0xc2000000, 0xc2000000, 0xc1000000, 0xc1a00000,)), + C("tri/kind3-id08-hi", NODE_74, D_SORT, 3, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0xc2000000, 0xc2000000, 0xc1000000, 0xc1a00000,)), + C("tri/kind3-id02", NODE_75, D_SORT, 3, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x42000000, 0x42000000, 0x41a00000, 0x41000000,)), + C("tri/kind3-id02-hi", NODE_76, D_SORT, 3, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x42000000, 0x42000000, 0x41a00000, 0x41000000,)), + C("tri/kind3-id04", NODE_77, D_SORT, 3, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x42000000, 0x42000000, 0x41000000, 0x40800000,)), + C("tri/kind3-id04-hi", NODE_78, D_SORT, 3, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x42000000, 0x42000000, 0x41000000, 0x40800000,)), + C("tri/kind3-id01", NODE_79, D_SORT, 3, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0xc2000000, 0xc2000000, 0xc0800000, 0xc1000000,)), + C("tri/kind3-id01-hi", NODE_80, D_SORT, 3, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0xc2000000, 0xc2000000, 0xc0800000, 0xc1000000,)), + C("tri/kind0-hibits10", NODE_81, D_SORT, 0, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0xc1800000, 0xc1800000, 0xc0800000, 0xc0800000,)), + C("tri/kind0-hibits80", NODE_82, D_SORT, 0, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0xc1800000, 0xc1800000, 0xc0800000, 0xc0800000,)), + C("tri/kind0-hibitsf0", NODE_83, D_SORT, 0, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0xc1800000, 0xc1800000, 0xc0800000, 0xc0800000,)), + C("tri/kind1-hibits10", NODE_84, D_SORT, 1, ((3.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0xc1800000, 0xc1800000, 0xc1000000, 0xc0800000,)), + C("tri/kind1-hibits80", NODE_85, D_SORT, 1, ((3.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0xc1800000, 0xc1800000, 0xc1000000, 0xc0800000,)), + C("tri/kind1-hibitsf0", NODE_86, D_SORT, 1, ((3.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0xc1800000, 0xc1800000, 0xc1000000, 0xc0800000,)), + C("tri/kind2-hibits10", NODE_87, D_SORT, 2, ((4.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x41800000, 0x41800000, 0x41000000, 0x40800000,)), + C("tri/kind2-hibits80", NODE_88, D_SORT, 2, ((4.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x41800000, 0x41800000, 0x41000000, 0x40800000,)), + C("tri/kind2-hibitsf0", NODE_89, D_SORT, 2, ((4.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x41800000, 0x41800000, 0x41000000, 0x40800000,)), + C("tri/kind3-hibits10", NODE_90, D_SORT, 3, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x42000000, 0x42000000, 0x40800000, 0x41a00000,)), + C("tri/kind3-hibits80", NODE_91, D_SORT, 3, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x42000000, 0x42000000, 0x40800000, 0x41a00000,)), + C("tri/kind3-hibitsf0", NODE_92, D_SORT, 3, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x42000000, 0x42000000, 0x40800000, 0x41a00000,)), + C("tri/kind0-mal00", NODE_93, D_SORT, 0, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x7f800000, 0x3f800000, 0x00000000, 0x00000000,)), + C("tri/kind0-malff", NODE_94, D_SORT, 0, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x7f800000, 0x3f800000, 0x00000000, 0x00000000,)), + C("tri/kind1-mal00", NODE_93, D_SORT, 1, ((3.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x7f800000, 0x3f800000, 0x00000000, 0x00000000,)), + C("tri/kind1-malff", NODE_95, D_SORT, 1, ((3.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x7f800000, 0x3f800000, 0x00000000, 0x00000000,)), + C("tri/kind2-mal00", NODE_93, D_SORT, 2, ((4.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x7f800000, 0x3f800000, 0x00000000, 0x00000000,)), + C("tri/kind2-malff", NODE_96, D_SORT, 2, ((4.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x7f800000, 0x3f800000, 0x00000000, 0x00000000,)), + C("tri/kind3-mal00", NODE_93, D_SORT, 3, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x7f800000, 0x3f800000, 0x00000000, 0x00000000,)), + C("tri/kind3-malff", NODE_97, D_SORT, 3, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x7f800000, 0x3f800000, 0x00000000, 0x00000000,)), + C("tri/kind0-nan", NODE_98, D_SORT, 0, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x7f800000, 0x3f800000, 0x00000000, 0x00000000,)), + C("tri/kind1-nan", NODE_98, D_SORT, 1, ((3.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x7f800000, 0x3f800000, 0x00000000, 0x00000000,)), + C("tri/kind2-nan", NODE_98, D_SORT, 2, ((4.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x7f800000, 0x3f800000, 0x00000000, 0x00000000,)), + C("tri/kind3-nan", NODE_98, D_SORT, 3, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x7f800000, 0x3f800000, 0x00000000, 0x00000000,)), + C("tri/kind0-negzero-vertex", NODE_99, D_SORT, 0, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0xc1800000, 0xc1800000, 0xc0800000, 0xc0800000,)), + C("tri/kind3-negzero-vertex", NODE_99, D_SORT, 3, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x42000000, 0x42000000, 0x40800000, 0x41a00000,)), + C("tri/kind0-zerodir", NODE_32, D_SORT, 0, ((1.0, 1.0, 0.0), (0.0, 0.0, 0.0), (inf, inf, inf), 1000000000.0,), (0x7f800000, 0x3f800000, 0x00000000, 0x00000000,)), + C("tri/kind1-zerodir", NODE_32, D_SORT, 1, ((3.0, 3.0, 0.0), (0.0, 0.0, 0.0), (inf, inf, inf), 1000000000.0,), (0x7f800000, 0x3f800000, 0x00000000, 0x00000000,)), + C("tri/kind2-zerodir", NODE_32, D_SORT, 2, ((4.0, 3.0, 0.0), (0.0, 0.0, 0.0), (inf, inf, inf), 1000000000.0,), (0x7f800000, 0x3f800000, 0x00000000, 0x00000000,)), + C("tri/kind3-zerodir", NODE_32, D_SORT, 3, ((1.0, 1.0, 0.0), (0.0, 0.0, 0.0), (inf, inf, inf), 1000000000.0,), (0x7f800000, 0x3f800000, 0x00000000, 0x00000000,)), + C("tri/kind0-negzero-dir", NODE_32, D_SORT, 0, ((1.0, 1.0, 0.0), (0.0, -0.0, 1.0), (0.0, -inf, 1.0), 1000000000.0,), (0xc1800000, 0xc1800000, 0xc0800000, 0xc0800000,)), + C("tri/kind3-negzero-dir", NODE_32, D_SORT, 3, ((1.0, 1.0, 0.0), (0.0, -0.0, 1.0), (0.0, -inf, 1.0), 1000000000.0,), (0x42000000, 0x42000000, 0x40800000, 0x41a00000,)), + C("tri/kind0-behind", NODE_32, D_SORT, 0, ((1.0, 1.0, 0.0), (0.0, 0.0, -1.0), (0.0, 0.0, -1.0), 1000000000.0,), (0x7f800000, 0x3f800000, 0x00000000, 0x00000000,)), + C("tri/kind1-behind", NODE_32, D_SORT, 1, ((3.0, 3.0, 0.0), (0.0, 0.0, -1.0), (0.0, 0.0, -1.0), 1000000000.0,), (0x7f800000, 0x3f800000, 0x00000000, 0x00000000,)), + C("tri/kind2-behind", NODE_32, D_SORT, 2, ((4.0, 3.0, 0.0), (0.0, 0.0, -1.0), (0.0, 0.0, -1.0), 1000000000.0,), (0x7f800000, 0x3f800000, 0x00000000, 0x00000000,)), + C("tri/kind3-behind", NODE_32, D_SORT, 3, ((1.0, 1.0, 0.0), (0.0, 0.0, -1.0), (0.0, 0.0, -1.0), 1000000000.0,), (0x7f800000, 0x3f800000, 0x00000000, 0x00000000,)), + C("tri/kind0-t0", NODE_32, D_SORT, 0, ((1.0, 1.0, 1.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x80000000, 0xc1800000, 0xc0800000, 0xc0800000,)), + C("tri/kind1-t0", NODE_32, D_SORT, 1, ((3.0, 3.0, 1.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x80000000, 0xc1800000, 0xc1000000, 0xc0800000,)), + C("tri/kind2-t0", NODE_32, D_SORT, 2, ((4.0, 3.0, 1.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x00000000, 0x41800000, 0x41000000, 0x40800000,)), + C("tri/kind3-t0", NODE_32, D_SORT, 3, ((1.0, 1.0, 1.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x00000000, 0x42000000, 0x40800000, 0x41a00000,)), + C("tri/kind0-extent0", NODE_32, D_SORT, 0, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 0.0,), (0xc1800000, 0xc1800000, 0xc0800000, 0xc0800000,)), + C("tri/kind1-extent0", NODE_32, D_SORT, 1, ((3.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 0.0,), (0xc1800000, 0xc1800000, 0xc1000000, 0xc0800000,)), + C("tri/kind2-extent0", NODE_32, D_SORT, 2, ((4.0, 3.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 0.0,), (0x41800000, 0x41800000, 0x41000000, 0x40800000,)), + C("tri/kind3-extent0", NODE_32, D_SORT, 3, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 0.0,), (0x42000000, 0x42000000, 0x40800000, 0x41a00000,)), + C("tri/kind0-x1024", NODE_100, D_SORT, 0, ((1024.0, 1024.0, 0.0), (0.0, 0.0, 1024.0), (0.0, 0.0, 0.0009765625), 1000000000.0,), (0xcb800000, 0xcb800000, 0xca800000, 0xca800000,)), + C("tri/kind1-x1024", NODE_100, D_SORT, 1, ((3072.0, 3072.0, 0.0), (0.0, 0.0, 1024.0), (0.0, 0.0, 0.0009765625), 1000000000.0,), (0xcb800000, 0xcb800000, 0xcb000000, 0xca800000,)), + C("tri/kind2-x1024", NODE_100, D_SORT, 2, ((4096.0, 3072.0, 0.0), (0.0, 0.0, 1024.0), (0.0, 0.0, 0.0009765625), 1000000000.0,), (0x4b800000, 0x4b800000, 0x4b000000, 0x4a800000,)), + C("tri/kind3-x1024", NODE_100, D_SORT, 3, ((1024.0, 1024.0, 0.0), (0.0, 0.0, 1024.0), (0.0, 0.0, 0.0009765625), 1000000000.0,), (0x4c000000, 0x4c000000, 0x4a800000, 0x4ba00000,)), + C("tri/kind0-div1024", NODE_101, D_SORT, 0, ((0.0009765625, 0.0009765625, 0.0), (0.0, 0.0, 0.0009765625), (0.0, 0.0, 1024.0), 1000000000.0,), (0xb7800000, 0xb7800000, 0xb6800000, 0xb6800000,)), + C("tri/kind1-div1024", NODE_101, D_SORT, 1, ((0.0029296875, 0.0029296875, 0.0), (0.0, 0.0, 0.0009765625), (0.0, 0.0, 1024.0), 1000000000.0,), (0xb7800000, 0xb7800000, 0xb7000000, 0xb6800000,)), + C("tri/kind2-div1024", NODE_101, D_SORT, 2, ((0.00390625, 0.0029296875, 0.0), (0.0, 0.0, 0.0009765625), (0.0, 0.0, 1024.0), 1000000000.0,), (0x37800000, 0x37800000, 0x37000000, 0x36800000,)), + C("tri/kind3-div1024", NODE_101, D_SORT, 3, ((0.0009765625, 0.0009765625, 0.0), (0.0, 0.0, 0.0009765625), (0.0, 0.0, 1024.0), 1000000000.0,), (0x38000000, 0x38000000, 0x36800000, 0x37a00000,)), + C("tri/kind0-degenerate", NODE_102, D_SORT, 0, ((0.5, 0.5, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x7f800000, 0x3f800000, 0x00000000, 0x00000000,)), + C("tri/kind1-degenerate", NODE_102, D_SORT, 1, ((0.5, 0.5, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x7f800000, 0x3f800000, 0x00000000, 0x00000000,)), + C("tri/kind2-degenerate", NODE_102, D_SORT, 2, ((0.5, 0.5, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x7f800000, 0x3f800000, 0x00000000, 0x00000000,)), + C("tri/kind3-degenerate", NODE_102, D_SORT, 3, ((0.5, 0.5, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x7f800000, 0x3f800000, 0x00000000, 0x00000000,)), + C("tri/kind6-notriangle", NODE_32, D_SORT, 6, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x7f800000, 0x3f800000, 0x00000000, 0x00000000,)), + C("tri/kind7-notriangle", NODE_32, D_SORT, 7, ((1.0, 1.0, 0.0), (0.0, 0.0, 1.0), (0.0, 0.0, 1.0), 1000000000.0,), (0x7f800000, 0x3f800000, 0x00000000, 0x00000000,)), +] + +POINTER_WITNESSES = [ + P("ptr/base0-0-k0", bvh_model.descriptor(0x0), 0x0, False, (0, 0x0)), + P("ptr/base0-0-k1", bvh_model.descriptor(0x0), 0x1, False, (1, 0x0)), + P("ptr/base0-0-k2", bvh_model.descriptor(0x0), 0x2, False, (2, 0x0)), + P("ptr/base0-0-k3", bvh_model.descriptor(0x0), 0x3, False, (3, 0x0)), + P("ptr/base0-0-k4", bvh_model.descriptor(0x0), 0x4, False, (4, 0x0)), + P("ptr/base0-0-k5", bvh_model.descriptor(0x0), 0x5, False, (5, 0x0)), + P("ptr/base0-0-k6", bvh_model.descriptor(0x0), 0x6, False, (6, 0x0)), + P("ptr/base0-0-k7", bvh_model.descriptor(0x0), 0x7, False, (7, 0x0)), + P("ptr/base0-64-k0", bvh_model.descriptor(0x0), 0x8, False, (0, 0x40)), + P("ptr/base0-64-k1", bvh_model.descriptor(0x0), 0x9, False, (1, 0x40)), + P("ptr/base0-64-k2", bvh_model.descriptor(0x0), 0xa, False, (2, 0x40)), + P("ptr/base0-64-k3", bvh_model.descriptor(0x0), 0xb, False, (3, 0x40)), + P("ptr/base0-64-k4", bvh_model.descriptor(0x0), 0xc, False, (4, 0x40)), + P("ptr/base0-64-k5", bvh_model.descriptor(0x0), 0xd, False, (5, 0x40)), + P("ptr/base0-64-k6", bvh_model.descriptor(0x0), 0xe, False, (6, 0x40)), + P("ptr/base0-64-k7", bvh_model.descriptor(0x0), 0xf, False, (7, 0x40)), + P("ptr/base0-128-k0", bvh_model.descriptor(0x0), 0x10, False, (0, 0x80)), + P("ptr/base0-128-k1", bvh_model.descriptor(0x0), 0x11, False, (1, 0x80)), + P("ptr/base0-128-k2", bvh_model.descriptor(0x0), 0x12, False, (2, 0x80)), + P("ptr/base0-128-k3", bvh_model.descriptor(0x0), 0x13, False, (3, 0x80)), + P("ptr/base0-128-k4", bvh_model.descriptor(0x0), 0x14, False, (4, 0x80)), + P("ptr/base0-128-k5", bvh_model.descriptor(0x0), 0x15, False, (5, 0x80)), + P("ptr/base0-128-k6", bvh_model.descriptor(0x0), 0x16, False, (6, 0x80)), + P("ptr/base0-128-k7", bvh_model.descriptor(0x0), 0x17, False, (7, 0x80)), + P("ptr/base0-192-k0", bvh_model.descriptor(0x0), 0x18, False, (0, 0xc0)), + P("ptr/base0-192-k1", bvh_model.descriptor(0x0), 0x19, False, (1, 0xc0)), + P("ptr/base0-192-k2", bvh_model.descriptor(0x0), 0x1a, False, (2, 0xc0)), + P("ptr/base0-192-k3", bvh_model.descriptor(0x0), 0x1b, False, (3, 0xc0)), + P("ptr/base0-192-k4", bvh_model.descriptor(0x0), 0x1c, False, (4, 0xc0)), + P("ptr/base0-192-k5", bvh_model.descriptor(0x0), 0x1d, False, (5, 0xc0)), + P("ptr/base0-192-k6", bvh_model.descriptor(0x0), 0x1e, False, (6, 0xc0)), + P("ptr/base0-192-k7", bvh_model.descriptor(0x0), 0x1f, False, (7, 0xc0)), + P("ptr/base0-256-k0", bvh_model.descriptor(0x0), 0x20, False, (0, 0x100)), + P("ptr/base0-256-k1", bvh_model.descriptor(0x0), 0x21, False, (1, 0x100)), + P("ptr/base0-256-k2", bvh_model.descriptor(0x0), 0x22, False, (2, 0x100)), + P("ptr/base0-256-k3", bvh_model.descriptor(0x0), 0x23, False, (3, 0x100)), + P("ptr/base0-256-k4", bvh_model.descriptor(0x0), 0x24, False, (4, 0x100)), + P("ptr/base0-256-k5", bvh_model.descriptor(0x0), 0x25, False, (5, 0x100)), + P("ptr/base0-256-k6", bvh_model.descriptor(0x0), 0x26, False, (6, 0x100)), + P("ptr/base0-256-k7", bvh_model.descriptor(0x0), 0x27, False, (7, 0x100)), + P("ptr/base0-448-k0", bvh_model.descriptor(0x0), 0x38, False, (0, 0x1c0)), + P("ptr/base0-448-k1", bvh_model.descriptor(0x0), 0x39, False, (1, 0x1c0)), + P("ptr/base0-448-k2", bvh_model.descriptor(0x0), 0x3a, False, (2, 0x1c0)), + P("ptr/base0-448-k3", bvh_model.descriptor(0x0), 0x3b, False, (3, 0x1c0)), + P("ptr/base0-448-k4", bvh_model.descriptor(0x0), 0x3c, False, (4, 0x1c0)), + P("ptr/base0-448-k5", bvh_model.descriptor(0x0), 0x3d, False, (5, 0x1c0)), + P("ptr/base0-448-k6", bvh_model.descriptor(0x0), 0x3e, False, (6, 0x1c0)), + P("ptr/base0-448-k7", bvh_model.descriptor(0x0), 0x3f, False, (7, 0x1c0)), + P("ptr/base40-0-k0", bvh_model.descriptor(0x4000), 0x0, False, (0, 0x4000)), + P("ptr/base40-0-k5", bvh_model.descriptor(0x4000), 0x5, False, (5, 0x4000)), + P("ptr/base40-0-k7", bvh_model.descriptor(0x4000), 0x7, False, (7, 0x4000)), + P("ptr/base40-64-k0", bvh_model.descriptor(0x4000), 0x8, False, (0, 0x4040)), + P("ptr/base40-64-k5", bvh_model.descriptor(0x4000), 0xd, False, (5, 0x4040)), + P("ptr/base40-64-k7", bvh_model.descriptor(0x4000), 0xf, False, (7, 0x4040)), + P("ptr/base40-256-k0", bvh_model.descriptor(0x4000), 0x20, False, (0, 0x4100)), + P("ptr/base40-256-k5", bvh_model.descriptor(0x4000), 0x25, False, (5, 0x4100)), + P("ptr/base40-256-k7", bvh_model.descriptor(0x4000), 0x27, False, (7, 0x4100)), + P("ptr/highbase-0-k0", bvh_model.descriptor(0x1234567800), 0x0, False, (0, 0x1234567800)), + P("ptr/highbase-0-k4", bvh_model.descriptor(0x1234567800), 0x4, False, (4, 0x1234567800)), + P("ptr/highbase-0-k5", bvh_model.descriptor(0x1234567800), 0x5, False, (5, 0x1234567800)), + P("ptr/highbase-64-k0", bvh_model.descriptor(0x1234567800), 0x8, False, (0, 0x1234567840)), + P("ptr/highbase-64-k4", bvh_model.descriptor(0x1234567800), 0xc, False, (4, 0x1234567840)), + P("ptr/highbase-64-k5", bvh_model.descriptor(0x1234567800), 0xd, False, (5, 0x1234567840)), + P("ptr/highbase-4096-k0", bvh_model.descriptor(0x1234567800), 0x200, False, (0, 0x1234568800)), + P("ptr/highbase-4096-k4", bvh_model.descriptor(0x1234567800), 0x204, False, (4, 0x1234568800)), + P("ptr/highbase-4096-k5", bvh_model.descriptor(0x1234567800), 0x205, False, (5, 0x1234568800)), + P("ptr/wrap-100", bvh_model.descriptor(0xffffffffff00), 0x25, False, (5, 0x0)), + P("ptr/wrap-80", bvh_model.descriptor(0xffffffffff00), 0x14, False, (4, 0xffffffffff80)), + P("ptr/wide-0-k0", bvh_model.descriptor(0x0), 0x0, True, (0, 0x0)), + P("ptr/wide-0-k5", bvh_model.descriptor(0x0), 0x5, True, (5, 0x0)), + P("ptr/wide-0-k7", bvh_model.descriptor(0x0), 0x7, True, (7, 0x0)), + P("ptr/wide-40-k0", bvh_model.descriptor(0x0), 0x8, True, (0, 0x40)), + P("ptr/wide-40-k5", bvh_model.descriptor(0x0), 0xd, True, (5, 0x40)), + P("ptr/wide-40-k7", bvh_model.descriptor(0x0), 0xf, True, (7, 0x40)), + P("ptr/wide-1000-k0", bvh_model.descriptor(0x0), 0x200, True, (0, 0x1000)), + P("ptr/wide-1000-k5", bvh_model.descriptor(0x0), 0x205, True, (5, 0x1000)), + P("ptr/wide-1000-k7", bvh_model.descriptor(0x0), 0x207, True, (7, 0x1000)), + P("ptr/wide-1234567800-k0", bvh_model.descriptor(0x0), 0x2468acf00, True, (0, 0x1234567800)), + P("ptr/wide-1234567800-k5", bvh_model.descriptor(0x0), 0x2468acf05, True, (5, 0x1234567800)), + P("ptr/wide-1234567800-k7", bvh_model.descriptor(0x0), 0x2468acf07, True, (7, 0x1234567800)), + P("ptr/wide-ffffffffffffffc0-k0", bvh_model.descriptor(0x0), 0x1ffffffffffffff8, True, (0, 0xffffffffffffffc0)), + P("ptr/wide-ffffffffffffffc0-k5", bvh_model.descriptor(0x0), 0x1ffffffffffffffd, True, (5, 0xffffffffffffffc0)), + P("ptr/wide-ffffffffffffffc0-k7", bvh_model.descriptor(0x0), 0x1fffffffffffffff, True, (7, 0xffffffffffffffc0)), + P("ptr/wide-ignores-base", bvh_model.descriptor(0x1234567800), 0x205, True, (5, 0x1000)), +] + + def descriptor_for(base, wide): # Absolute typed pointers use base zero and the full 42-bit node-count field. # Relative pointers are constructed only for the two nodes in this allocation. @@ -193,13 +1107,14 @@ def main(): parser.add_argument("--model-only", action="store_true") args = parser.parse_args() model_check() + failures = witness_check() if args.model_only: - return 0 + return int(failures != 0) if any(key.startswith("HSA_OVERRIDE_GFX_VERSION") for key in os.environ): parser.error("Unset HSA_OVERRIDE_GFX_VERSION before measuring native behavior") if not OBJECT.is_file(): parser.error("Build the gfx1030 code object with sh tests/gfx1030_bvh_box/build.sh") - return run(args.library, args.device) + return int(run(args.library, args.device) + failures != 0) if __name__ == "__main__": From c59a56f2453ce73196c3a80a54a7f38e9770ded0 Mon Sep 17 00:00:00 2001 From: Roland Edi Date: Thu, 26 Nov 2026 21:05:08 +0000 Subject: [PATCH 2/2] tests: run the BVH node model in the Linux check list --- tests/checks/python-linux/bvh_node_model.txt | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 tests/checks/python-linux/bvh_node_model.txt diff --git a/tests/checks/python-linux/bvh_node_model.txt b/tests/checks/python-linux/bvh_node_model.txt new file mode 100644 index 000000000..4eff1e650 --- /dev/null +++ b/tests/checks/python-linux/bvh_node_model.txt @@ -0,0 +1,2 @@ +# Pure-Python witness set for the console BVH node formats (no GPU, no LLVM). +tests/gfx1030_bvh_box/check.py --model-only