code wiki / _hdl_build / nx_explodelab_wasm_vet.nx

nx_explodelab_wasm_vet.nx

buildroot/runtime/_hdl_build/nx_explodelab_wasm_vet.nx

4755 B98 linesdepth 5pulls 12 transitivereach 0 importersview sourcekind tooltopic explodelab
docsdependenciesstructsconstsfunctions

about

nx_explodelab_wasm_vet.nx -- VET THE SHIPPED EXPLODELAB BYTES: executes web_assets/nx_explodelab.wasm on the sovereign nx_wasm_vm against the native twin, step for step. The surface is ALL-INTEGER (explode pose + z-buffer raster), so it vets byte-for-byte: 240 scripted ticks (orbit drags + highlight clicks + E/D explode holds + a mid-script RESET) -> the interaction STATE, the part KINEMATICS block, and a full rendered FRAME must be IDENTICAL vm vs native. A divergence here is exactly what would ship as a broken page. license_tier: ORIGINAL expect_exit: 0

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_wasm_explodelab.nx nx_wasm_vm.nx nx_explodelab_wasm_vet.nx

imports: nx_syscalls.nxnx_wasm_explodelab.nxnx_wasm_vm.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close vw sys_write ↻ vn sys_mmap ↻ sys_write ↻

structs

none

consts

10const K_MAGIC_1824400: i64 = 1824400
11const K_MAGIC_4608: i64 = 4608
12const K_MAGIC_1687552: i64 = 1687552

functions

14func vw(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main calls 1: sys_write
15func vn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
28func main() -> i64