code wiki / _hdl_build / nx_cms_exceed_census.nx

nx_cms_exceed_census.nx

buildroot/runtime/_hdl_build/nx_cms_exceed_census.nx

6028 B141 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic cms
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_itoa_lib.nx nx_cms_exceed_census.nx

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

main sys_mmap ec_read_file sys_openat_rd sys_read sys_close ec_msg sys_write ec_scan_to ec_feat_won sys_mmap ↻ ec_cat ec_find ec_cat ↻ ec_catn sys_mmap ↻ sys_write ↻ sys_openat_append sys_close ↻

structs

none

consts

13const EC_MAGIC_80000: i64 = 80000
15const EC_REF: *u8 = "knowledge/registry/cms_incumbent_ref.tsv"
16const EC_LOG: *u8 = "knowledge/status/cms_exceed.log"
17const EC_OUT: *u8 = "knowledge/status/cms_exceed_census.log"
18const EC_MAXF: i64 = 256

functions

20func 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 }
called by 1: main calls 1: sys_write
25func ec_putn(v: i64) -> i64 { nxi_out(v); return 0 }
calls 1: nxi_out
26func 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 }
called by 2: ec_feat_wonmain
27func ec_catn(dst: *u8, off: i64, v: i64) -> i64
called by 1: main calls 1: sys_mmap
33func ec_read_file(path: *u8, buf: *u8, cap: i64) -> i64
called by 1: main calls 3: sys_openat_rdsys_readsys_close
47func ec_scan_to(buf: *u8, n: i64, start: i64, delim: i64) -> i64
called by 1: main
55func ec_find(buf: *u8, lo: i64, hi: i64, needle: *u8) -> i64
called by 1: ec_feat_won
68func ec_feat_won(log: *u8, ln: i64, feat: *u8) -> i64
called by 1: main calls 3: sys_mmapec_catec_find
85func main() -> i64