Wave 4 on arkkdmtest.dll: a bounded leaf-first shard of 14 pure internal leaves
(zero callees, zero globals) reconstructed as MinGW C++ and verified against the
shipping binary via the T1 faithful differential, with per-function injected-bug
non-vacuity and the globals-first gate.
Functions (orig -> verified), fp_model=none, portability=port:
0x10003c10 WordNotEqualB __thiscall ret 4 *self != *other (AL)
0x10003c30 SetHeadPointerC __thiscall ret 8 *self = value (2nd arg ignored)
0x10003e90 StorePair __thiscall ret 8 self[0]=*a, self[1]=*b
0x10003cf0 ReturnArg3cf0 __cdecl return first arg
0x10003d00 ReturnArg3d00 __cdecl return first arg
0x10003d10 ReturnArg3d10 __cdecl return first arg
0x10003d20 ReturnArg3d20 __cdecl return first arg
0x10003e70 ReturnArg3e70 __cdecl return first arg
0x10003e80 ReturnArg3e80 __cdecl return first arg
0x10003eb0 ReturnArg3eb0 __cdecl return first arg
0x10003ed0 ReturnArg3ed0 __cdecl return first arg
0x10003ef0 ReturnArg3ef0 __cdecl return first arg
0x10003f00 ReturnArg3f00 __cdecl return first arg
0x10003f10 ReturnArg3f10 __cdecl return first arg
Conventions and operand sizes read from the Ghidra disasm. The four red-black
tree node-traversal leaves in this range (0x3c50/0x3c70/0x3ca0/0x3e10) stay orig:
proving them needs a multi-node same-image pointer fixture, deferred.
Proof: ALL DIFFERENTIALS PASS (233 cases across 65 functions), NON-VACUITY PASS
(per-function injected bug for all 65), GLOBALS-FIRST PASS.
validate_rvadb.py: RVADB_VALID functions=2163. Coverage 65/2163.
Recovered the wave-3 worker's uncommitted WIP (dead on a 429): FindNamedValue
(0x3700, orig->verified) plus globals-first hardening of the wave-3 leaves
(ClearDwords/FieldAt* unsigned address arithmetic, owned-state capture gate,
extra boundary cases). T1 differential prove_arkkdmtest.py: 201 cases across 51
functions original==reconstructed, per-function injected-bug non-vacuity, and
globals-first PASS for the 19 wave-3 functions.
Wave 1 on arkkdmtest.dll: reconstruct the first shard of T1-differentiable
internal call-graph leaves (zero callees, zero globals) as MinGW C++ and verify
each against the shipping binary.
Functions (orig -> verified), fp_model=none:
0x100011a0 StringLength __cdecl
0x100011e0 CopyByte __cdecl
0x10001220 ElementPointerAt __thiscall
0x100012e0 RangeContains __thiscall
0x10001360 SetHeadPointer __thiscall
0x10001370 AdvanceHeadPointer __thiscall
0x10001500 FillDwords __cdecl
0x10001590 GrowthCapacity __thiscall
0x100015c0 SetHeadPointerB __thiscall
0x100015d0 AdvanceHeadPointerB __thiscall
0x100016f0 DwordEquals __thiscall
0x100017a0 ZeroFillDwords __cdecl
Verification: tools/unicorn_diff/recon_ark_harness.cpp (12 modes) +
re/arkkdmtest/prove_arkkdmtest.py run the Unicorn-vs-wine faithful differential:
ALL DIFFERENTIALS PASS (39 cases) plus per-function injected-bug non-vacuity.
validate_rvadb.py: RVADB_VALID functions=2163. Coverage 12/2163.
The sharder's literal first shard is external PE import thunks (jmp [IAT] into
absent DLLs), which T1 cannot execute and T2 would prove vacuously; those and
the function-pointer/__fastcall leaves stay orig for a later wave.
Introduce the core/platform/host header seam under include/gk/ (portable value
types in core/, Kinect/PE mirror layouts in platform/, the camera-elevation
service interface in host/); the existing include/gk/structs/* paths become
compatibility forwards so no definition is duplicated. Add include/gk/fp.h with
gk::fp::round32 (binary32 rounding barrier) and gk::fp::ExtendedAcc (long double
faithful / double portable), and a GK_FIDELITY=faithful|portable CMake knob
paired with -mfpmath; faithful stays the drop-in differential target. i386-gate
GK_CDECL/STDCALL/THISCALL so non-i386 GNU builds get empty macros (native
-Werror). Migrate the three proven slice functions onto the seam without
behaviour change: box_distance expresses FP through gk/fp.h while keeping the
volatile spill the differential pins; the bodies stay in src/game/*.cpp where
prove_t11.py compiles and greps them. Add tools/seam_symbol_check.py (G5) and
re/game/seam_symbols.json asserting each flagged seam RVA ships as a
non-inlined, addressable symbol.
Verified: prove_t11.py exit 0 / ALL DIFFERENTIALS PASS (faithful, exact-FP from
df1620e); native GK_FIDELITY=portable validity compile under -Werror; macro
cross-check; G5 tool reports all three seam symbols addressable.