nx_u256_mul4_fuzz.nx
buildroot/runtime/nx_u256_mul4_fuzz.nx
about
nx_u256_mul4_fuzz.nx -- differential fuzz: the G2 4x64 multiply
(u256_mul_wide_4x64, using __umulhi64) MUST be byte-exact vs the proven 8x32
schoolbook oracle (u256_mul_wide) for every input. Catches any software-carry
bug in the 128-bit accumulation. exit 0 = all matched; nonzero encodes where.
Must be compiled by a G2-capable compiler (knows __umulhi64). license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_u256.nxnx_u256_mul.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 10 | const K_MAGIC_4000: i64 = 4000 |
| 11 | const K_MAGIC_6364136223846793005: i64 = 6364136223846793005 |
| 12 | const K_MAGIC_1442695040888963407: i64 = 1442695040888963407 |
| 13 | const K_MAGIC_1000000: i64 = 1000000 |
functions
| 15 | func main() -> i64 |