code wiki / _hdl_build / _race6_claude.nx
_race6_claude.nx
buildroot/runtime/_hdl_build/_race6_claude.nx
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
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
structs
| none |
consts
| none |
functions
| 9 | func r6_dec(label: *u8, v: i64) -> i64 |
| 30 | func r6_be4(b: *u8, off: i64) -> i64 |
| 39 | func r6_count(b: *u8, n: i64) -> i64 |
| 53 | func r6_find(b: *u8, n: i64, t: i64) -> i64 |
| 65 | func main() -> i64 |