nx_uxf_mp4box_gate.nx
buildroot/runtime/nx_uxf_mp4box_gate.nx
about
nx_uxf_mp4box_gate.nx -- the D001 MIGRATION of nx_uxf_mp4box_test onto nx_gate_verdict (2026-09-06).
IT DRIVES THE EXTRACTED LIB, NOT A THIRD COPY. nx_uxf_mp4box_test carried its own mp4_w32, mp4_r32,
mp4_4cc, mp4_box_begin and mp4_box_end, which are the same primitives now shipping in nx_uxf_remux.nx as
uxr_w32, uxr_r32, uxr_4cc, uxr_box_begin and uxr_box_end. Pointing the teeth at the lib keeps ONE MP4 box
writer in the estate. The 4cc comparison is done here with the lib's own uxr_bytes_eq rather than by adding
a helper to a lib that is already bite-proven, because editing a proven lib to satisfy a test invalidates
the proof for no capability gain.
ALL FOUR ORIGINAL TEETH PRESERVED IN PREDICATE, split where the original bundled several claims into one
boolean: the walk's ALIGNMENT and its BOX COUNT are separate teeth, and each of the three expected box types
is its own tooth, so a failure names which box is wrong rather than reporting that the tree is wrong.
license_tier: ORIGINAL No hw writes (Rule 26).
dependencies 3 imports · 0 importers
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
structs
| none |
consts
| 18 | const UM_OUT: i64 = 65536 |
| 19 | const UM_TAG: i64 = 8 |
| 20 | const UM_WANT_FTYP_SIZE: i64 = 24 // 8 header + isom + minor + isom + mp41 |
| 21 | const UM_WANT_TOPLEVEL: i64 = 2 // ftyp and moov |
| 22 | const UM_MVHD_PAYLOAD: i64 = 100 |
| 23 | const UM_HDR: i64 = 8 |
| 24 | const UM_TYPE_OFF: i64 = 4 // the 4cc type sits at box_start+4, not box_start |
| 25 | const UM_HIGHBYTE_KAT: i64 = 16909060 // 0x01020304 -- FOUR DISTINCT NON-ZERO BYTES. Every box size this |
functions
| 34 | func um_walk_count(buf: *u8, n: i64, out_count: *i64) -> i64 |
| 48 | func main(argc: i64, argv: *i64) -> i64 |