code wiki / _hdl_build / nx_pub_func_census.nx

nx_pub_func_census.nx

buildroot/runtime/_hdl_build/nx_pub_func_census.nx

14111 B180 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic pub
docsdependenciesstructsconstsfunctions

about

nx_pub_func_census.nx -- Evaluates a publisher's compliance with 12 functional duties by checking symbol presence in source files.

dependencies 2 imports · 0 importers

nx_gate_base.nx nx_syscalls.nx nx_pub_func_census.nx

imports: nx_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 sys_mmap load sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close gw sys_write row present fc_substr gw ↻ gstr pn sys_write ↻ sys_mmap ↻ sys_exit

structs

none

consts

none

functions

19func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw("
calls 1: gw
21func pn(v0: i64) -> i64 { var v: i64=v0; if v<0 { sys_write(1,"-" as *u8,1); v=0-v } let b: *u8=sys_mmap(24); var k: i64=0; if v==0 {b[0]=48;k=1} while v>0 {b[k]=(48+(v%10)) as u8; v=v/10; k=k+1} let o: *u8=sys_mmap(24); var j: i64=0; while j<k {o[j]=b[k-1-j];j=j+1} sys_write(1,o,k); return 0 }
called by 1: row
22func gstr(g: i64) -> *u8
29func fc_substr(hay: *u8, haylen: i64, needle: *u8) -> i64
42func present(ctx: *i64, needle: *u8) -> i64
54func load(ctx: *i64, idx: i64, path: *u8) -> i64
62func row(name: *u8, cite: *u8, grade: i64, symbol: *u8, ctx: *i64, st: *i64) -> i64
85func main() -> i64