code wiki / (root) / nx_block_density_gate.nx

nx_block_density_gate.nx

buildroot/runtime/nx_block_density_gate.nx

10650 B159 linesdepth 5pulls 7 transitivereach 0 importersview sourcekind gate/prooftopic block
docsdependenciesstructsconstsfunctions

about

nx_block_density_gate.nx -- GATE for nx_block_density (the /compare/webscraping R6 contract bd_fit_text). Network-free; fixtures are assembled at runtime. The accept rule pre-declared on the board: on the boilerplate fixture every article sentence survives and the nav, link-farm, aside and footer blocks are dropped; a page with no boilerplate comes back BYTE-IDENTICAL to the plain renderer; a page whose only content block is boilerplate falls back to the full text instead of returning nothing. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_block_density.nx nx_gate_verdict.nx nx_block_density_gate.nx

imports: nx_syscalls.nxnx_block_density.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 ↻ bd_conf_reset bd_load_conf bd_conf_one lc_geti sys_mmap ↻ lc_read sys_openat_rd sys_read sys_close lc_slen gv_puts ↻ gv_num sys_mmap ↻ sys_write ↻ sys_munmap bd_classify_t bd_link_density gv_check gv_puts ↻ bd_classify

structs

none

consts

11const BG_CAP: i64 = 65536

functions

13func bg_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: bg_has
15func bg_has(hay: *u8, n: i64, needle: *u8) -> i64
called by 1: main calls 1: bg_len
28func bg_eq(a: *u8, an: i64, b: *u8, bn: i64) -> i64
called by 1: main
34func bg_cat(d: *u8, o: i64, s: *u8) -> i64 { var i: i64 = 0; var p: i64 = o; while s[i] != (0 as u8) { d[p] = s[i]; p = p + 1; i = i + 1 } d[p] = 0 as u8; return p }
called by 1: main
36func main() -> i64