code wiki / _hdl_build / nx_sclass_claim_test.nx

nx_sclass_claim_test.nx

buildroot/runtime/_hdl_build/nx_sclass_claim_test.nx

4315 B56 linesdepth 4pulls 6 transitivereach 0 importersview sourcekind gate/prooftopic sclass
docsdependenciesstructsconstsfunctions

about

nx_sclass_claim_test.nx -- the Critic checks the BULLSHIT on S-class claims against EVERYTHING. Four claims through the three-gate check (complete benchmark + genuine exceed + Critic sound): - boolean minimization: exhaustive over ALL 256 functions (complete by construction), grade S, Critic LAW -> S_VERIFIED. the one genuine exceed survives the check. - SHARED-LLM REUSE (operator's example: one LLM for chat + image, flawless back-and-forth, optimizing resources): the RIGHT kind of S feature -- real VRAM win + near-zero switch -- BUT "unified = no quality loss" was REFUTED in research, so until WE MEASURE flawless quality both ways the Critic status is CONTESTED -> BS_COUNTER. held, not claimed on faith. - vector-quant: A-parity -> BS_NOT_EXCEED. - a cherry-picked benchmark -> BS_INCOMPLETE. Exit 0 if the check is honest. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_sclass_claim.nx nx_syscalls.nx nx_sclass_claim_test.nx

imports: nx_sclass_claim.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main ct_puts sys_write scc_check ct_r ct_puts ↻ ct_num sys_mmap sys_write ↻ sys_mmap ↻ scc_is_genuine scc_check ↻ sys_exit

structs

none

consts

none

functions

16func ct_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 2: ct_rmain calls 1: sys_write
17func ct_num(v: i64) -> i64 { let bb: *u8 = sys_mmap(28); var m: i64=v; if m<0 {m=0-m}; 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); m=m/10; k=k+1}; var i: i64=0; while i<k {bb[i]=t[k-1-i]; i=i+1}; sys_write(1, bb, k); return 0 }
called by 1: main calls 2: sys_mmapsys_write
18func ct_r(v: i64) -> i64 { if v==SCC_S_VERIFIED {ct_puts("S-VERIFIED" as *u8)} if v==SCC_BS_INCOMPLETE {ct_puts("BS(cherry-pick)" as *u8)} if v==SCC_BS_NOT_EXCEED {ct_puts("BS(not-exceed)" as *u8)} if v==SCC_BS_COUNTER {ct_puts("BS(counter/unmeasured)" as *u8)} return 0 }
called by 1: main calls 1: ct_puts
20func main() -> i64