code wiki / _hdl_build / nx_reader_exceed_gate.nx

nx_reader_exceed_gate.nx

buildroot/runtime/_hdl_build/nx_reader_exceed_gate.nx

12194 B155 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind gate/prooftopic reader
docsdependenciesstructsconstsfunctions

about

nx_reader_exceed_gate.nx -- MEASURED exceed scorecard for the Nishi reader (no-wave, organ-graded, never self-scored). Mirrors the nx_pub_exceed_gate / nx_ws_exceed_gate doctrine: MECHANICALLY measure the Nishi side (read reader.html + a real book.json), name the incumbents as documented yardsticks (Kindle/Calibre-Web/foliate -- by-design, NOT run/fabricated, cited in knowledge/fetched/reader_*.raw), and grade each axis EXCEEDS / PARITY / BEHIND. EXCEEDS is allowed ONLY on a win-eligible axis whose mechanical measurement passed; a LIAR-KILL refuses EXCEEDS on a behind-axis or an unmeasured axis. GREEN = an honest measured scorecard + intact liar-kill, NOT "we beat everyone". Self-contained + sovereign (fork/exec, no shell). expect_exit: 0

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_reader_exceed_gate.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 xp sys_write spawn sys_fork sys_openat_wr sys_dup3 sys_mmap sys_execve sys_exit sys_wait4 sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close sys_exit ↻ xhas xfind xslen xn sys_write ↻ sys_mmap ↻ grade_exceed axis xp ↻ vword xp ↻

structs

none

consts

none

functions

10func xp(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 3: vwordaxismain calls 1: sys_write
11func xn(v0: i64) -> i64 { var v: i64=v0; if v<0 { sys_write(1,"-" as *u8,1); v=0-v } let b: *u8=sys_mmap(24); var k: i64=0; if v==0 {b[0]=48 as u8;k=1} while v>0 {b[k]=(48+(v%10)) as u8; v=v/10; k=k+1} let o: *u8=sys_mmap(24); var j: i64=0; while j<k {o[j]=b[k-1-j];j=j+1} sys_write(1,o,k); return 0 }
called by 1: main calls 2: sys_writesys_mmap
12func xslen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: xfind
14func spawn(path: *u8, a0: *u8, a1: *u8, redir: *u8) -> i64
35func xfind(hay: *u8, hl: i64, needle: *u8) -> i64
called by 1: xhas calls 1: xslen
47func xhas(hay: *u8, hl: i64, needle: *u8) -> i64 { if xfind(hay, hl, needle) >= 0 { return 1 } return 0 }
called by 1: main calls 1: xfind
50func grade_exceed(win_eligible: i64, measured: i64) -> i64
called by 1: main
54func vword(v: i64) -> i64
called by 1: axis calls 1: xp
58func axis(name: *u8, v: i64, ev: *u8) -> i64 { xp(" [" as *u8); vword(v); xp("] " as *u8); xp(name); xp(" -- " as *u8); xp(ev); xp("\n" as *u8); return 0 }
called by 1: main calls 2: xpvword
60func main() -> i64