code wiki / _hdl_build / nx_refbench.nx
nx_refbench.nx
buildroot/runtime/_hdl_build/nx_refbench.nx
about
nx_refbench.nx -- CLI/MCP surface for the reference-retention ruler.
All measurement lives in nx_refbench_lib.nx, which the GATE imports too, so the thing
that ships and the thing that is graded are the same code.
VERBS
compare <ref.png> <gen.png> -> JSON {ref/gen dims, plane, structure, perceptual, retention}
selftest -> the anti-vacuity pair (identity must be 1000, mirror must not be)
The full teeth live in nx_refbench_gate.nx; `selftest` is the fast in-tool smoke so an
agent calling this over MCP can confirm the instrument is sane before trusting a number.
expect_exit: 0 license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_refbench_lib.nxnx_itoa_lib.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
| 15 | func rb_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 21 | func rb_num(v: i64) -> i64 { nxi_out(v); return 0 } |
| 23 | func rb_report(label: *u8, sp: i64, pp: i64) -> i64 |
| 33 | func rb_selftest() -> i64 |
| 74 | func rb_streq(a: *u8, b: *u8) -> i64 called by 1: main |
| 84 | func main(argc: i64, argv: *i64) -> i64 |