code wiki / _hdl_build / nx_source_grade_gate.nx
nx_source_grade_gate.nx
buildroot/runtime/_hdl_build/nx_source_grade_gate.nx
about
nx_source_grade_gate.nx -- ENGINEER gate for the SOURCE-CRITICISM organ (RACI: Builder authored
nx_source_grade.nx, Engineer verifies here, Doctor heals on RED). KATs prove: the Admiralty
cannot-judge states never act, the independence rule rejects echo-pairs and rewards opposed
agreement, the score is monotone in every axis, the ICD-203 bands and the confidence/likelihood
separation law hold, and grading is deterministic. Hand-computed expectations throughout.
license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_source_grade.nxnx_syscalls.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
| none |
functions
| 10 | func sgg_wf(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 } |
| 11 | func sgg_wnf(fd: i64, v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(fd,"-" as *u8,1)} let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48 as u8;k=1} while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1} var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1} sys_write(fd,bb,k); return 0 } |
| 12 | func sgg_w(s: *u8) -> i64 { return sgg_wf(1, s) } |
| 13 | func sgg_wn(v: i64) -> i64 { return sgg_wnf(1, v) } |
| 15 | func main() -> i64 |