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 9 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 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 hw sys_write ↻ pn sys_mmap ↻ sys_write ↻

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