forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to lanes/av1txsearch.report.mdClear filter

2026-09-29

gate_coverage: settle the enable-tx-size-search floor by binding format!-built flagsAhmet Kaan Gümüş · 9792668
gate_coverage: settle the enable-tx-size-search floor by binding format!-built flags

r3 left the entry as a FLOOR: 9 gate bodies build --enable-tx-size-search into
a format! variable that neither flags_in nor settings_in can see, so the count
was unclassified in an unknown direction. This settles it by measurement.

The templates: 10 sites, not 9 -- one segment spells the flag BOTH literally
and through a template, so the literal reader filed it and r3 never saw it.
Four binding shapes cover all ten (for-var loop, attempt-indexed let, tuple
loop read at the var's COLUMN, u8::from over a bool arm table). Every one
resolves to BOTH 0 and 1 from the gate's own text; not one is genuinely
runtime-dependent on an unknown argument.

spelling_values merges literal spellings with resolved template values;
bound_values does the resolution; resolved_on_state replaces
default_on_state, which is deleted rather than shimmed. Three details are
load-bearing and commented at the site: quoted-only for `let` bindings (the
`attempt % 2` in the initializer is not a flag value), position-aware for
tuple loops (the bit-depth column is not a flag value), and typed-literal
suffixes (0usize/8u8 are single tokens; 10u8 is still rejected).

Counts, from print_tx_size_search_census, which ASSERTS unresolvable == 0 so
the floor cannot come back: over 230 census-selected bodies, =0 only 86,
=1 only 13, both 17, unresolvable 0, not named 114. Thirty gates positively
enable the tool against the fifteen the literal reader saw. The 114 that leave
the flag off stay unknown, not exercised.

RED-BEFORE, both directions, reverted (diff clean after revert; 12 tests
green). Disabling the template needle reds the resolver test (the palette
gate resolves to {} instead of {0,1}) AND the census test (unresolvable 9;
nine both-value gates silently become "not named"). The same test also
mutates the GATE side for three template shapes and asserts the resolved set
moves. Disabling the literal needle instead reds four: both
never_on_*_matches_the_gate_recipes, the census test (=0 only 0, =1 only 0),
and the resolver test's sweep over every literal `=1` gate.

THE ENTRY IS RETIRED on an arrival assert, not on the spelling.
a_real_aomenc_stream_with_a_1d_tx_class_on_a_rect_transform_decodes_pixel_exact
spells =1 and hard-asserts compared_tx_depths > 0; tx_depth is read ONLY under
the frame header's tx_mode_select bit (spec 5.11.16), so the counter IS the
parsed behaviour. Measured run of that gate: 12 pixel-exact decodes, 0 named
refusals, 6 of 12 at 10-bit, 219 rect coefficient TUs, flag arrival tx depths
53. The tx_select_inter_gate twins omit the flag deliberately and assert
txfm_split_hits moved (spec 5.11.17 var-tx tree read).

gate_coverage.rs only: stream.rs and every decoder file are byte-identical to
1aaf7e0b, no gate, counter or fixture touched.