code wiki / _hdl_build / nx_incumbent_census.nx

nx_incumbent_census.nx

buildroot/runtime/_hdl_build/nx_incumbent_census.nx

6480 B141 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_incumbent_census.nx -- the GENERIC capability census: ANY incumbent_ref (id\tcategory\tfeature\t probe\tweight) -> a rich census (id\tcategory\tfeature\tstatus\tweight) measuring Nishi coverage. PRESENT iff the row's <probe> organ FILE EXISTS (present_by=organ-file); "-" = a GAP. ONE organ serves EVERY incumbent (Wolfram/MATLAB/...): author its incumbent_ref + run this = a measured catalog, no per- system organ. Operator: "get functionalities from across LOTS of systems ... S-class exceed, time the only limit." argv[1]=incumbent_ref, argv[2]=census-out. Pair with nx_census_to_bg -> nx_backlog_gen to flow the gaps into the clone-army task stream. Self-validating (organ present/absent controls first). module: nishi-core.meta.incumbent_census depends: nishi-core.sys.syscalls capability: GENERIC_INCUMBENT_COVERAGE_CENSUS license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_incumbent_census.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main ic_w sys_write sys_exit ic_selftest ic_organ_exists sys_mmap sys_openat_rd sys_close ic_wn sys_mmap ↻ sys_write ↻ sys_mmap ↻ ic_read sys_openat_rd ↻ sys_read sys_close ↻ sys_openat_wr ic_field ic_len ic_organ_exists ↻ sys_close ↻

structs

none

consts

14const K_MAGIC_262144: i64 = 262144

functions

16func ic_w(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 }
called by 1: main calls 1: sys_write
17func ic_wn(fd: i64, v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(fd,"-" as *u8,1)}; let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48;k=1}; while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1}; var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1}; sys_write(fd,bb,k); return 0 }
called by 1: main calls 2: sys_mmapsys_write
18func ic_len(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: main
20func ic_read(path: *u8, buf: *u8, cap: i64) -> i64
called by 1: main calls 3: sys_openat_rdsys_readsys_close
30func ic_organ_exists(name: *u8) -> i64
53func ic_field(buf: *u8, ls: i64, le: i64, f: i64, dst: *u8, cap: i64) -> i64
called by 1: main
66func ic_selftest() -> i64
called by 1: main calls 1: ic_organ_exists
73func main(argc: i64, argv: *i64) -> i64