code wiki / _hdl_build / nx_census_to_bg.nx

nx_census_to_bg.nx

buildroot/runtime/_hdl_build/nx_census_to_bg.nx

4104 B87 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic census
docsdependenciesstructsconstsfunctions

about

nx_census_to_bg.nx -- generic adapter: a RICH census (id\tcategory\tfeature\tstatus\tweight, the nx_math_census/nx_sci_census/nx_wolfram_census output format) -> the nx_backlog_gen CONTRACT (status\tfeature\tunion\tevidence, ABSENT-keyed). So ANY rich census's gaps flow into the self-feed -> GEN-<rung>-<id> queue tasks -> the swarm/clones build them (hardware-rung-up, sovereign, EXCEED). Reusable (operator: "get functionalities from across LOTS of systems ... S-class exceed, time the only limit") -- one adapter serves every incumbent catalog. argv[1]=input rich census, argv[2]=output bg. module: nishi-core.meta.census_to_bg depends: nishi-core.sys.syscalls capability: RICH_CENSUS_TO_BACKLOG_CONTRACT_ADAPTER license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_census_to_bg.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 cb_w sys_write sys_exit sys_mmap cb_read sys_openat_rd sys_read sys_close sys_openat_wr cb_field sys_close ↻ cb_wn sys_mmap ↻ sys_write ↻

structs

none

consts

13const K_MAGIC_262144: i64 = 262144

functions

15func cb_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
16func cb_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
17func cb_len(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
19func cb_read(path: *u8, buf: *u8, cap: i64) -> i64
called by 1: main calls 3: sys_openat_rdsys_readsys_close
29func cb_field(buf: *u8, ls: i64, le: i64, f: i64, dst: *u8, cap: i64) -> i64
called by 1: main
42func main(argc: i64, argv: *i64) -> i64