code wiki / _hdl_build / nx_grade.nx
nx_grade.nx
buildroot/runtime/_hdl_build/nx_grade.nx
about
nx_grade.nx -- run the ecosystem's photoreal grader (ns_assess) on ANY jpeg, print LEVEL + 5 axes.
The RED-TEAM harness: feed it real photos, clay renders, and adversarial inputs (noise/flat/checker) to
test whether the grader is HONEST or GAMEABLE. Same decode path the corpus grader uses. license_tier: ORIGINAL
nx_grade <image.jpg> <label>
dependencies 5 imports · 0 importers
imports: nx_syscalls.nxnx_itoa_lib.nxnx_jpeg_ascii.nxnx_natstat.nxnx_png_decoder.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
| 10 | const K_65536: i64 = 65536 |
functions
| 12 | func g_hw(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n+1 } sys_write(1, s, n); return 0 } |
| 17 | func g_pn(v: i64) -> i64 { nxi_out(v); return 0 } |
| 20 | func g_run(fb: *i64, iw: i64, ih: i64, label: *u8) -> i64 |
| 43 | func main(argc: i64, argv: *i64) -> i64 |