code wiki / _hdl_build / nx_hostop_func_census.nx

nx_hostop_func_census.nx

buildroot/runtime/_hdl_build/nx_hostop_func_census.nx

9134 B108 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic hostop
docsdependenciesstructsconstsfunctions

about

nx_hostop_func_census.nx -- Scores the HOST OPERATOR's implementation against a mature host-deploy incumbent by checking if required symbols are wired into the role.

dependencies 2 imports · 0 importers

nx_gate_base.nx nx_syscalls.nx nx_hostop_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 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

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 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
14func gstr(g: i64) -> *u8 { if g==0 { return "ABSENT " as *u8 } return "PRESENT" }
called by 1: present
15func fc_substr(hay: *u8, haylen: i64, needle: *u8) -> i64
22func present(ctx: *i64, needle: *u8) -> i64
28func row(name: *u8, cite: *u8, grade: i64, symbol: *u8, ctx: *i64, st: *i64) -> i64
47func main() -> i64