code wiki / _hdl_build / nx_search_census_gate.nx
nx_search_census_gate.nx
buildroot/runtime/_hdl_build/nx_search_census_gate.nx
about
nx_search_census_gate.nx -- teeth for the G1 census's OUTCOME PARTITION and its window envelope.
WHY IT EXISTS. nx_search_census shipped with prove=NO-GATE-FOUND UNPROVEN, and within an hour its own
output nearly misled its author: it reported hostcap_defer_permil=927 over a window that turned out to
span about 27 HOURS, while hand-sampled post-fix windows read ZERO. Both were right about their own
span. A census whose numbers can be read as current when they are a day-long average needs its
envelope PINNED, not just printed.
SUBJECT: wc_throughput_census, one of the two contract symbols /compare/search watches. It takes a
BUFFER, so these teeth drive it on a synthetic log built here -- no shard, no /tmp fixture, no fork,
and nothing that touches the live index or the 129 MB outcome log.
license_tier: ORIGINAL expect_exit: 0
dependencies 2 imports · 0 importers
imports: nx_search_census.nxnx_gate_verdict.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
| 16 | const GSC_BUF: i64 = 4096 |
| 17 | const GSC_SLOTS: i64 = 1024 |
| 20 | const GSC_FXBUF: i64 = 64 |
| 21 | const GSC_POBUF: i64 = 32 |
| 22 | const GSC_VBUF: i64 = 128 |
| 23 | const GSC_MAGIC_LEN: i64 = 4 |
| 24 | const GSC_U32: i64 = 4 |
| 25 | const GSC_NP_HDR: i64 = 1 |
| 26 | const GSC_FX_TERMS: i64 = 2 |
| 27 | const GSC_FX_RUNS: i64 = 3 |
| 28 | const GSC_RUNA_NP: i64 = 3 |
| 29 | const GSC_RUNB_NP: i64 = 1 |
| 30 | const GSC_RUNC_NP: i64 = 2 |
| 31 | const GSC_DELTA_ONE: i64 = 1 |
| 32 | const GSC_RUNB_DELTA: i64 = 5 |
| 33 | const GSC_FX_BADMAGIC: i64 = 77 |
| 34 | const GSC_CONF_CROSS: i64 = 10000000 |
functions
| 35 | func gsc_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 37 | func gsc_row(b: *u8, o: i64, epoch: *u8, cls: *u8, url: *u8) -> i64 |
| 46 | func main(argc: i64, argv: *i64) -> i64 |