code wiki / _hdl_build / nx_physlab_wasm_vet.nx

nx_physlab_wasm_vet.nx

buildroot/runtime/_hdl_build/nx_physlab_wasm_vet.nx

4361 B95 linesdepth 4pulls 7 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_physlab_wasm_vet.nx -- VET THE SHIPPED PHYSLAB BYTES: executes web_assets/nx_physlab.wasm on the sovereign nx_wasm_vm against the native twin, step for step. PhysLab is ALL-INTEGER (no f32 anywhere), so the ENTIRE surface vets byte-for-byte: 300 scripted ticks (mouse sweep + clicks + a reset) -> the physics world, the jiggle world, AND a full rendered frame must be IDENTICAL vm vs native. A divergence here is the exact thing that ships as a broken page. license_tier: ORIGINAL expect_exit: 0

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_wasm_physlab.nx nx_wasm_vm.nx nx_physlab_wasm_vet.nx

imports: nx_syscalls.nxnx_wasm_physlab.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 hw sys_write wm_new sys_mmap ↻ wm_parse sys_mmap ↻ wv_u8 wv_uleb pn sys_mmap ↻ sys_write ↻ wm_find_export wm_name_eq mem_bytes start_at world_init ph_init ph_hdr ph_acc ph_warm ph_tgt sj_init sj_hdr ph_add ph_hdr ↻ ph_body sj_add_capsule sj_hdr ↻ sj_capsule sj_add sj_hdr ↻ sj_node

structs

none

consts

9const K_MAGIC_8256: i64 = 8256
10const K_MAGIC_614400: i64 = 614400
11const K_MAGIC_18496: i64 = 18496
12const K_MAGIC_721024: i64 = 721024

functions

14func hw(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 pn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
28func main() -> i64