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 10 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 sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close vw sys_write wm_new sys_mmap ↻ wm_parse sys_mmap ↻ wv_u8 wv_uleb vn sys_mmap ↻ sys_write ↻ wm_find_export wm_name_eq mem_bytes start_at world_init e_ptr ex3_init exl_n exl_kind exl_hx exl_hy exl_hz ex3_part_begin ex3_isqrt exl_dx exl_dy exl_dz exl_depth exm_load exm_k1 exm_k1_v0

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