code wiki / _hdl_build / _race5_claude.nx

_race5_claude.nx

buildroot/runtime/_hdl_build/_race5_claude.nx

3551 B104 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic race5
docsdependenciesstructsconstsfunctions

about

_race5_claude.nx -- the CLAUDE lane for autonomy race 5 (handwritten single-pass RIFF/WAV chunk census; the yardstick the team lane races against). Lane contract: read /tmp/race_input.bin, print NCHK= FMT= DATA= LIST= RSZ= as key=int lines. Census semantics (the assignment): NCHK = well-formed chunk count, -1 = REFUSED (truncated / bad magic / overlong length); finds = body offset RELATIVE to the chunk area (byte 12), -2 when refused or absent; RSZ = declared u32le size at byte 4 whenever the 12-byte header is intact, -2 otherwise. Odd chunk bodies are padded to even (RIFF law). license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx _race5_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 r5_4cc r5_dec sys_write sys_mmap ↻ r5_count r5_le4 r5_find r5_le4 ↻ r5_4cc ↻ r5_le4 ↻

structs

none

consts

none

functions

10func r5_dec(label: *u8, v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
31func r5_le4(b: *u8, off: i64) -> i64
called by 3: r5_countr5_findmain
39func r5_4cc(b: *u8, off: i64) -> i64
called by 2: r5_findmain
48func r5_count(b: *u8, n: i64) -> i64
called by 1: main calls 1: r5_le4
62func r5_find(b: *u8, n: i64, t: i64) -> i64
called by 1: main calls 2: r5_le4r5_4cc
74func main() -> i64