code wiki / _hdl_build / _race6_claude.nx

_race6_claude.nx

buildroot/runtime/_hdl_build/_race6_claude.nx

3253 B95 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic race6
docsdependenciesstructsconstsfunctions

about

_race6_claude.nx -- the CLAUDE lane for autonomy race 6 (handwritten single-pass PNG chunk census; the yardstick). Lane contract: read /tmp/race_input.bin, print NCHK= IHDR= IDAT= IEND= W= as key=int lines. PNG: 8-byte magic, then chunks [len u32 BE][type 4cc][body][CRC 4B]. NCHK = well-formed chunk count, -1 refused (bad magic / truncation / overlong); finds = body offset RELATIVE to the chunk area (byte 8), -2 refused/absent; W= = u32 BE at abs byte 16 (IHDR width) whenever the magic is intact, -2 otherwise. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx _race6_claude.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 sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close r6_be4 r6_dec sys_write sys_mmap ↻ r6_count r6_be4 ↻ r6_find r6_be4 ↻

structs

none

consts

none

functions

9func r6_dec(label: *u8, v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
30func r6_be4(b: *u8, off: i64) -> i64
called by 3: r6_countr6_findmain
39func r6_count(b: *u8, n: i64) -> i64
called by 1: main calls 1: r6_be4
53func r6_find(b: *u8, n: i64, t: i64) -> i64
called by 1: main calls 1: r6_be4
65func main() -> i64