code wiki / (root) / nx_crawl_sufficiency_cli.nx

nx_crawl_sufficiency_cli.nx

buildroot/runtime/nx_crawl_sufficiency_cli.nx

3834 B74 linesdepth 6pulls 13 transitivereach 0 importersview sourcekind tooltopic crawl
docsdependenciesstructsconstsfunctions

about

nx_crawl_sufficiency_cli.nx -- CLI over nx_crawl_sufficiency (the /compare/webscraping R5 lib): judge a set of already-fetched pages against a query and print the sufficiency trajectory, one line per page, then the verdict. HTML input goes through nx_block_density (fit text) so the judge sees the article, not the chrome. usage: nx_crawl_sufficiency_cli judge "<query words>" <file> [file...] exit: 0 STOP reached (confident or saturated) | 4 CONTINUE (more pages needed) | 2 usage | 3 nothing readable license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_crawl_sufficiency.nx nx_block_density.nx nx_crawl_sufficiency_cli.nx

imports: nx_syscalls.nxnx_crawl_sufficiency.nxnx_block_density.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sc_puts sys_write sc_len sc_streq cs_new cs_conf_one lc_geti 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 nxa_dump_sizes 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 sc_len ↻ sc_num sys_mmap ↻ cs_r_num sys_mmap ↻ sys_munmap ↻ sys_write ↻

structs

none

consts

none

functions

11func sc_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 2: sc_putsmain
12func sc_puts(s: *u8) -> i64 { sys_write(1, s, sc_len(s)); return 0 }
called by 1: main calls 2: sys_writesc_len
13func sc_num(v: i64) -> i64
20func sc_streq(a: *u8, b: *u8) -> i64 { var i: i64 = 0; while a[i] == b[i] { if a[i] == (0 as u8) { return 1 } i = i + 1 } return 0 }
called by 1: main
22func main(argc: i64, argv: *i64) -> i64