code wiki / (root) / nx_uxf_remux_gate.nx

nx_uxf_remux_gate.nx

buildroot/runtime/nx_uxf_remux_gate.nx

4748 B84 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic uxf
docsdependenciesstructsconstsfunctions

about

nx_uxf_remux_gate.nx -- FM4: drives the EXTRACTED uxf_remux_frame and proves the rewrap is lossless. This is both the D001 migration of nx_uxf_remux_test and the proof that the extraction is faithful: the five original teeth are preserved in order and predicate, now asserted against the CALLABLE entry point rather than against logic inlined in a test. Three refusal teeth are added because the extraction introduced boundary checks, and a deny path that has never been shown to fire is not a guard. The positive control is T1 to T5 themselves: a well-formed element MUST be accepted, so a function that refused everything would fail them. license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 3 imports · 0 importers

nx_gate_verdict.nx nx_syscalls.nx nx_uxf_remux.nx nx_uxf_remux_gate.nx

imports: nx_gate_verdict.nxnx_syscalls.nxnx_uxf_remux.nx

imported by: nobody (leaf or entry point)

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

main gv_ctr sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ gv_head gv_puts sys_write ↻ sys_mmap ↻ uxf_remux_frame sys_mmap ↻ uxr_read_id uxr_vint_len uxr_read_size uxr_vint_len ↻ uxr_box_begin uxr_w32 uxr_4cc uxr_4cc ↻ uxr_w32 ↻ uxr_box_end uxr_w32 ↻ uxr_copy uxf_remux_src_off sys_mmap ↻ uxr_read_id ↻ uxr_read_size ↻ gv_check

structs

none

consts

14const URG_INBUF: i64 = 64
15const URG_OUTBUF: i64 = 65536
16const URG_TINYCAP: i64 = 16 // deliberately too small to hold the rewrap
17const URG_WANT_FRAMESIZE: i64 = 8
18const URG_WANT_ID: i64 = 0xA3
19const URG_SAMPLECOUNT: i64 = 1

functions

21func main(argc: i64, argv: *i64) -> i64