code wiki / _hdl_build / nx_cms_exceed_census.nx
nx_cms_exceed_census.nx
buildroot/runtime/_hdl_build/nx_cms_exceed_census.nx
about
nx_cms_exceed_census.nx -- consolidates the EXCEED track into a single MEASURED number (twin of
nx_cms_census, which measures REACH). Reads the WP feature surface cms_incumbent_ref.tsv (the 30
features) and COMPUTES, per feature, whether a head-to-head measured AHEAD exists in cms_exceed.log
(a line with `feature=<name> ` AND `verdict=AHEAD`) -- never asserted. Emits exceed_coverage_permil
over the 30 features (directly comparable to reach permil) plus the raw measured-AHEAD count.
Self-validating: a known-won feature MUST read won (pos control), a bogus feature MUST NOT (neg).
module: nishi-core.cms.exceed_census
depends: nishi-core.io.syscalls
capability: CMS
license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.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
| 13 | const EC_MAGIC_80000: i64 = 80000 |
| 15 | const EC_REF: *u8 = "knowledge/registry/cms_incumbent_ref.tsv" |
| 16 | const EC_LOG: *u8 = "knowledge/status/cms_exceed.log" |
| 17 | const EC_OUT: *u8 = "knowledge/status/cms_exceed_census.log" |
| 18 | const EC_MAXF: i64 = 256 |
functions
| 20 | func ec_msg(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 25 | func ec_putn(v: i64) -> i64 { nxi_out(v); return 0 } calls 1: nxi_out |
| 26 | func ec_cat(dst: *u8, off: i64, s: *u8) -> i64 { var o: i64=off; var k: i64=0; while s[k]!=(0 as u8){dst[o]=s[k];o=o+1;k=k+1} return o } |
| 27 | func ec_catn(dst: *u8, off: i64, v: i64) -> i64 |
| 33 | func ec_read_file(path: *u8, buf: *u8, cap: i64) -> i64 |
| 47 | func ec_scan_to(buf: *u8, n: i64, start: i64, delim: i64) -> i64 called by 1: main |
| 55 | func ec_find(buf: *u8, lo: i64, hi: i64, needle: *u8) -> i64 called by 1: ec_feat_won |
| 68 | func ec_feat_won(log: *u8, ln: i64, feat: *u8) -> i64 |
| 85 | func main() -> i64 |