code wiki / (root) / nx_doc_classify_gate.nx

nx_doc_classify_gate.nx

buildroot/runtime/nx_doc_classify_gate.nx

5933 B95 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic doc
docsdependenciesstructsconstsfunctions

about

nx_doc_classify_gate.nx -- R3 GATE: proves the data-driven document classifier routes documents to the right TYPE (medical bill / bank statement / EOB), rejects an unknown letter (below threshold -> -1), that the threshold is a real data knob, and that classify -> route -> extract composes (a doc classified as a medical bill flows into nx_doc_extract). Deterministic, exact. Exits 0 iff ALL pass. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_doc_classify.nx nx_doc_extract.nx nx_doc_classify_gate.nx

imports: nx_syscalls.nxnx_doc_classify.nxnx_doc_extract.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 chk g_puts sys_write g_putn sys_write ↻ sys_mmap ↻ dcl_classify dcl_score dcl_find slen g_puts ↻ g_putn ↻ dx_extract_bill sys_mmap ↻ dx_tokenize dx_tok_date dx_dig dx_is5 dx_dig ↻ dx_tok_int dx_dig ↻ dx_tok_money dx_dig ↻

structs

none

consts

none

functions

9func g_puts(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 2: chkmain calls 1: sys_write
10func g_putn(v: i64) -> i64
called by 2: chkmain calls 2: sys_writesys_mmap
19func chk(name: *u8, got: i64, want: i64, st: *i64) -> i64
called by 1: main calls 2: g_putsg_putn
24func seti(a: *i64, i: i64, v: i64) -> i64 { a[i] = v; return 0 }
25func slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: main
27func main() -> i64