code wiki / (root) / nx_doc_extract_gate.nx

nx_doc_extract_gate.nx

buildroot/runtime/nx_doc_extract_gate.nx

4987 B81 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic doc
docsdependenciesstructsconstsfunctions

about

nx_doc_extract_gate.nx -- R1 GATE for THE NISHI DOCUMENT-INTELLIGENCE arc. Proves reading an itemized medical-bill statement into STRUCTURED DATA is exact, and that the structured output flows into the R5 audit to produce IDENTICAL findings as hand-entered data (the measured round-trip: document -> structure -> audit). Header lines, the patient/account line, blank lines, and the TOTAL line are all correctly SKIPPED (only the 5 dated line-items are extracted). Exits 0 iff ALL pass. license_tier: ORIGINAL

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_money.nx nx_fin_audit.nx nx_doc_extract.nx nx_doc_extract_gate.nx

imports: nx_syscalls.nxnx_money.nxnx_fin_audit.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 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 ↻ g_puts sys_write g_putn sys_write ↻ sys_mmap ↻ chk g_puts ↻ g_putn ↻ seti aud_duplicates mny_add aud_unbundle mny_add ↻ aud_mue aud_lookup mny_div_round mny_div_floor mny_add ↻ aud_fairprice aud_lookup ↻ mny_div_round ↻ mny_add ↻

structs

none

consts

none

functions

11func 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
12func g_putn(v: i64) -> i64
called by 2: chkmain calls 2: sys_writesys_mmap
21func chk(name: *u8, got: i64, want: i64, st: *i64) -> i64
called by 1: main calls 2: g_putsg_putn
26func seti(a: *i64, i: i64, v: i64) -> i64 { a[i] = v; return 0 }
called by 1: main
28func main() -> i64