code wiki / _hdl_build / nx_gen_pipeline_gate.nx

nx_gen_pipeline_gate.nx

buildroot/runtime/_hdl_build/nx_gen_pipeline_gate.nx

7206 B150 linesdepth 8pulls 12 transitivereach 0 importersview sourcekind gate/prooftopic gen
docsdependenciesstructsconstsfunctions

about

nx_gen_pipeline_gate.nx -- offline gate for the GENERATE pipeline core (no sockets). Builds a synthetic GPU-worker response by base64-encoding a real PNG TWICE (= a batch of 2), runs gp_response, and asserts: 2 images processed with DISTINCT CIDs (seed incremented), each PNG blob written (PNG sig + larger than base = GENREC tEXt injected), the CID->path sidecar grew to 2 lines, a re-run is idempotent (sidecar stays 2), and a response lacking images[] returns -1. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_gen_pipeline.nx nx_syscalls.nx nx_gen_pipeline_gate.nx

imports: nx_gen_pipeline.nxnx_syscalls.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 tg_basepng tg_b64_encode tg_enc_char tg_cat tg_catb tg_freshns sys_mmap ↻ sys_openat_wr sys_close tg_truncate sys_openat_wr ↻ sys_close ↻ gp_response sys_mmap ↻ gp_find_from gp_slen gp_next_b64json gp_find_from ↻ gp_itoa sys_mmap ↻ gp_one sys_mmap ↻ gp_b64_decode gp_b64_dec_char png_insert_genrec pw_find_iend pw_text pw_slen nx_store_ingest_ingest_cid sys_mmap ↻ nx_store_ingest_compute_ci sys_mmap ↻ nx_store_ingest_harvest sys_mmap ↻ _pe_pngchunk_rdbe _pe_pngtext_locate nx_store_ingest_keq canon_encode

structs

none

consts

none

functions

10func tg(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 calls 1: sys_write
11func tg_cideq(a: *u8, b: *u8) -> i64 { var i: i64=0; while i<69 { if (a[i]&0xff)!=(b[i]&0xff){return 0} i=i+1 } return 1 }
called by 1: main
13func tg_basepng(b: *u8) -> i64
called by 1: main
28func tg_enc_char(v: i64) -> i64
called by 1: tg_b64_encode
36func tg_b64_encode(inp: *u8, n: i64, out: *u8) -> i64
called by 1: main calls 1: tg_enc_char
67func tg_cat(dst: *u8, off: i64, s: *u8) -> i64 { var o: i64=off; var i: i64=0; while s[i]!=(0 as u8){dst[o]=s[i]; o=o+1; i=i+1} return o }
called by 1: main
68func tg_catb(dst: *u8, off: i64, src: *u8, n: i64) -> i64 { var o: i64=off; var i: i64=0; while i<n {dst[o]=src[i]; o=o+1; i=i+1} return o }
called by 1: main
70func tg_freshns(prefix: *u8) -> i64
called by 1: main calls 3: sys_mmapsys_openat_wrsys_close
82func tg_truncate(path: *u8) -> i64 { let fd: i64 = sys_openat_wr(path, 0x1a4); if fd>=0 { sys_close(fd) } return 0 }
called by 1: main calls 2: sys_openat_wrsys_close
83func tg_linecount(path: *u8) -> i64
called by 1: main calls 2: sys_mmapsys_read_file
93func main() -> i64