nx_doc_scan_gate.nx
buildroot/runtime/nx_doc_scan_gate.nx
about
nx_doc_scan_gate.nx -- R4 GATE for the doc-intelligence SCAN/CAPTURE leg: proves sovereign template-match
OCR on a decoded bitmap. Recognizes all ten digits (clean match distance 0), recognizes a dollar amount,
shows the match distance is a real CONFIDENCE signal (a blank cell matches at a large distance), is robust
to inter-cell GAP noise, and decodes a real NetPBM P1 image file into a grid it then recognizes. Exits 0
iff ALL pass. license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_doc_scan.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 9 | func 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 } |
| 10 | func g_putn(v: i64) -> i64 |
| 19 | func chk(name: *u8, got: i64, want: i64, st: *i64) -> i64 |
| 24 | func dstreq(a: *u8, b: *u8) -> i64 { var i: i64 = 0; while 1 == 1 { if a[i] != b[i] { return 0 } if a[i] == (0 as u8) { return 1 } i = i + 1 } return 1 } called by 1: main |
| 25 | func zero(grid: *u8, len: i64) -> i64 { var i: i64 = 0; while i < len { grid[i] = 0 as u8; i = i + 1 } return 0 } called by 1: main |
| 26 | func seti(a: *i64, i: i64, v: i64) -> i64 { a[i] = v; return 0 } called by 1: main |
| 28 | func main() -> i64 |