code wiki / _hdl_build / nx_physlab_wasm_vet.nx
nx_physlab_wasm_vet.nx
buildroot/runtime/_hdl_build/nx_physlab_wasm_vet.nx
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
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
structs
| none |
consts
| 9 | const K_MAGIC_8256: i64 = 8256 |
| 10 | const K_MAGIC_614400: i64 = 614400 |
| 11 | const K_MAGIC_18496: i64 = 18496 |
| 12 | const K_MAGIC_721024: i64 = 721024 |
functions
| 14 | func hw(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 15 | func pn(v: i64) -> i64 |
| 28 | func main() -> i64 |