code wiki / (root) / nx_swcompare_office.nx

nx_swcompare_office.nx

buildroot/runtime/nx_swcompare_office.nx

20333 B219 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic swcompare
docsdependenciesstructsconstsfunctions

about

nx_swcompare_office.nx -- SoftwareCompare (office domain): the Nishi office stack MEASURED vs Microsoft 365 Copilot / Google Workspace Gemini / LibreOffice. Each Nishi cell PROVEN by the implementing symbol in the real organ source on disk (present) or its ABSENCE (gap). Competitor cells = documented capability presence, grounded in knowledge/library/office-sota-bar-2026-07-08.txt (cited, web-fetched 2025/2026). Coverage is HONESTLY LOW: the office suite is a sovereign FOUNDATION, not SOTA -- the liar-kill enforces coverage<600 + the marquee gaps real. Modes: no-arg = console census + liar-kill (gate); argv[1]="html" = emit the /compare/office page to stdout. NOTE: no '#'/'!' in string literals (nx_cc trap) -> rgb() + emit '!' byte. license_tier: ORIGINAL expect_exit: 0

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_swcompare_office.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 sys_mmap c_file_has c_read sys_openat_rd sys_read sys_close c_has c_exists sys_openat_rd ↻ sys_close ↻ isp ise isa streq w sys_write wc sys_mmap ↻ sys_write ↻ html_row3 w ↻ td_badge w ↻ wn w ↻ sys_mmap ↻ sys_write ↻ sys_exit con_row w ↻

structs

none

consts

9const K_MAGIC_262144: i64 = 262144

functions

11func 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 }
12func wc(fd: i64, code: i64) -> i64 { let t: *u8 = sys_mmap(2); t[0] = code as u8; sys_write(fd, t, 1); return 0 }
called by 1: main calls 2: sys_mmapsys_write
13func wn(fd: i64, v: i64) -> i64
called by 1: main calls 3: wsys_mmapsys_write
19func c_read(path: *u8, buf: *u8, cap: i64) -> i64
25func c_exists(path: *u8) -> i64 { let fd: i64 = sys_openat_rd(path); if fd < 0 { return 0 } sys_close(fd); return 1 }
called by 1: main calls 2: sys_openat_rdsys_close
26func c_has(buf: *u8, n: i64, needle: *u8) -> i64
called by 1: c_file_has
33func c_file_has(path: *u8, needle: *u8, buf: *u8, cap: i64) -> i64
called by 1: main calls 2: c_readc_has
37func streq(a: *u8, b: *u8) -> i64 { var i: i64 = 0; while a[i] != (0 as u8) { if a[i] != b[i] { return 0 } i = i + 1 } if b[i] != (0 as u8) { return 0 } return 1 }
called by 1: main
38func isp(ns: i64) -> i64 { if ns == 1 { return 1 } return 0 }
called by 1: main
39func ise(ns: i64) -> i64 { if ns == 2 { return 1 } return 0 }
called by 1: main
40func isa(ns: i64) -> i64 { if ns == 0 { return 1 } return 0 }
called by 1: main
42func con_row(label: *u8, ns: i64) -> i64
called by 1: main calls 1: w
47func td_badge(fd: i64, code: i64) -> i64
called by 1: html_row3 calls 1: w
54func html_row3(fd: i64, cat: *u8, ns: i64, ms: i64, gg: i64, lo: i64, note: *u8) -> i64
called by 1: main calls 2: wtd_badge
62func main(argc: i64, argv: *i64) -> i64