code wiki / _hdl_build / nx_pdf_gate.nx

nx_pdf_gate.nx

buildroot/runtime/_hdl_build/nx_pdf_gate.nx

6519 B129 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind gate/prooftopic pdf
docsdependenciesstructsconstsfunctions

about

nx_pdf_gate.nx -- gate for the PDF viewer (nx_pdf: nx_pdf_text extract -> language-filter -> 0-JS preview). Evidence source = a REAL 634KB PubMed/Cochrane PDF fixture (knowledge/fetched/pmc_cd004504.pdf), not a toy. Rows: 1 instruments 2 render-ok 3 real-content(Cochrane Library) 4 readable-head (filter kills the binary prefix: "Cochrane" within the first 3600 bytes) 5 valid-0js-html 6 registry-dispatch(.pdf via nx_doc_view) 7 loud-fail-missing[neg]. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_pdf_gate.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main pg_p sys_write pg_slen pg_exists sys_openat_rd sys_close pg_row pg_p ↻ pg_runv sys_fork sys_openat_wr sys_dup3 sys_mmap sys_execve sys_exit sys_wait4 pg_args4 sys_mmap ↻ pg_has sys_mmap ↻ pg_readn sys_openat_rd ↻ sys_read sys_close ↻ pg_scan pg_slen ↻ pg_has_pre sys_mmap ↻ pg_readn ↻ pg_scan ↻ sys_openat_append sys_mmap ↻ pg_cat pg_catn sys_mmap ↻ sys_now_realtime_sec sys_mmap ↻ sys_clock_gettime_real sys_write ↻

structs

none

consts

none

functions

8func pg_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8) { n=n+1 } return n }
called by 2: pg_ppg_scan
9func pg_p(s: *u8) -> i64 { sys_write(1, s, pg_slen(s)); return 0 }
called by 2: pg_rowmain calls 2: sys_writepg_slen
10func pg_cat(dst: *u8, off: i64, s: *u8) -> i64 { var i: i64=0; while s[i]!=(0 as u8) { dst[off+i]=s[i]; i=i+1 } return off+i }
called by 1: main
11func pg_catn(dst: *u8, off: i64, v: i64) -> i64
called by 1: main calls 1: sys_mmap
17func pg_exists(path: *u8) -> i64 { let fd: i64=sys_openat_rd(path); if fd<0 { return 0 } sys_close(fd); return 1 }
called by 1: main calls 2: sys_openat_rdsys_close
18func pg_readn(path: *u8, buf: *u8, cap: i64) -> i64
24func pg_scan(buf: *u8, sz: i64, needle: *u8) -> i64
called by 2: pg_haspg_has_pre calls 1: pg_slen
30func pg_has(path: *u8, needle: *u8) -> i64
called by 1: main calls 3: sys_mmappg_readnpg_scan
36func pg_has_pre(path: *u8, needle: *u8, cap: i64) -> i64
called by 1: main calls 3: sys_mmappg_readnpg_scan
42func pg_runv(elf: *u8, args: *i64, outpath: *u8) -> i64
57func pg_args4(a1: *u8, a2: *u8, a3: *u8, a4: *u8) -> *i64
called by 1: main calls 1: sys_mmap
60func pg_row(name: *u8, pass: i64) -> i64
called by 1: main calls 1: pg_p
64func main(argc: i64, argv: *i64) -> i64