From 00c1b3ff2d80d84fef71bb6208110dedbbd95fc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Fri, 4 Sep 2026 14:05:28 +0300 Subject: [PATCH] test(av1): enumerate the superblock-root partition alphabet against its arms The key-frame superblock root's `match part` carries the refusal "a superblock-level partition value outside PARTITION_NONE..PARTITION_VERT_4" in its fallback arm. `part` is either a `partition_w64` symbol (ten values, `symbol` cannot return more) or, at a frame edge, one of the three gathered outcomes HORZ/VERT/SPLIT -- all inside that same alphabet. The existing arm enumerator already walks matches keyed by their own fallback string, so this is one entry: the match has an arm for all ten values, and the refusal is dead. Mutation-checked (dropping PARTITION_VERT_4 from its arm fails the test by name). --- crates/ec-av1/src/refusal_inventory.rs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/crates/ec-av1/src/refusal_inventory.rs b/crates/ec-av1/src/refusal_inventory.rs index 08c8c727..5337ce49 100644 --- a/crates/ec-av1/src/refusal_inventory.rs +++ b/crates/ec-av1/src/refusal_inventory.rs @@ -235,6 +235,12 @@ const PROVEN: &[(&str, &str)] = &[ "a 128x128 superblock partition value outside the 8-symbol alphabet", "every_partition_value_of_an_enumerated_alphabet_has_an_arm", ), + // lane-t900 r24, enumeration: the key-frame superblock root's own `match` + // has an arm for all ten `partition_w64` values. + ( + "a superblock-level partition value outside PARTITION_NONE..PARTITION_VERT_4", + "every_partition_value_of_an_enumerated_alphabet_has_an_arm", + ), ( "a bit depth of 12 (this decoder is gated at 8 and 10 only: warp/MC/wiener rounding shifts change at 12-bit and no 12-bit gate exists)", "a_twelve_bit_sequence_header_is_refused_by_name", @@ -456,10 +462,18 @@ mod tests { "PARTITION_VERT_4", ]; // (the refusal in the fallback arm, the alphabet its CDF codes) - let blocks: [(&str, usize); 3] = [ + let blocks: [(&str, usize); 4] = [ ("a 32x32 partition type this decoder does not code", crate::cdf::PARTITION_W32[0].len() - 1), ("an INTER 32x32 partition type this decoder does not code", crate::cdf::PARTITION_W32[0].len() - 1), ("a 128x128 superblock partition value outside the 8-symbol alphabet", crate::cdf::PARTITION_W128[0].len() - 1), + // lane-t900 r24: the key-frame superblock root. Its `part` is + // either a `partition_w64` symbol or, at a frame edge, one of the + // three gathered outcomes (PARTITION_HORZ, PARTITION_VERT, + // PARTITION_SPLIT) -- all inside the same ten-value alphabet. + ( + "a superblock-level partition value outside PARTITION_NONE..PARTITION_VERT_4", + crate::cdf::PARTITION_W64[0].len() - 1, + ), ]; // A pattern's own tokens, plus every value of an inclusive range // (`p if (PARTITION_HORZ_A..=PARTITION_VERT_B).contains(&p)` is four