code wiki / _hdl_build / nx_gamebench_gate.nx

nx_gamebench_gate.nx

buildroot/runtime/_hdl_build/nx_gamebench_gate.nx

23715 B380 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

dependencies 4 imports · 0 importers

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

imports: nx_gate_gn.nxnx_gate_base.nxnx_gate_verdict.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 nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap 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 ↻

structs

none

consts

25const GB_MAGIC_5000: i64 = 5000
37const GB_ART_MIN_RENDER: i64 = 50000
38const GB_NH_MASK: i64 = 33868488
39const GB_NH_REQ: i64 = 33868488
40const GB_D2_MASK: i64 = 34047689
41const GB_D2_REQ: i64 = 34047689
42const GB_ES_MASK: i64 = 36540929
43const GB_ES_REQ: i64 = 36540929
47const GB_CR_MASK: i64 = 33869512
48const GB_CR_REQ: i64 = 33869512

functions

53func read_board(lenp: *i64) -> *u8
called by 1: main calls 1: sys_read_file
66func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw("
calls 1: gw
69func fsize(p: *u8) -> i64
76func match_at(buf: *u8, n: i64, i: i64, pat: *u8) -> i64
81func contains(buf: *u8, n: i64, pat: *u8) -> i64
86func countlines(buf: *u8, n: i64) -> i64
91func rd64(b: *u8, off: i64) -> i64
98func wired_ok(path: *u8, want: i64, req: i64) -> i64
120func main() -> i64