code wiki / _hdl_build / nx_runpath_gate.nx

nx_runpath_gate.nx

buildroot/runtime/_hdl_build/nx_runpath_gate.nx

3701 B65 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

dependencies 3 imports · 0 importers

nx_gate_base.nx nx_syscalls.nx nx_runpath.nx nx_runpath_gate.nx

imports: nx_gate_base.nxnx_syscalls.nxnx_runpath.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 g_w sys_write rp_ensure sys_mmap ↻ rp_path rg_write sys_openat_wr sys_write ↻ g_slen sys_close rg_read sys_openat_rd sys_read sys_close ↻ g_row g_w ↻ g_streq g_starts rp_wsid sys_openat_rd ↻ sys_mmap ↻ sys_read ↻ sys_close ↻ rp_match sys_write ↻ sys_exit

structs

none

consts

none

functions

10func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw("
calls 1: gw
12func g_w(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
13func g_streq(a: *u8, b: *u8) -> i64 { var i: i64=0; while a[i]!=(0 as u8){ if a[i]!=b[i]{return 0} i=i+1 } if b[i]!=(0 as u8){return 0} return 1 }
called by 1: main
14func g_starts(a: *u8, b: *u8) -> i64 { var i: i64=0; while b[i]!=(0 as u8){ if a[i]!=b[i]{return 0} i=i+1 } return 1 }
called by 1: main calls 1: g_w
15func g_row(id: *u8, ok: i64, pass: *i64) -> i64 { g_w(" "); g_w(id); g_w(": "); if ok==1 { g_w("OK\n"); pass[0]=pass[0]+1 } else { g_w("FAIL\n") } return 0 }
17func rg_write(path: *u8, content: *u8) -> i64
23func rg_read(path: *u8, buf: *u8, cap: i64) -> i64
33func main() -> i64