code wiki / _hdl_build / nx_recycler_bench.nx

nx_recycler_bench.nx

buildroot/runtime/_hdl_build/nx_recycler_bench.nx

9786 B121 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind benchtopic recycler
docsdependenciesstructsconstsfunctions

dependencies 2 imports · 0 importers

nx_gate_gn.nx nx_syscalls.nx nx_recycler_bench.nx

imports: nx_gate_gn.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 gp sys_write sys_mmap streq grounded_in streq ↻ sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close subq slen lc gn subq ↻ slen ↻ sys_exit

structs

none

consts

none

functions

11func gp(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 calls 1: sys_write
12func slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 2: subqmain
13func 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 2: grounded_inmain
14func lc(c: i64) -> i64 { if c>=65 { if c<=90 { return c+32 } } return c }
called by 1: subq
15func subq(buf: *u8, n: i64, needle: *u8) -> i64
called by 2: grounded_inmain calls 2: slenlc
22func grounded_in(file: *u8, kw: *u8) -> i64
called by 1: main calls 4: streqsys_mmapsys_read_filesubq
30func main() -> i64