code wiki / (root) / nx_crawl_sufficiency_gate.nx

nx_crawl_sufficiency_gate.nx

buildroot/runtime/nx_crawl_sufficiency_gate.nx

9815 B162 linesdepth 6pulls 11 transitivereach 0 importersview sourcekind gate/prooftopic crawl
docsdependenciesstructsconstsfunctions

about

nx_crawl_sufficiency_gate.nx -- GATE for nx_crawl_sufficiency (the /compare/webscraping R5 contract cs_confidence). Network-free, fixtures assembled at runtime. The accept rule pre-declared on the board: a crawl that has covered half the query MUST NOT stop; near-duplicate pages MUST NOT raise confidence; a crawl that has covered the query and stopped discovering vocabulary MUST stop and say which metric moved; off-topic pages can never reach CONFIDENT; a full term set makes saturation UNOBSERVABLE, never 0-as-fact. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_crawl_sufficiency.nx nx_gate_verdict.nx nx_crawl_sufficiency_gate.nx

imports: nx_syscalls.nxnx_crawl_sufficiency.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

main gv_head gv_puts sys_write gv_ctr sys_mmap nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ sys_mmap ↻ cs_new cs_conf_one lc_geti sys_mmap ↻ lc_read sys_openat_rd sys_read sys_close lc_slen cs_new_t sys_mmap ↻ cs_conf_one ↻ cs_tokens nx_inv_is_token_char nx_inv_hash_bytes_lower sys_munmap sg_len gv_puts ↻ gv_num

structs

none

consts

11const SG_CAP: i64 = 8192

functions

13func sg_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 3: sg_hassg_addmain
14func sg_has(hay: *u8, n: i64, needle: *u8) -> i64
called by 1: main calls 1: sg_len
27func sg_add(st: *i64, s: *u8) -> i64 { return cs_add_doc(st, s, sg_len(s)) }
called by 1: main calls 2: cs_add_docsg_len
29func main() -> i64