code wiki / (root) / nx_jpeg_census_oracle.nx

nx_jpeg_census_oracle.nx

buildroot/runtime/nx_jpeg_census_oracle.nx

5216 B115 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic jpeg
docsdependenciesstructsconstsfunctions

about

nx_jpeg_census_oracle.nx -- per-assignment ORACLE STAGER for race 4 (JPEG marker census -- EMITTER-UNCOVERED ground when raced; B5's seed). Constructs a minimal synthetic JPEG (SOI, APP0/JFIF, DQT, SOF2 *progressive*, DHT, SOS + entropy + EOI) and records every want DURING construction -- ground truth by construction, no parser in the loop. Cases: real, trunc (cut 3 bytes), garbage (zeros, no SOI). Writes TWO manifests for the generic referee: /tmp/race_manifest_a.txt team lane A = covered-pattern attempt (_pe_lane_jpgtlv) /tmp/race_manifest_b.txt team lane B = WIRE_MARKER lane (_pe_lane_jpgmk) (stage the one to race as /tmp/race_manifest.txt). license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_itoa_lib.nx nx_jpeg_census_oracle.nx

imports: nx_syscalls.nxnx_itoa_lib.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 oj_seg oj_write_file sys_openat_wr sys_write sys_close oj_manifest sys_openat_wr ↻ oj_puts sys_write ↻ oj_row oj_puts ↻ oj_putn nxi_fd sys_mmap ↻ ccz_cat_num sys_write ↻ sys_munmap sys_close ↻ oj_puts ↻ oj_putn ↻

structs

none

consts

none

functions

12func oj_puts(fd: i64, s: *u8) -> i64
called by 3: oj_rowoj_manifestmain calls 1: sys_write
23func oj_putn(fd: i64, v: i64) -> i64 { nxi_fd(fd, v); return 0 }
called by 2: oj_rowmain calls 1: nxi_fd
25func oj_write_file(path: *u8, b: *u8, n: i64) -> i64
35func oj_seg(img: *u8, off: i64, m: i64, payload: i64, rec: *i64) -> i64
called by 1: main
47func oj_row(fd: i64, casen: *u8, key: *u8, want: i64) -> i64
called by 1: oj_manifest calls 2: oj_putsoj_putn
59func oj_manifest(path: *u8, team_elf: *u8, wants: *i64) -> i64
82func main() -> i64