code wiki / _hdl_build / nx_critic_countergrade.nx
nx_critic_countergrade.nx
buildroot/runtime/_hdl_build/nx_critic_countergrade.nx
about
nx_critic_countergrade.nx -- the CRITIC counter-grades the bench verdicts IN WRITING (the role
scorecard's named gap: no durable BS-check log existed). Nothing is gospel: every verdict line in
synth_bench.log is re-checked against its OWN numbers, the honest trail (the 750 NOT-YET loss must
still be present -- history scrubbing voids everything), and the blind-protocol artifact (the
samples file must exist). Verdicts the Critic cannot confirm are flagged, not deleted (additive).
Output: knowledge/status/critic_log.log -- the grading cluster's first durable evidence.
license_tier: ORIGINAL
dependencies 1 imports · 0 importers
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
structs
| none |
consts
| 9 | const K_MAGIC_999999: i64 = 999999 |
| 10 | const K_MAGIC_1048592: i64 = 1048592 |
| 11 | const K_MAGIC_1048576: i64 = 1048576 |
functions
| 12 | func _p(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 13 | func _pn(v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(1,"-" as *u8,1)}; 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 } |
| 14 | func _fp(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 } |
| 15 | func _fn(fd: i64, 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(fd,bb,k); return 0 } |
| 16 | func cc_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 17 | func cc_read(path: *u8, buf: *u8, cap: i64) -> i64 |
| 31 | func cc_find(buf: *u8, s: i64, e: i64, pat: *u8) -> i64 |
| 44 | func cc_num_after(buf: *u8, s: i64, e: i64, pat: *u8) -> i64 |
| 60 | func main() -> i64 |