code wiki / _hdl_build / nx_galx_durbin_gate.nx

nx_galx_durbin_gate.nx

buildroot/runtime/_hdl_build/nx_galx_durbin_gate.nx

6731 B106 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic galx
docsdependenciesstructsconstsfunctions

about

nx_galx_durbin_gate.nx -- sovereign gate for nx_galx_durbin_lib. Writes a crafted galx_dur.raw fixture (4 recordings, line N = recording N, one with a zero duration), compacts it to galx_dur.bin via db_build, then asserts O(1) db_lookup returns the exact duration per id -- and -1 for out-of-range / negative id / stale vidpaths_size / missing .bin. No bash, no curl: this exercises the real library on real bytes. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_galx_durbin_lib.nx nx_galx_durbin_gate.nx

imports: nx_syscalls.nxnx_galx_durbin_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_openat_wr gp_p sys_write sys_write ↻ gp_strlen sys_close db_build sys_openat_rd sys_lseek sys_close ↻ sys_mmap sys_read db_wb64 db_qint sys_openat_wr ↻ sys_write ↻ chk gp_p ↻ gp_n sys_mmap ↻ sys_write ↻ db_lookup sys_openat_rd ↻ sys_mmap ↻ sys_read ↻ sys_close ↻ db_rb64 sys_lseek ↻ sys_mmap ↻ db_batch_durs sys_openat_rd ↻ sys_mmap ↻ sys_read ↻ db_rb64 ↻ sys_lseek ↻ db_emit_u sys_mmap ↻ sys_close ↻ gp_jeq

structs

none

consts

none

functions

9func gp_p(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 2: chkmain calls 1: sys_write
10func gp_n(v: i64) -> i64
called by 2: chkmain calls 2: sys_mmapsys_write
18func gp_strlen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: main
20func gp_jeq(out: *u8, len: i64, exp: *u8) -> i64
called by 1: main
26func gp_bcat(buf: *u8, off: i64, s: *u8) -> i64 { var i: i64=0; while s[i]!=(0 as u8) { buf[off+i]=s[i]; i=i+1 } return off+i }
called by 1: main
27func gp_bn(buf: *u8, off: i64, v: i64) -> i64
called by 1: main calls 1: sys_mmap
36func chk(label: *u8, got: i64, want: i64) -> i64
called by 1: main calls 2: gp_pgp_n
41func main(argc: i64, argv: *i64) -> i64