nx_bench_census_lib.nx
buildroot/runtime/nx_bench_census_lib.nx
about
nx_bench_census_lib.nx -- ecosystem BENCHMARK-COVERAGE census (the anti-navel-gazing engine scaled to
EVERYTHING). Question: of the LIVE tool surface, how many are graded against an EXTERNAL SOTA oracle
(measured, not self-asserted)? An ungraded tool is honest DEBT, NEVER silently GREEN. Data-driven:
registry rows <tool> <TAB> <oracle> <TAB> <verdict> verdict in {PARITY|EXCEED|UNIQUE|GAP|UNMEASURED}
live toolset the tool_allowlist.conf (field 0 of each non-comment line) = the DENOMINATOR
A tool with a PARITY/EXCEED/UNIQUE/GAP row is GRADED (GAP counts -- it's MEASURED + named, not hidden).
Coverage = graded / live. The uncovered set is PRINTED = the exact debt to eat lap by lap.
license_tier: ORIGINAL
dependencies 2 imports · 1 importers
imports: nx_syscalls.nxnx_itoa_lib.nx
imported by: nx_bench_census_gate.nx
structs
| none |
consts
| 12 | const BC_TAB: i64 = 9 |
| 13 | const BC_NL: i64 = 10 |
| 14 | const BC_HASH: i64 = 35 // '#' comment line |
| 15 | const BC_NAME_CAP: i64 = 256 |
| 16 | const BC_VERD_CAP: i64 = 64 |
| 17 | const BC_PERMILLE: i64 = 1000 |
| 18 | const BC_ASCII_0: i64 = 48 // '0' (decimal print) |
| 19 | const BC_C_LIVE: i64 = 0 // counts[] slot indices (named so array indexing is rule-11 clean) |
| 20 | const BC_C_GRADED: i64 = 1 |
| 21 | const BC_C_EXCEED: i64 = 2 |
| 22 | const BC_C_GAP: i64 = 3 |
| 23 | const BC_C_UNMEAS: i64 = 4 |
| 24 | const BC_F_VERDICT: i64 = 2 // registry field index: <tool>=0 <oracle>=1 <verdict>=2 |
functions
| 26 | func bc_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 31 | func bc_putn(v: i64) -> i64 { nxi_out(v); return 0 } |
| 32 | func bc_seq(a: *u8, b: *u8) -> i64 { var i: i64 = 0; while a[i] != (0 as u8) { if a[i] != b[i] { return 0 } i = i + 1 } if b[i] != (0 as u8) { return 0 } return 1 } |
| 35 | func bc_field(buf: *u8, ls: i64, le: i64, fidx: i64, out: *u8) -> i64 |
| 54 | func bc_is_graded(v: *u8) -> i64 |
| 62 | func bc_lookup(reg: *u8, rn: i64, tool: *u8, vout: *u8) -> i64 |
| 83 | func bc_census(allow: *u8, an: i64, reg: *u8, rn: i64, counts: *i64) -> i64 |
| 119 | func bc_report(counts: *i64) -> i64 |