code wiki / _hdl_build / nx_mineworld_autotest.nx

nx_mineworld_autotest.nx

buildroot/runtime/_hdl_build/nx_mineworld_autotest.nx

8717 B147 linesdepth 3pulls 6 transitivereach 0 importersview sourcekind tooltopic mineworld
docsdependenciesstructsconstsfunctions

about

nx_mineworld_autotest.nx -- THE RACING-CREW EYES (operator 2026-07-03: "i dont believe your optimism till i see it ... use OCR and automatic testing ... auto find bugs ... that was the point of the racing team"). This organ TESTS THE SHIPPED GAME BYTES BY LOOKING AT THEM: executes web_assets/nx_mineworld.wasm on the sovereign nx_wasm_vm, drives a SEEDED input fuzzer (any failure prints tick+seed = a REPRO, not a vibe), and every K ticks renders a REAL frame and runs VISION FORENSICS on the framebuffer: blackout (mostly-black frame) / whiteout / FROZEN frame (render stopped responding to movement) / NO-STRUCTURE (sky vs ground bands identical = garbage) / MAGENTA leak (our loud undefined-block marker visible = a data-pack regression) / drawn-px sanity (renderer stat) plus STATE INVARIANTS every tick (camera y bounds, pitch clamp). HONEST SCOPE: structural vision now; OCR glyph-reading of the HUD lands when the scan ladder reaches R4 classify (nx_img_* is at R2 Otsu). This is the per-surface template: the same harness shape applies to every effort (browser/reader/sites). 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_autotest.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 wm_run wm_find_export wm_name_eq sys_mmap ↻ wm_call sys_mmap ↻ wv_u8 ↻ wm_memo_get wm_match_end sys_mmap ↻ sys_write ↻ sys_exit wv_u8 ↻ wm_skip_imm wv_u8 ↻ wv_uleb ↻ wv_sleb sys_munmap wm_memo_put wm_match_else sys_mmap ↻ sys_write ↻ sys_exit ↻ wv_u8 ↻

structs

none

consts

17const K_MAGIC_90210: i64 = 90210
18const K_MAGIC_6364136223846793005: i64 = 6364136223846793005
19const K_MAGIC_1442695040888963407: i64 = 1442695040888963407
20const K_MAGIC_895752: i64 = 895752
21const K_MAGIC_2048: i64 = 2048
22const K_MAGIC_24000: i64 = 24000
23const K_MAGIC_7000: i64 = 7000
24const K_MAGIC_896872: i64 = 896872
25const K_MAGIC_3000: i64 = 3000

functions

27func 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 2: abugmain calls 1: sys_write
28func pn(v: i64) -> i64
called by 2: abugmain calls 2: sys_mmapsys_write
40func abug(name: *u8, tick: i64, seed: i64, val: i64) -> i64
called by 1: main calls 2: hwpn
46func main() -> i64