code wiki / (root) / nx_cdx_parse_gate.nx

nx_cdx_parse_gate.nx

buildroot/runtime/nx_cdx_parse_gate.nx

4543 B77 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_cdx_parse_gate.nx -- GREEN/RED gate: feed REAL-SHAPED page3.com CDX rows (as pulled live from web.archive.org) through cdx_parse -> nx_temporal_index and prove browse-as-of-date over actual archive index data. Composes nx_cdx_parse + nx_temporal_index. Sovereign, deterministic, no network. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_cdx_parse.nx nx_temporal_index.nx nx_cdx_parse_gate.nx

imports: nx_cdx_parse.nxnx_temporal_index.nx

imported by: nobody (leaf or entry point)

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

main gw ap

structs

none

consts

none

functions

7func gw(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 1: main
8func gn(v: i64) -> i64 { if v==0 { sys_write(1,"0" as *u8,1); return 0 } var m: i64=v; if m<0 { sys_write(1,"-" as *u8,1); m=0-m } let t: *u8=sys_mmap(24); var k: i64=0; while m>0 { t[k]=(48+(m%10)) as u8; m=m/10; k=k+1 } let o: *u8=sys_mmap(24); var w: i64=0; var q: i64=k-1; while q>=0 { o[w]=t[q]; w=w+1; q=q-1 } sys_write(1,o,w); return 0 }
9func ap(buf: *u8, off: i64, s: *u8) -> i64 { var i: i64=0; while s[i]!=(0 as u8) { buf[off+i]=s[i]; i=i+1 } return off+i }
called by 1: main
10func apnl(buf: *u8, off: i64) -> i64 { buf[off]=0x0a as u8; return off+1 }
12func main() -> i64
calls 2: gwap