code wiki / _hdl_build / nx_wasm_craft_gate.nx
nx_wasm_craft_gate.nx
buildroot/runtime/_hdl_build/nx_wasm_craft_gate.nx
about
nx_wasm_craft_gate.nx -- verifies the GENERATED 3D WORLD natively (same base-relative code the
wasm runs). The DDA renderer is checked against GROUND TRUTH (a direct grid scan says what the ray
must hit), edits are causal (break removes THE targeted voxel, place fills its face-neighbor),
the world loop is deterministic, and the input layer's edge contract holds inside the wired game
(E held two frames breaks exactly ONE block). PNGs land in knowledge/ for the eyeball + critics.
license_tier: ORIGINAL expect_exit: 0
dependencies 3 imports · 0 importers
imports: nx_wasm_craft.nxnx_png_write.nxnx_gate_verdict.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
| 10 | const K_MAGIC_1000000007: i64 = 1000000007 |
| 11 | const K_MAGIC_4096: i64 = 4096 |
| 12 | const K_MAGIC_20260728: i64 = 20260728 |
| 13 | const K_MAGIC_3000: i64 = 3000 |
| 14 | const K_MAGIC_999999: i64 = 999999 |
| 15 | const K_MAGIC_12345: i64 = 12345 |
| 16 | const K_MAGIC_424242: i64 = 424242 |
| 17 | const K_MAGIC_1024: i64 = 1024 |
| 18 | const K_MAGIC_1536: i64 = 1536 |
| 19 | const K_MAGIC_6144: i64 = 6144 |
| 20 | const K_MAGIC_8191: i64 = 8191 |
| 21 | const K_MAGIC_57344: i64 = 57344 |
| 22 | const K_MAGIC_4611686018427387903: i64 = 4611686018427387903 |
functions
| 24 | func vw(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 |
| 25 | func vn(v: i64) -> i64 called by 1: main |
| 37 | func emit(base: i64, path: *u8) -> i64 |
| 50 | func fbck(base: i64) -> i64 |
| 57 | func nblocks(base: i64) -> i64 |
| 68 | func main() -> i64 |