code wiki / _hdl_build / nx_code_analysis_census.nx

nx_code_analysis_census.nx

buildroot/runtime/_hdl_build/nx_code_analysis_census.nx

6983 B73 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind tooltopic code
docsdependenciesstructsconstsfunctions

dependencies 3 imports · 0 importers

nx_gate_gn.nx nx_gate_base.nx nx_syscalls.nx nx_code_analysis_census.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_openat_wr rung exists sys_openat_rd sys_close gw ↻ gname sys_write ↻ w_reg sys_write ↻ gname ↻ exists ↻ gn sys_close ↻

structs

none

consts

none

functions

11func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw("
calls 1: gw
13func exists(p: *u8) -> i64 { let fd: i64 = sys_openat_rd(p); if fd >= 0 { sys_close(fd); return 1 } return 0 }
called by 2: rungw_reg
14func gname(g: i64) -> *u8 { if g == 2 { return "EXCEEDS" as *u8 } if g == 1 { return "PRESENT" as *u8 } return "ABSENT " as *u8 }
17func rung(fd: i64, name: *u8, vs: *u8, organ: *u8, axis: *u8, want: i64) -> i64
25func w_reg(fd: i64, name: *u8, vs: *u8, organ: *u8, g: i64) -> i64
32func main() -> i64