code wiki / _hdl_build / nx_vcodec_golomb_gate.nx

nx_vcodec_golomb_gate.nx

buildroot/runtime/_hdl_build/nx_vcodec_golomb_gate.nx

2278 B47 linesdepth 5pulls 15 transitivereach 0 importersview sourcekind gate/prooftopic vcodec
docsdependenciesstructsconstsfunctions

about

nx_vcodec_golomb_gate.nx -- KAT for the vcv-10 exp-Golomb MV-delta verbs (F608 MVD bundle). Proves: (1) vc_gput -> vc_gget round-trips exact over the signed sweep (qpel MV deltas live inside); (2) emitted bit-length == the probe's gbits() cost mirror (2*blen(zze+1)-1) for EVERY value -- the RD costing and the wire can never drift; (3) packed-stream decode in order with exact end position. Rides nx_gate_verdict (migrate-on-touch law D001). license_tier: ORIGINAL expect_exit: 0

dependencies 2 imports · 0 importers

nx_vcodec.nx nx_gate_verdict.nx nx_vcodec_golomb_gate.nx

imports: nx_vcodec.nxnx_gate_verdict.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main gv_head gv_puts sys_write gv_ctr sys_mmap vc_gput ve_zze ve_blen nx_bw_put blg zzg vc_gget nx_br_get gv_check gv_puts ↻ gv_verdict gv_puts ↻ gv_num sys_mmap ↻ sys_write ↻ sys_munmap gv_journal sys_openat_append sys_mmap ↻ gv_catn sys_mmap ↻ sys_munmap ↻ sys_now_realtime_sec sys_mmap ↻ sys_clock_gettime_real gv_cat sys_write ↻ sys_close sys_munmap ↻

structs

none

consts

none

functions

9func zzg(v: i64) -> i64 { if v < 0 { return ((0 - v) << 1) - 1 } return v << 1 }
called by 1: main
10func blg(z: i64) -> i64 { var n: i64 = 0; var x: i64 = z; while x > 0 { n = n + 1; x = x >> 1 } return n }
called by 1: main
12func main() -> i64