code wiki / (root) / nx_nishi_coverage.nx

nx_nishi_coverage.nx

buildroot/runtime/nx_nishi_coverage.nx

6305 B91 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic nishi
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_itoa_lib.nx nx_nishi_coverage.nx

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

main sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close cv_puts sys_write sys_exit cv_field cv_streq cv_putn nxi_out nxi_fd sys_mmap ↻ ccz_cat_num sys_write ↻ sys_munmap wa wn sys_mmap ↻ sys_openat_wr sys_write ↻ sys_close ↻

structs

none

consts

9const K_MAGIC_8192: i64 = 8192

functions

11func 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 }
called by 1: main calls 1: sys_write
16func cv_putn(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
17func 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
18func 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
19func 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 }
called by 1: main calls 1: sys_mmap
22func cv_field(buf: *u8, ls: i64, le: i64, f: i64, out: *u8) -> i64
called by 1: main
33func main() -> i64