code wiki / _hdl_build / nx_gen_pipeline_gate.nx
nx_gen_pipeline_gate.nx
buildroot/runtime/_hdl_build/nx_gen_pipeline_gate.nx
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
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
structs
| none |
consts
| none |
functions
| 10 | func tg(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 11 | func 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 |
| 13 | func tg_basepng(b: *u8) -> i64 called by 1: main |
| 28 | func tg_enc_char(v: i64) -> i64 called by 1: tg_b64_encode |
| 36 | func tg_b64_encode(inp: *u8, n: i64, out: *u8) -> i64 |
| 67 | func 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 |
| 68 | func 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 |
| 70 | func tg_freshns(prefix: *u8) -> i64 |
| 82 | func tg_truncate(path: *u8) -> i64 { let fd: i64 = sys_openat_wr(path, 0x1a4); if fd>=0 { sys_close(fd) } return 0 } |
| 83 | func tg_linecount(path: *u8) -> i64 |
| 93 | func main() -> i64 |