code wiki / _hdl_build / nx_gamebench_gate.nx

nx_gamebench_gate.nx

buildroot/runtime/_hdl_build/nx_gamebench_gate.nx

22489 B364 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

dependencies 3 imports · 0 importers

nx_gate_gn.nx nx_gate_base.nx nx_syscalls.nx nx_gamebench_gate.nx

imports: nx_gate_gn.nxnx_gate_base.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main gw sys_write sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close countlines gn contains match_at fsize sys_mmap ↻ sys_read_file ↻ read_board sys_read_file ↻ wired_ok sys_mmap ↻ sys_read_file ↻ gw ↻ rd64 gn ↻ match_at ↻

structs

none

consts

24const GB_MAGIC_5000: i64 = 5000
36const GB_ART_MIN_RENDER: i64 = 50000
37const GB_NH_MASK: i64 = 297672
38const GB_NH_REQ: i64 = 33868488
39const GB_D2_MASK: i64 = 362057
40const GB_D2_REQ: i64 = 34047689
41const GB_ES_MASK: i64 = 2986497
42const GB_ES_REQ: i64 = 36540929

functions

47func read_board(lenp: *i64) -> *u8
called by 1: main calls 1: sys_read_file
60func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw("
calls 1: gw
63func fsize(p: *u8) -> i64
70func match_at(buf: *u8, n: i64, i: i64, pat: *u8) -> i64
75func contains(buf: *u8, n: i64, pat: *u8) -> i64
80func countlines(buf: *u8, n: i64) -> i64
85func rd64(b: *u8, off: i64) -> i64
92func wired_ok(path: *u8, want: i64, req: i64) -> i64
114func main() -> i64