nx_nishi_coverage.nx
buildroot/runtime/nx_nishi_coverage.nx
about
nx_nishi_coverage.nx -- the MEASURED "use only our system" census. Reads the daily-driver tool
catalog (knowledge/registry/replacement_tools.tsv) and scores how much of the standard toolset
has a sovereign Nishi replacement: VERIFIED(3)/PARTIAL(2)/EXISTS(1)/GAP(0), coverage in per-mil.
Renders a CLI table AND an HTML "Nishi system status" window (the GUI half). Honest: counts the
real catalog, no fabrication; the catalog flags gaps as gaps. No hardware writes (Rule 26).
expect_exit: 0 license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_itoa_lib.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 9 | const K_MAGIC_8192: i64 = 8192 |
functions
| 11 | func cv_puts(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 16 | func cv_putn(v: i64) -> i64 { nxi_out(v); return 0 } |
| 17 | func cv_streq(a: *u8, b: *u8) -> i64 { var i: i64=0; while 1==1 { if a[i]!=b[i] { return 0 } if a[i]==(0 as u8) { return 1 } i=i+1 } return 1 } called by 1: main |
| 18 | func wa(buf: *u8, off: i64, s: *u8) -> i64 { var i: i64=0; while s[i]!=(0 as u8){ buf[off+i]=s[i]; i=i+1 } return off+i } called by 1: main |
| 19 | func wn(buf: *u8, off: i64, v: i64) -> i64 { var o: i64=off; if v==0 { buf[o]=48 as u8; return o+1 } let t: *u8=sys_mmap(28); var m: i64=v; var k: i64=0; while m>0 { t[k]=(48+(m%10)) as u8; m=m/10; k=k+1 } var i: i64=0; while i<k { buf[o+i]=t[k-1-i]; i=i+1 } return o+k } |
| 22 | func cv_field(buf: *u8, ls: i64, le: i64, f: i64, out: *u8) -> i64 called by 1: main |
| 33 | func main() -> i64 |