code wiki / _hdl_build / nx_mineworld_wasm_vet.nx

nx_mineworld_wasm_vet.nx

buildroot/runtime/_hdl_build/nx_mineworld_wasm_vet.nx

16222 B284 linesdepth 3pulls 6 transitivereach 0 importersview sourcekind tooltopic mineworld
docsdependenciesstructsconstsfunctions

about

nx_mineworld_wasm_vet.nx -- VET THE SHIPPED WASM BYTES (operator law: evidence before "it works"). Native gates prove the x86 build; the browser runs the WAT-backend build -- a DIFFERENT compiler path. This organ executes web_assets/nx_mineworld.wasm on the SOVEREIGN wasm VM (nx_wasm_vm) and compares, step for step, against the native twin: the whole integer game path (start/tick camera state, terrain_at at negative coords, aim-dig edits, net_push frame bytes). render() is f32 (outside the integer VM's opcode set -- noted, not hidden). A trap or divergence here = the exact thing that ships as a silent light-blue box in the browser. license_tier: ORIGINAL expect_exit: 0

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_f32_hw.nx nx_wasm_mineworld.nx nx_wasm_vm.nx nx_mineworld_wasm_vet.nx

imports: nx_syscalls.nxnx_f32_hw.nxnx_wasm_mineworld.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 cam_ptr surface_y kind_c mw_eget mw_key mw_ehash col_pack terrain_h0 mw_o2 biome_of mw_o2 ↻ has_tree cave3 mw_h3 mw_h3 ↻ wm_run wm_find_export ↻

structs

none

consts

12const K_MAGIC_9000: i64 = 9000
13const K_MAGIC_999999: i64 = 999999
14const K_MAGIC_895752: i64 = 895752
15const K_MAGIC_891160: i64 = 891160
16const K_MAGIC_891624: i64 = 891624
17const K_MAGIC_547560: i64 = 547560
18const K_MAGIC_786432: i64 = 786432
19const K_MAGIC_787136: i64 = 787136
20const K_MAGIC_393216: i64 = 393216
21const K_MAGIC_1073741824: i64 = 1073741824
22const K_MAGIC_896872: i64 = 896872
23const K_MAGIC_20000: i64 = 20000

functions

25func 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
26func pn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
39func main() -> i64