diff --git a/.gitignore b/.gitignore index 3715b58d..bdb79f65 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,6 @@ scripts/aac-tables/sbr-cache.json .cache/ lanes/wedge_dump /graphify-out + +# testcut p2 av1s per-test coverage (214 MB, local only) +lanes/testcut/p2-av1stream.cov/ diff --git a/lanes/testcut/p2-av1stream.heavy.ord.tsv b/lanes/testcut/p2-av1stream.heavy.ord.tsv new file mode 100644 index 00000000..a4a99f61 --- /dev/null +++ b/lanes/testcut/p2-av1stream.heavy.ord.tsv @@ -0,0 +1,105 @@ +1 stream::tests::t05::a_real_aomenc_square_only_inter_sequence_with_a_64x64_intra_superblock_decodes_pixel_exact +2 stream::tests::t05::a_real_aomenc_inter_sequence_with_temporal_mv_candidates_decodes_pixel_exact +3 stream::tests::t05::a_real_aomenc_inter_sequence_with_superblock_level_ab_partitions_decodes_pixel_exact +4 stream::tests::t05::a_real_aomenc_inter_sequence_with_intra_16x4_strips_in_1to4_partitions_decodes_pixel_exact +5 stream::tests::t05::a_real_aomenc_inter_sequence_with_a_coded_rectangular_residual_decodes_pixel_exact +6 stream::tests::t06::a_real_aomenc_stream_with_interintra_wedge_decodes_pixel_exact +7 stream::tests::t05::a_real_aomenc_inter_sequence_with_a_16_level_rect_leaf_decodes_pixel_exact +8 stream::tests::t04::a_real_aomenc_10bit_inter_sequence_with_an_angle_delta_8x8_intra_leaf_decodes_pixel_exact +9 stream::tests::t09::a_real_aomenc_stream_with_a_coded_strip_whose_chroma_is_a_4to1_or_sub8_rect_decodes_pixel_exact +10 stream::tests::t05::a_real_aomenc_inter_sequence_with_a_sub8x8_inter_split_decodes_pixel_exact +11 stream::tests::t06::a_real_aomenc_stream_with_warped_motion_refuses_or_matches +12 stream::tests::t06::a_real_aomenc_superres_key_frame_sequence_decodes_pixel_exact +13 stream::tests::t04::a_real_aomenc_inter_sequence_with_an_angle_delta_8x8_intra_leaf_decodes_pixel_exact +14 stream::tests::t04::real_aomenc_1to4_streams_decode_pixel_exact_and_rect_vartx_leaves_fire_before_a_named_refusal +15 stream::tests::t05::a_real_aomenc_inter_sequence_with_16x16_level_ab_partitions_decodes_pixel_exact +16 stream::tests::t05::a_pinned_444_inter_stream_chroma_units_inherit_their_own_quadrants_tx_type +17 stream::tests::t05::a_pinned_444_rect_inter_stream_resolves_each_chroma_unit_from_its_own_luma_leaf +18 stream::tests::t05::a_pinned_rect_stream_with_a_64x64_intra_block_in_an_inter_frame_decodes_pixel_exact +19 stream::tests::t06::a_real_aomenc_stream_with_masked_compound_decodes_pixel_exact +20 stream::tests::t06::a_real_aomenc_stream_with_a_diffwtd_compound_64x64_block_decodes_pixel_exact +21 stream::tests::t06::a_real_aomenc_stream_with_a_coded_rect_strip_below_16x16_decodes_pixel_exact +22 stream::tests::t06::a_real_aomenc_stream_with_a_rectangular_compound_wedge_decodes_pixel_exact +23 stream::tests::t04::a_real_aomenc_inter_sequence_with_a_superblock_level_rect_partition_decodes_pixel_exact +24 stream::tests::t09::a_real_aomenc_stream_with_a_superblock_level_horz_vert_partition_and_delta_q_decodes_pixel_exact +25 stream::tests::t06::a_real_aomenc_stream_with_free_partitions_decodes_pixel_exact +26 stream::tests::t08::a_real_aomenc_stream_with_filter_intra_on_a_sub16_horz_vert_strip_decodes_pixel_exact +27 stream::tests::t07::a_real_aomenc_stream_with_delta_q_and_delta_lf_decodes_pixel_exact +28 stream::tests::t05::a_real_aomenc_inter_sequence_with_deblocking_decodes_pixel_exact +29 stream::tests::t09::a_real_aomenc_stream_with_filter_intra_on_a_32_level_1to4_strip_decodes_pixel_exact +30 stream::tests::t05::a_real_aomenc_stream_with_compound_references_decodes_pixel_exact +31 stream::tests::t04::a_real_aomenc_inter_sequence_with_32x32_level_1to4_strips_codes_their_rect_residual +32 stream::tests::t08::a_real_aomenc_stream_with_filter_intra_on_a_horz_vert_strip_decodes_pixel_exact +33 stream::tests::t07::a_real_aomenc_tiny_frame_size_sweep_decodes_pixel_exact +34 stream::tests::t09::the_chroma_rect_gates_excluded_seed_46_decodes_pixel_exact +35 stream::tests::t08::a_real_aomenc_10bit_filter_intra_on_a_sub16_strip_decodes_pixel_exact +36 stream::tests::t05::a_real_aomenc_inter_sequence_with_16x16_level_1to4_partitions_decodes_pixel_exact +37 stream::tests::t04::a_real_aomenc_stream_with_rect_screen_content_decodes_pixel_exact +38 stream::tests::t09::a_real_aomenc_stream_with_a_skipped_8x8_intra_leaf_whose_tx_split_10bit_decodes_pixel_exact +39 stream::tests::t08::a_real_aomenc_128x128_none_inter_blocks_coded_chroma_per_mu_chunk_decodes_pixel_exact +40 stream::tests::t09::a_real_aomenc_stream_with_a_32x32_level_1to4_partition_decodes_pixel_exact +41 stream::tests::t06::a_real_aomenc_superres_stream_with_compound_obmc_and_interintra_decodes_pixel_exact +42 stream::tests::t08::a_frame_edge_straddling_band_decodes_pixel_exact +43 stream::tests::t08::a_pinned_aomenc_16x8_strip_reads_its_use_filter_intra_flag +44 stream::tests::t05::a_real_aomenc_inter_sequence_with_forward_keyframes_and_temporal_mvs_decodes_pixel_exact +45 stream::tests::t04::a_real_aomenc_inter_sequence_with_an_intra_rect_strip_decodes_pixel_exact_10bit +46 stream::tests::t08::a_real_aomenc_stream_with_a_superblock_level_ab_partition_decodes_pixel_exact +47 stream::tests::t04::a_real_aomenc_inter_sequence_with_an_intra_rect_strip_decodes_pixel_exact +48 stream::tests::t03::a_real_aomenc_palette_stream_with_8x8_leaves_decodes_pixel_exact +49 stream::tests::t06::a_real_aomenc_stream_with_mandelbrot_fires_the_vert_b_partition_arm +50 stream::tests::t06::a_real_aomenc_stream_with_interintra_decodes_pixel_exact +51 stream::tests::t08::a_real_aomenc_stream_with_a_superblock_level_horz_vert_partition_decodes_pixel_exact +52 stream::tests::t04::a_real_aomenc_stream_with_rect_palette_decodes_pixel_exact +53 stream::tests::t08::a_real_aomenc_stream_with_128x128_superblocks_decodes_pixel_exact +54 stream::tests::t09::a_real_aomenc_band_stream_seed46_decodes_pixel_exact +55 stream::tests::t08::a_real_aomenc_sb128_intra_rect_block_decodes_pixel_exact +56 stream::tests::t08::a_32x32_frame_edge_rect_partition_with_a_flat_band_decodes_pixel_exact +57 stream::tests::t08::a_real_aomenc_stream_with_a_split_transform_superblock_strip_decodes_pixel_exact +58 stream::tests::t06::a_real_compound_global_warp_12bit_stream_decodes_pixel_exact +59 stream::tests::t06::a_real_compound_global_warp_stream_decodes_pixel_exact +60 stream::tests::t09::a_real_aomenc_stream_with_a_skipped_8x8_intra_leaf_whose_tx_split_decodes_pixel_exact +61 stream::tests::t04::a_real_aomenc_10bit_partial_bottom_stripe_restoration_decodes_pixel_exact +62 stream::tests::t09::a_real_aomenc_stream_with_a_16_level_1to4_partition_decodes_pixel_exact +63 stream::tests::t07::a_real_aomenc_stream_with_restoration_reads_lr_symbols_correctly +64 stream::tests::t08::a_real_aomenc_sb128_gathered_edge_horz_partition_decodes_pixel_exact +65 stream::tests::t08::a_real_aomenc_stream_with_a_32x32_frame_edge_rect_partition_decodes_pixel_exact +66 stream::tests::t08::a_real_aomenc_stream_with_a_split_transform_horz_vert_strip_decodes_pixel_exact +67 stream::tests::t06::a_real_compound_global_warp_10bit_stream_decodes_pixel_exact +68 stream::tests::t06::a_real_force_integer_mv_warp_10bit_stream_decodes_pixel_exact +69 stream::tests::t08::a_real_aomenc_sb128_ab_partition_at_the_128_root_decodes_pixel_exact +70 stream::tests::t04::a_superres_all_tools_sb128_stream_decodes_pixel_exact +71 stream::tests::t04::a_real_stream_reconstructs_identically_with_one_and_four_recon_threads +72 stream::tests::t06::a_real_compound_global_warp_12bit_8x8_leaf_stream_decodes_pixel_exact +73 stream::tests::t07::a_real_aomenc_stream_with_variance_aq_segmentation_decodes_pixel_exact +74 stream::tests::t04::a_real_aomenc_inter_frame_with_a_64x64_intra_block_reads_the_no_cfl_uv_alphabet +75 stream::tests::t08::a_422_muchunk_compound_128root_pinned_stream_reaches_its_unit_walk +76 stream::tests::t07::a_real_aomenc_stream_with_cdef_decodes_pixel_exact +77 stream::tests::t09::the_frame_the_caller_receives_carries_no_unwritten_plane_sample +78 stream::tests::t09::a_real_aomenc_10bit_screen_inter_sequence_codes_palette_syntax_on_rect_intra_strips +79 stream::tests::t04::a_real_stream_filters_identically_with_one_and_four_filter_threads +80 stream::tests::t10::a_real_aomenc_inter_sequence_with_intra_sub8x8_leaves_decodes_pixel_exact +81 stream::tests::t08::a_real_aomenc_stream_with_a_1d_tx_class_on_a_rect_transform_decodes_pixel_exact +82 stream::tests::t08::a_422_muchunk_iis_128root_grad128_comp_stream_is_exact_and_reaches_its_unit_walk +83 stream::tests::t09::a_real_aomenc_stream_whose_frame_edge_partition_bit_is_horz_decodes_pixel_exact +84 stream::tests::t09::a_real_aomenc_inter_sequence_with_an_intra_1to4_strip_decodes_pixel_exact_10bit +85 stream::tests::t04::a_real_aomenc_10bit_obmc_over_1to4_strip_neighbours_decodes_pixel_exact +86 stream::tests::t09::the_two_10bit_film_pins_match_aomdec_on_every_decode_order_frame +87 stream::tests::t09::a_real_aomenc_multi_tile_inter_10bit_stream_decodes_pixel_exact +88 stream::tests::t08::a_real_aomenc_inter_128x128_none_root_decodes_pixel_exact +89 stream::tests::t07::a_real_aomenc_both_axes_cut_corner_inter_frames_decode_pixel_exact +90 stream::tests::t08::a_real_aomenc_key_frame_with_a_128x128_none_partition_decodes_pixel_exact +91 stream::tests::t07::a_real_aomenc_compound_mv_stack_across_two_tile_columns_decodes_pixel_exact +92 stream::tests::t09::a_real_aomenc_inter_sequence_with_a_split_transform_intra_strip_decodes_pixel_exact +93 stream::tests::t06::a_real_force_integer_mv_warp_stream_decodes_pixel_exact +94 stream::tests::t08::a_real_aomenc_intra_stream_with_tx_size_search_and_chroma_decodes_pixel_exact +95 stream::tests::t09::a_real_aomenc_inter_sequence_with_an_intra_1to4_strip_decodes_pixel_exact +96 stream::tests::t10::a_420_lossless_rect_chroma_walk_is_bounded_by_the_chroma_plane +97 stream::tests::t06::a_real_aomenc_stream_with_ab_partitions_decodes_pixel_exact +98 stream::tests::t01::a_real_aomenc_128x128_superblock_stream_decodes_pixel_exact +99 stream::tests::t01::a_real_aomenc_mixed_lossless_segment_frame_decodes_sample_exact +100 stream::tests::t09::the_grained_picture_the_caller_receives_carries_no_unwritten_plane_sample +101 stream::tests::t01::a_real_obmc_stream_reads_a_recorded_switchable_filter_for_every_neighbour +102 stream::tests::t03::a_real_aomenc_10bit_stream_with_a_rect_transform_decodes_pixel_exact +103 stream::tests::t01::a_real_aomenc_inter_frame_edge_half_strip_decodes_pixel_exact +104 stream::tests::t07::a_real_aomenc_compound_mv_stack_with_global_motion_decodes_pixel_exact +105 stream::tests::t06::a_real_aomenc_10bit_stream_with_onesided_compound_decodes_pixel_exact diff --git a/lanes/testcut/p2-av1stream.heavy.tsv b/lanes/testcut/p2-av1stream.heavy.tsv new file mode 100644 index 00000000..48195f9e --- /dev/null +++ b/lanes/testcut/p2-av1stream.heavy.tsv @@ -0,0 +1,105 @@ +stream::tests::t05::a_real_aomenc_square_only_inter_sequence_with_a_64x64_intra_superblock_decodes_pixel_exact 264.940091 +stream::tests::t05::a_real_aomenc_inter_sequence_with_temporal_mv_candidates_decodes_pixel_exact 260.357021 +stream::tests::t05::a_real_aomenc_inter_sequence_with_superblock_level_ab_partitions_decodes_pixel_exact 258.803079 +stream::tests::t05::a_real_aomenc_inter_sequence_with_intra_16x4_strips_in_1to4_partitions_decodes_pixel_exact 218.634469 +stream::tests::t05::a_real_aomenc_inter_sequence_with_a_coded_rectangular_residual_decodes_pixel_exact 175.886448 +stream::tests::t06::a_real_aomenc_stream_with_interintra_wedge_decodes_pixel_exact 166.262468 +stream::tests::t05::a_real_aomenc_inter_sequence_with_a_16_level_rect_leaf_decodes_pixel_exact 157.207205 +stream::tests::t04::a_real_aomenc_10bit_inter_sequence_with_an_angle_delta_8x8_intra_leaf_decodes_pixel_exact 148.906127 +stream::tests::t09::a_real_aomenc_stream_with_a_coded_strip_whose_chroma_is_a_4to1_or_sub8_rect_decodes_pixel_exact 145.576473 +stream::tests::t05::a_real_aomenc_inter_sequence_with_a_sub8x8_inter_split_decodes_pixel_exact 144.779128 +stream::tests::t06::a_real_aomenc_stream_with_warped_motion_refuses_or_matches 129.142655 +stream::tests::t06::a_real_aomenc_superres_key_frame_sequence_decodes_pixel_exact 128.199731 +stream::tests::t04::a_real_aomenc_inter_sequence_with_an_angle_delta_8x8_intra_leaf_decodes_pixel_exact 126.447797 +stream::tests::t04::real_aomenc_1to4_streams_decode_pixel_exact_and_rect_vartx_leaves_fire_before_a_named_refusal 124.687742 +stream::tests::t05::a_real_aomenc_inter_sequence_with_16x16_level_ab_partitions_decodes_pixel_exact 121.296509 +stream::tests::t05::a_pinned_444_inter_stream_chroma_units_inherit_their_own_quadrants_tx_type 116.584203 +stream::tests::t05::a_pinned_444_rect_inter_stream_resolves_each_chroma_unit_from_its_own_luma_leaf 116.069739 +stream::tests::t05::a_pinned_rect_stream_with_a_64x64_intra_block_in_an_inter_frame_decodes_pixel_exact 115.764303 +stream::tests::t06::a_real_aomenc_stream_with_masked_compound_decodes_pixel_exact 109.221110 +stream::tests::t06::a_real_aomenc_stream_with_a_diffwtd_compound_64x64_block_decodes_pixel_exact 104.052926 +stream::tests::t06::a_real_aomenc_stream_with_a_coded_rect_strip_below_16x16_decodes_pixel_exact 98.472234 +stream::tests::t06::a_real_aomenc_stream_with_a_rectangular_compound_wedge_decodes_pixel_exact 95.779028 +stream::tests::t04::a_real_aomenc_inter_sequence_with_a_superblock_level_rect_partition_decodes_pixel_exact 95.208793 +stream::tests::t09::a_real_aomenc_stream_with_a_superblock_level_horz_vert_partition_and_delta_q_decodes_pixel_exact 92.727331 +stream::tests::t06::a_real_aomenc_stream_with_free_partitions_decodes_pixel_exact 91.957481 +stream::tests::t08::a_real_aomenc_stream_with_filter_intra_on_a_sub16_horz_vert_strip_decodes_pixel_exact 91.070479 +stream::tests::t07::a_real_aomenc_stream_with_delta_q_and_delta_lf_decodes_pixel_exact 89.812516 +stream::tests::t05::a_real_aomenc_inter_sequence_with_deblocking_decodes_pixel_exact 86.592866 +stream::tests::t09::a_real_aomenc_stream_with_filter_intra_on_a_32_level_1to4_strip_decodes_pixel_exact 84.898134 +stream::tests::t05::a_real_aomenc_stream_with_compound_references_decodes_pixel_exact 83.330642 +stream::tests::t04::a_real_aomenc_inter_sequence_with_32x32_level_1to4_strips_codes_their_rect_residual 77.469090 +stream::tests::t08::a_real_aomenc_stream_with_filter_intra_on_a_horz_vert_strip_decodes_pixel_exact 71.309770 +stream::tests::t07::a_real_aomenc_tiny_frame_size_sweep_decodes_pixel_exact 69.473222 +stream::tests::t09::the_chroma_rect_gates_excluded_seed_46_decodes_pixel_exact 68.778539 +stream::tests::t08::a_real_aomenc_10bit_filter_intra_on_a_sub16_strip_decodes_pixel_exact 66.456050 +stream::tests::t05::a_real_aomenc_inter_sequence_with_16x16_level_1to4_partitions_decodes_pixel_exact 62.262815 +stream::tests::t04::a_real_aomenc_stream_with_rect_screen_content_decodes_pixel_exact 61.774027 +stream::tests::t09::a_real_aomenc_stream_with_a_skipped_8x8_intra_leaf_whose_tx_split_10bit_decodes_pixel_exact 61.502668 +stream::tests::t08::a_real_aomenc_128x128_none_inter_blocks_coded_chroma_per_mu_chunk_decodes_pixel_exact 59.473242 +stream::tests::t09::a_real_aomenc_stream_with_a_32x32_level_1to4_partition_decodes_pixel_exact 58.776899 +stream::tests::t06::a_real_aomenc_superres_stream_with_compound_obmc_and_interintra_decodes_pixel_exact 57.686264 +stream::tests::t08::a_frame_edge_straddling_band_decodes_pixel_exact 57.188185 +stream::tests::t08::a_pinned_aomenc_16x8_strip_reads_its_use_filter_intra_flag 57.057437 +stream::tests::t05::a_real_aomenc_inter_sequence_with_forward_keyframes_and_temporal_mvs_decodes_pixel_exact 54.851799 +stream::tests::t04::a_real_aomenc_inter_sequence_with_an_intra_rect_strip_decodes_pixel_exact_10bit 54.763863 +stream::tests::t08::a_real_aomenc_stream_with_a_superblock_level_ab_partition_decodes_pixel_exact 54.635038 +stream::tests::t04::a_real_aomenc_inter_sequence_with_an_intra_rect_strip_decodes_pixel_exact 53.946861 +stream::tests::t03::a_real_aomenc_palette_stream_with_8x8_leaves_decodes_pixel_exact 53.510149 +stream::tests::t06::a_real_aomenc_stream_with_mandelbrot_fires_the_vert_b_partition_arm 53.501221 +stream::tests::t06::a_real_aomenc_stream_with_interintra_decodes_pixel_exact 52.757679 +stream::tests::t08::a_real_aomenc_stream_with_a_superblock_level_horz_vert_partition_decodes_pixel_exact 52.049074 +stream::tests::t04::a_real_aomenc_stream_with_rect_palette_decodes_pixel_exact 49.585261 +stream::tests::t08::a_real_aomenc_stream_with_128x128_superblocks_decodes_pixel_exact 47.802051 +stream::tests::t09::a_real_aomenc_band_stream_seed46_decodes_pixel_exact 47.251855 +stream::tests::t08::a_real_aomenc_sb128_intra_rect_block_decodes_pixel_exact 46.721707 +stream::tests::t08::a_32x32_frame_edge_rect_partition_with_a_flat_band_decodes_pixel_exact 45.999041 +stream::tests::t08::a_real_aomenc_stream_with_a_split_transform_superblock_strip_decodes_pixel_exact 45.320857 +stream::tests::t06::a_real_compound_global_warp_12bit_stream_decodes_pixel_exact 45.043941 +stream::tests::t06::a_real_compound_global_warp_stream_decodes_pixel_exact 44.768265 +stream::tests::t09::a_real_aomenc_stream_with_a_skipped_8x8_intra_leaf_whose_tx_split_decodes_pixel_exact 44.515127 +stream::tests::t04::a_real_aomenc_10bit_partial_bottom_stripe_restoration_decodes_pixel_exact 44.453907 +stream::tests::t09::a_real_aomenc_stream_with_a_16_level_1to4_partition_decodes_pixel_exact 44.300909 +stream::tests::t07::a_real_aomenc_stream_with_restoration_reads_lr_symbols_correctly 43.574494 +stream::tests::t08::a_real_aomenc_sb128_gathered_edge_horz_partition_decodes_pixel_exact 42.258867 +stream::tests::t08::a_real_aomenc_stream_with_a_32x32_frame_edge_rect_partition_decodes_pixel_exact 41.588543 +stream::tests::t08::a_real_aomenc_stream_with_a_split_transform_horz_vert_strip_decodes_pixel_exact 40.819730 +stream::tests::t06::a_real_compound_global_warp_10bit_stream_decodes_pixel_exact 38.833303 +stream::tests::t06::a_real_force_integer_mv_warp_10bit_stream_decodes_pixel_exact 38.581289 +stream::tests::t08::a_real_aomenc_sb128_ab_partition_at_the_128_root_decodes_pixel_exact 37.019724 +stream::tests::t04::a_superres_all_tools_sb128_stream_decodes_pixel_exact 36.677306 +stream::tests::t04::a_real_stream_reconstructs_identically_with_one_and_four_recon_threads 36.531807 +stream::tests::t06::a_real_compound_global_warp_12bit_8x8_leaf_stream_decodes_pixel_exact 35.994635 +stream::tests::t07::a_real_aomenc_stream_with_variance_aq_segmentation_decodes_pixel_exact 35.874673 +stream::tests::t04::a_real_aomenc_inter_frame_with_a_64x64_intra_block_reads_the_no_cfl_uv_alphabet 35.404144 +stream::tests::t08::a_422_muchunk_compound_128root_pinned_stream_reaches_its_unit_walk 33.237113 +stream::tests::t07::a_real_aomenc_stream_with_cdef_decodes_pixel_exact 32.407258 +stream::tests::t09::the_frame_the_caller_receives_carries_no_unwritten_plane_sample 31.451651 +stream::tests::t09::a_real_aomenc_10bit_screen_inter_sequence_codes_palette_syntax_on_rect_intra_strips 31.127508 +stream::tests::t04::a_real_stream_filters_identically_with_one_and_four_filter_threads 30.401638 +stream::tests::t10::a_real_aomenc_inter_sequence_with_intra_sub8x8_leaves_decodes_pixel_exact 29.343103 +stream::tests::t08::a_real_aomenc_stream_with_a_1d_tx_class_on_a_rect_transform_decodes_pixel_exact 27.661633 +stream::tests::t08::a_422_muchunk_iis_128root_grad128_comp_stream_is_exact_and_reaches_its_unit_walk 27.363240 +stream::tests::t09::a_real_aomenc_stream_whose_frame_edge_partition_bit_is_horz_decodes_pixel_exact 27.339954 +stream::tests::t09::a_real_aomenc_inter_sequence_with_an_intra_1to4_strip_decodes_pixel_exact_10bit 26.341261 +stream::tests::t04::a_real_aomenc_10bit_obmc_over_1to4_strip_neighbours_decodes_pixel_exact 26.022744 +stream::tests::t09::the_two_10bit_film_pins_match_aomdec_on_every_decode_order_frame 26.009668 +stream::tests::t09::a_real_aomenc_multi_tile_inter_10bit_stream_decodes_pixel_exact 25.509813 +stream::tests::t08::a_real_aomenc_inter_128x128_none_root_decodes_pixel_exact 24.952498 +stream::tests::t07::a_real_aomenc_both_axes_cut_corner_inter_frames_decode_pixel_exact 24.475722 +stream::tests::t08::a_real_aomenc_key_frame_with_a_128x128_none_partition_decodes_pixel_exact 24.064822 +stream::tests::t07::a_real_aomenc_compound_mv_stack_across_two_tile_columns_decodes_pixel_exact 23.767956 +stream::tests::t09::a_real_aomenc_inter_sequence_with_a_split_transform_intra_strip_decodes_pixel_exact 23.053403 +stream::tests::t06::a_real_force_integer_mv_warp_stream_decodes_pixel_exact 22.843460 +stream::tests::t08::a_real_aomenc_intra_stream_with_tx_size_search_and_chroma_decodes_pixel_exact 22.546881 +stream::tests::t09::a_real_aomenc_inter_sequence_with_an_intra_1to4_strip_decodes_pixel_exact 22.478690 +stream::tests::t10::a_420_lossless_rect_chroma_walk_is_bounded_by_the_chroma_plane 22.406941 +stream::tests::t06::a_real_aomenc_stream_with_ab_partitions_decodes_pixel_exact 21.522556 +stream::tests::t01::a_real_aomenc_128x128_superblock_stream_decodes_pixel_exact 21.488030 +stream::tests::t01::a_real_aomenc_mixed_lossless_segment_frame_decodes_sample_exact 21.471572 +stream::tests::t09::the_grained_picture_the_caller_receives_carries_no_unwritten_plane_sample 21.302185 +stream::tests::t01::a_real_obmc_stream_reads_a_recorded_switchable_filter_for_every_neighbour 21.092938 +stream::tests::t03::a_real_aomenc_10bit_stream_with_a_rect_transform_decodes_pixel_exact 20.715907 +stream::tests::t01::a_real_aomenc_inter_frame_edge_half_strip_decodes_pixel_exact 20.545250 +stream::tests::t07::a_real_aomenc_compound_mv_stack_with_global_motion_decodes_pixel_exact 20.412457 +stream::tests::t06::a_real_aomenc_10bit_stream_with_onesided_compound_decodes_pixel_exact 20.339690 diff --git a/lanes/testcut/p2-av1stream.heavy.txt b/lanes/testcut/p2-av1stream.heavy.txt new file mode 100644 index 00000000..37b75cff --- /dev/null +++ b/lanes/testcut/p2-av1stream.heavy.txt @@ -0,0 +1,105 @@ +stream::tests::t05::a_real_aomenc_square_only_inter_sequence_with_a_64x64_intra_superblock_decodes_pixel_exact +stream::tests::t05::a_real_aomenc_inter_sequence_with_temporal_mv_candidates_decodes_pixel_exact +stream::tests::t05::a_real_aomenc_inter_sequence_with_superblock_level_ab_partitions_decodes_pixel_exact +stream::tests::t05::a_real_aomenc_inter_sequence_with_intra_16x4_strips_in_1to4_partitions_decodes_pixel_exact +stream::tests::t05::a_real_aomenc_inter_sequence_with_a_coded_rectangular_residual_decodes_pixel_exact +stream::tests::t06::a_real_aomenc_stream_with_interintra_wedge_decodes_pixel_exact +stream::tests::t05::a_real_aomenc_inter_sequence_with_a_16_level_rect_leaf_decodes_pixel_exact +stream::tests::t04::a_real_aomenc_10bit_inter_sequence_with_an_angle_delta_8x8_intra_leaf_decodes_pixel_exact +stream::tests::t09::a_real_aomenc_stream_with_a_coded_strip_whose_chroma_is_a_4to1_or_sub8_rect_decodes_pixel_exact +stream::tests::t05::a_real_aomenc_inter_sequence_with_a_sub8x8_inter_split_decodes_pixel_exact +stream::tests::t06::a_real_aomenc_stream_with_warped_motion_refuses_or_matches +stream::tests::t06::a_real_aomenc_superres_key_frame_sequence_decodes_pixel_exact +stream::tests::t04::a_real_aomenc_inter_sequence_with_an_angle_delta_8x8_intra_leaf_decodes_pixel_exact +stream::tests::t04::real_aomenc_1to4_streams_decode_pixel_exact_and_rect_vartx_leaves_fire_before_a_named_refusal +stream::tests::t05::a_real_aomenc_inter_sequence_with_16x16_level_ab_partitions_decodes_pixel_exact +stream::tests::t05::a_pinned_444_inter_stream_chroma_units_inherit_their_own_quadrants_tx_type +stream::tests::t05::a_pinned_444_rect_inter_stream_resolves_each_chroma_unit_from_its_own_luma_leaf +stream::tests::t05::a_pinned_rect_stream_with_a_64x64_intra_block_in_an_inter_frame_decodes_pixel_exact +stream::tests::t06::a_real_aomenc_stream_with_masked_compound_decodes_pixel_exact +stream::tests::t06::a_real_aomenc_stream_with_a_diffwtd_compound_64x64_block_decodes_pixel_exact +stream::tests::t06::a_real_aomenc_stream_with_a_coded_rect_strip_below_16x16_decodes_pixel_exact +stream::tests::t06::a_real_aomenc_stream_with_a_rectangular_compound_wedge_decodes_pixel_exact +stream::tests::t04::a_real_aomenc_inter_sequence_with_a_superblock_level_rect_partition_decodes_pixel_exact +stream::tests::t09::a_real_aomenc_stream_with_a_superblock_level_horz_vert_partition_and_delta_q_decodes_pixel_exact +stream::tests::t06::a_real_aomenc_stream_with_free_partitions_decodes_pixel_exact +stream::tests::t08::a_real_aomenc_stream_with_filter_intra_on_a_sub16_horz_vert_strip_decodes_pixel_exact +stream::tests::t07::a_real_aomenc_stream_with_delta_q_and_delta_lf_decodes_pixel_exact +stream::tests::t05::a_real_aomenc_inter_sequence_with_deblocking_decodes_pixel_exact +stream::tests::t09::a_real_aomenc_stream_with_filter_intra_on_a_32_level_1to4_strip_decodes_pixel_exact +stream::tests::t05::a_real_aomenc_stream_with_compound_references_decodes_pixel_exact +stream::tests::t04::a_real_aomenc_inter_sequence_with_32x32_level_1to4_strips_codes_their_rect_residual +stream::tests::t08::a_real_aomenc_stream_with_filter_intra_on_a_horz_vert_strip_decodes_pixel_exact +stream::tests::t07::a_real_aomenc_tiny_frame_size_sweep_decodes_pixel_exact +stream::tests::t09::the_chroma_rect_gates_excluded_seed_46_decodes_pixel_exact +stream::tests::t08::a_real_aomenc_10bit_filter_intra_on_a_sub16_strip_decodes_pixel_exact +stream::tests::t05::a_real_aomenc_inter_sequence_with_16x16_level_1to4_partitions_decodes_pixel_exact +stream::tests::t04::a_real_aomenc_stream_with_rect_screen_content_decodes_pixel_exact +stream::tests::t09::a_real_aomenc_stream_with_a_skipped_8x8_intra_leaf_whose_tx_split_10bit_decodes_pixel_exact +stream::tests::t08::a_real_aomenc_128x128_none_inter_blocks_coded_chroma_per_mu_chunk_decodes_pixel_exact +stream::tests::t09::a_real_aomenc_stream_with_a_32x32_level_1to4_partition_decodes_pixel_exact +stream::tests::t06::a_real_aomenc_superres_stream_with_compound_obmc_and_interintra_decodes_pixel_exact +stream::tests::t08::a_frame_edge_straddling_band_decodes_pixel_exact +stream::tests::t08::a_pinned_aomenc_16x8_strip_reads_its_use_filter_intra_flag +stream::tests::t05::a_real_aomenc_inter_sequence_with_forward_keyframes_and_temporal_mvs_decodes_pixel_exact +stream::tests::t04::a_real_aomenc_inter_sequence_with_an_intra_rect_strip_decodes_pixel_exact_10bit +stream::tests::t08::a_real_aomenc_stream_with_a_superblock_level_ab_partition_decodes_pixel_exact +stream::tests::t04::a_real_aomenc_inter_sequence_with_an_intra_rect_strip_decodes_pixel_exact +stream::tests::t03::a_real_aomenc_palette_stream_with_8x8_leaves_decodes_pixel_exact +stream::tests::t06::a_real_aomenc_stream_with_mandelbrot_fires_the_vert_b_partition_arm +stream::tests::t06::a_real_aomenc_stream_with_interintra_decodes_pixel_exact +stream::tests::t08::a_real_aomenc_stream_with_a_superblock_level_horz_vert_partition_decodes_pixel_exact +stream::tests::t04::a_real_aomenc_stream_with_rect_palette_decodes_pixel_exact +stream::tests::t08::a_real_aomenc_stream_with_128x128_superblocks_decodes_pixel_exact +stream::tests::t09::a_real_aomenc_band_stream_seed46_decodes_pixel_exact +stream::tests::t08::a_real_aomenc_sb128_intra_rect_block_decodes_pixel_exact +stream::tests::t08::a_32x32_frame_edge_rect_partition_with_a_flat_band_decodes_pixel_exact +stream::tests::t08::a_real_aomenc_stream_with_a_split_transform_superblock_strip_decodes_pixel_exact +stream::tests::t06::a_real_compound_global_warp_12bit_stream_decodes_pixel_exact +stream::tests::t06::a_real_compound_global_warp_stream_decodes_pixel_exact +stream::tests::t09::a_real_aomenc_stream_with_a_skipped_8x8_intra_leaf_whose_tx_split_decodes_pixel_exact +stream::tests::t04::a_real_aomenc_10bit_partial_bottom_stripe_restoration_decodes_pixel_exact +stream::tests::t09::a_real_aomenc_stream_with_a_16_level_1to4_partition_decodes_pixel_exact +stream::tests::t07::a_real_aomenc_stream_with_restoration_reads_lr_symbols_correctly +stream::tests::t08::a_real_aomenc_sb128_gathered_edge_horz_partition_decodes_pixel_exact +stream::tests::t08::a_real_aomenc_stream_with_a_32x32_frame_edge_rect_partition_decodes_pixel_exact +stream::tests::t08::a_real_aomenc_stream_with_a_split_transform_horz_vert_strip_decodes_pixel_exact +stream::tests::t06::a_real_compound_global_warp_10bit_stream_decodes_pixel_exact +stream::tests::t06::a_real_force_integer_mv_warp_10bit_stream_decodes_pixel_exact +stream::tests::t08::a_real_aomenc_sb128_ab_partition_at_the_128_root_decodes_pixel_exact +stream::tests::t04::a_superres_all_tools_sb128_stream_decodes_pixel_exact +stream::tests::t04::a_real_stream_reconstructs_identically_with_one_and_four_recon_threads +stream::tests::t06::a_real_compound_global_warp_12bit_8x8_leaf_stream_decodes_pixel_exact +stream::tests::t07::a_real_aomenc_stream_with_variance_aq_segmentation_decodes_pixel_exact +stream::tests::t04::a_real_aomenc_inter_frame_with_a_64x64_intra_block_reads_the_no_cfl_uv_alphabet +stream::tests::t08::a_422_muchunk_compound_128root_pinned_stream_reaches_its_unit_walk +stream::tests::t07::a_real_aomenc_stream_with_cdef_decodes_pixel_exact +stream::tests::t09::the_frame_the_caller_receives_carries_no_unwritten_plane_sample +stream::tests::t09::a_real_aomenc_10bit_screen_inter_sequence_codes_palette_syntax_on_rect_intra_strips +stream::tests::t04::a_real_stream_filters_identically_with_one_and_four_filter_threads +stream::tests::t10::a_real_aomenc_inter_sequence_with_intra_sub8x8_leaves_decodes_pixel_exact +stream::tests::t08::a_real_aomenc_stream_with_a_1d_tx_class_on_a_rect_transform_decodes_pixel_exact +stream::tests::t08::a_422_muchunk_iis_128root_grad128_comp_stream_is_exact_and_reaches_its_unit_walk +stream::tests::t09::a_real_aomenc_stream_whose_frame_edge_partition_bit_is_horz_decodes_pixel_exact +stream::tests::t09::a_real_aomenc_inter_sequence_with_an_intra_1to4_strip_decodes_pixel_exact_10bit +stream::tests::t04::a_real_aomenc_10bit_obmc_over_1to4_strip_neighbours_decodes_pixel_exact +stream::tests::t09::the_two_10bit_film_pins_match_aomdec_on_every_decode_order_frame +stream::tests::t09::a_real_aomenc_multi_tile_inter_10bit_stream_decodes_pixel_exact +stream::tests::t08::a_real_aomenc_inter_128x128_none_root_decodes_pixel_exact +stream::tests::t07::a_real_aomenc_both_axes_cut_corner_inter_frames_decode_pixel_exact +stream::tests::t08::a_real_aomenc_key_frame_with_a_128x128_none_partition_decodes_pixel_exact +stream::tests::t07::a_real_aomenc_compound_mv_stack_across_two_tile_columns_decodes_pixel_exact +stream::tests::t09::a_real_aomenc_inter_sequence_with_a_split_transform_intra_strip_decodes_pixel_exact +stream::tests::t06::a_real_force_integer_mv_warp_stream_decodes_pixel_exact +stream::tests::t08::a_real_aomenc_intra_stream_with_tx_size_search_and_chroma_decodes_pixel_exact +stream::tests::t09::a_real_aomenc_inter_sequence_with_an_intra_1to4_strip_decodes_pixel_exact +stream::tests::t10::a_420_lossless_rect_chroma_walk_is_bounded_by_the_chroma_plane +stream::tests::t06::a_real_aomenc_stream_with_ab_partitions_decodes_pixel_exact +stream::tests::t01::a_real_aomenc_128x128_superblock_stream_decodes_pixel_exact +stream::tests::t01::a_real_aomenc_mixed_lossless_segment_frame_decodes_sample_exact +stream::tests::t09::the_grained_picture_the_caller_receives_carries_no_unwritten_plane_sample +stream::tests::t01::a_real_obmc_stream_reads_a_recorded_switchable_filter_for_every_neighbour +stream::tests::t03::a_real_aomenc_10bit_stream_with_a_rect_transform_decodes_pixel_exact +stream::tests::t01::a_real_aomenc_inter_frame_edge_half_strip_decodes_pixel_exact +stream::tests::t07::a_real_aomenc_compound_mv_stack_with_global_motion_decodes_pixel_exact +stream::tests::t06::a_real_aomenc_10bit_stream_with_onesided_compound_decodes_pixel_exact diff --git a/lanes/testcut/p2-av1stream.idx1.txt b/lanes/testcut/p2-av1stream.idx1.txt new file mode 100644 index 00000000..749b1855 --- /dev/null +++ b/lanes/testcut/p2-av1stream.idx1.txt @@ -0,0 +1,30 @@ +0 +1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 diff --git a/lanes/testcut/p2-av1stream.idx2.txt b/lanes/testcut/p2-av1stream.idx2.txt new file mode 100644 index 00000000..193eb1dc --- /dev/null +++ b/lanes/testcut/p2-av1stream.idx2.txt @@ -0,0 +1,30 @@ +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 diff --git a/lanes/testcut/p2-av1stream.sample.json b/lanes/testcut/p2-av1stream.sample.json new file mode 100644 index 00000000..b182b619 --- /dev/null +++ b/lanes/testcut/p2-av1stream.sample.json @@ -0,0 +1 @@ +[{"file": "crates/ec-av1/src/census.rs", "span": {"start": {"line": 232, "column": 5}, "end": {"line": 245, "column": 8}}, "replacement": "()", "function": "block", "genre": "FnValue", "name": "crates/ec-av1/src/census.rs:232:5: replace block with ()", "global": 133}, {"file": "crates/ec-av1/src/compound.rs", "span": {"start": {"line": 66, "column": 61}, "end": {"line": 66, "column": 62}}, "replacement": "==", "function": "dist_wtd_comp_weight_assign", "genre": "BinaryOperator", "name": "crates/ec-av1/src/compound.rs:66:61: replace > with == in dist_wtd_comp_weight_assign", "global": 214}, {"file": "crates/ec-av1/src/encode/mod.rs", "span": {"start": {"line": 91, "column": 5}, "end": {"line": 109, "column": 6}}, "replacement": "(1, 1)", "function": "chroma_mi_shape", "genre": "FnValue", "name": "crates/ec-av1/src/encode/mod.rs:91:5: replace chroma_mi_shape -> (usize, usize) with (1, 1)", "global": 1112}, {"file": "crates/ec-av1/src/dumpio.rs", "span": {"start": {"line": 158, "column": 9}, "end": {"line": 191, "column": 10}}, "replacement": "()", "function": "LoudDump::finish", "genre": "FnValue", "name": "crates/ec-av1/src/dumpio.rs:158:9: replace LoudDump::finish with ()", "global": 1717}, {"file": "crates/ec-av1/src/envflags.rs", "span": {"start": {"line": 23, "column": 5}, "end": {"line": 23, "column": 55}}, "replacement": "Ok(\"xyzzy\".into())", "function": "var", "genre": "FnValue", "name": "crates/ec-av1/src/envflags.rs:23:5: replace var -> Result with Ok(\"xyzzy\".into())", "global": 2091}, {"file": "crates/ec-av1/src/film_grain.rs", "span": {"start": {"line": 979, "column": 18}, "end": {"line": 979, "column": 19}}, "replacement": "*", "function": "simd::luma_noise_rows_avx2", "genre": "BinaryOperator", "name": "crates/ec-av1/src/film_grain.rs:979:18: replace + with * in simd::luma_noise_rows_avx2", "global": 3760}, {"file": "crates/ec-av1/src/mc.rs", "span": {"start": {"line": 2524, "column": 43}, "end": {"line": 2524, "column": 44}}, "replacement": "*", "function": "blend_masked_compound", "genre": "BinaryOperator", "name": "crates/ec-av1/src/mc.rs:2524:43: replace + with * in blend_masked_compound", "global": 6351}, {"file": "crates/ec-av1/src/msac.rs", "span": {"start": {"line": 274, "column": 31}, "end": {"line": 274, "column": 32}}, "replacement": "/", "function": "update_cdf", "genre": "BinaryOperator", "name": "crates/ec-av1/src/msac.rs:274:31: replace - with / in update_cdf", "global": 7085}, {"file": "crates/ec-av1/src/par.rs", "span": {"start": {"line": 303, "column": 12}, "end": {"line": 303, "column": 13}}, "replacement": "", "function": "DecodeSplit::install", "genre": "UnaryOperator", "name": "crates/ec-av1/src/par.rs:303:12: delete ! in DecodeSplit::install", "global": 8666}, {"file": "crates/ec-av1/src/restoration.rs", "span": {"start": {"line": 1107, "column": 19}, "end": {"line": 1107, "column": 21}}, "replacement": "*=", "function": "compute_ab", "genre": "BinaryOperator", "name": "crates/ec-av1/src/restoration.rs:1107:19: replace += with *= in compute_ab", "global": 9436}, {"file": "crates/ec-av1/src/stream/mod.rs", "span": {"start": {"line": 1234, "column": 20}, "end": {"line": 1234, "column": 21}}, "replacement": ">=", "function": "decode_stream_with_threads", "genre": "BinaryOperator", "name": "crates/ec-av1/src/stream/mod.rs:1234:20: replace > with >= in decode_stream_with_threads", "global": 10508}, {"file": "crates/ec-av1/src/superres.rs", "span": {"start": {"line": 75, "column": 5}, "end": {"line": 80, "column": 71}}, "replacement": "0", "function": "upscale_convolve_x0", "genre": "FnValue", "name": "crates/ec-av1/src/superres.rs:75:5: replace upscale_convolve_x0 -> i64 with 0", "global": 10878}, {"file": "crates/ec-av1/src/transform.rs", "span": {"start": {"line": 1102, "column": 34}, "end": {"line": 1102, "column": 35}}, "replacement": "*", "function": "inverse_adst16", "genre": "BinaryOperator", "name": "crates/ec-av1/src/transform.rs:1102:34: replace + with * in inverse_adst16", "global": 12610}, {"file": "crates/ec-av1/src/warp.rs", "span": {"start": {"line": 314, "column": 59}, "end": {"line": 314, "column": 60}}, "replacement": "+", "function": "find_affine_int", "genre": "BinaryOperator", "name": "crates/ec-av1/src/warp.rs:314:59: replace - with + in find_affine_int", "global": 13860}, {"file": "crates/ec-av1/src/wedge.rs", "span": {"start": {"line": 195, "column": 24}, "end": {"line": 195, "column": 25}}, "replacement": "*", "function": "init_wedge_master_masks", "genre": "BinaryOperator", "name": "crates/ec-av1/src/wedge.rs:195:24: replace / with * in init_wedge_master_masks", "global": 14792}, {"file": "crates/ec-av1/src/decode/inter_block8.rs", "span": {"start": {"line": 163, "column": 5}, "end": {"line": 3023, "column": 7}}, "replacement": "Ok((false, true, false, Some((0, -1, 1, 0)), [1; 2], (-1, Some(0))))", "function": "decode_inter_block8", "genre": "FnValue", "name": "crates/ec-av1/src/decode/inter_block8.rs:163:5: replace decode_inter_block8 -> Result<(bool, bool, bool, Option<(i8, i8, u8, u8)>, [u8; 2], (i8, Option),)> with Ok((false, true, false, Some((0, -1, 1, 0)), [1; 2], (-1, Some(0))))", "global": 21116}, {"file": "crates/ec-av1/src/decode/inter_block8.rs", "span": {"start": {"line": 163, "column": 5}, "end": {"line": 3023, "column": 7}}, "replacement": "Ok((false, true, false, Some((1, 0, 1, 1)), [0; 2], (0, Some(-1))))", "function": "decode_inter_block8", "genre": "FnValue", "name": "crates/ec-av1/src/decode/inter_block8.rs:163:5: replace decode_inter_block8 -> Result<(bool, bool, bool, Option<(i8, i8, u8, u8)>, [u8; 2], (i8, Option),)> with Ok((false, true, false, Some((1, 0, 1, 1)), [0; 2], (0, Some(-1))))", "global": 21218}, {"file": "crates/ec-av1/src/decode/inter_intra_arm.rs", "span": {"start": {"line": 717, "column": 54}, "end": {"line": 717, "column": 55}}, "replacement": "+", "function": "decode_inter_block_intra_arm", "genre": "BinaryOperator", "name": "crates/ec-av1/src/decode/inter_intra_arm.rs:717:54: replace * with + in decode_inter_block_intra_arm", "global": 24085}, {"file": "crates/ec-av1/src/decode/inter_block.rs", "span": {"start": {"line": 1801, "column": 58}, "end": {"line": 1801, "column": 59}}, "replacement": "+", "function": "decode_inter_block", "genre": "BinaryOperator", "name": "crates/ec-av1/src/decode/inter_block.rs:1801:58: replace * with + in decode_inter_block", "global": 24580}, {"file": "crates/ec-av1/src/decode/coeffs.rs", "span": {"start": {"line": 588, "column": 46}, "end": {"line": 588, "column": 47}}, "replacement": "==", "function": "read_coeffs_rect", "genre": "BinaryOperator", "name": "crates/ec-av1/src/decode/coeffs.rs:588:46: replace < with == in read_coeffs_rect", "global": 25493}, {"file": "crates/ec-av1/src/decode/cdef_simd.rs", "span": {"start": {"line": 151, "column": 13}, "end": {"line": 151, "column": 14}}, "replacement": ">", "function": "filter_block_avx2", "genre": "BinaryOperator", "name": "crates/ec-av1/src/decode/cdef_simd.rs:151:13: replace < with > in filter_block_avx2", "global": 27126}, {"file": "crates/ec-av1/src/decode/rect.rs", "span": {"start": {"line": 63, "column": 5}, "end": {"line": 331, "column": 7}}, "replacement": "Ok((true, 0, 0, 1, 0, Some((0, -1)), Some(0), None, Some(Default::default()), Some((0, 0))))", "function": "read_intra_mode_rect", "genre": "FnValue", "name": "crates/ec-av1/src/decode/rect.rs:63:5: replace read_intra_mode_rect -> Result<(bool, usize, i32, usize, i32, Option<(i32, i32)>, Option, Option, Option, Option<(i32, i32)>,)> with Ok((true, 0, 0, 1, 0, Some((0, -1)), Some(0), None, Some(Default::default()), Some((0, 0))))", "global": 31188}, {"file": "crates/ec-av1/src/decode/rect.rs", "span": {"start": {"line": 63, "column": 5}, "end": {"line": 331, "column": 7}}, "replacement": "Ok((true, 0, 0, 1, 1, None, None, None, None, Some((0, -1))))", "function": "read_intra_mode_rect", "genre": "FnValue", "name": "crates/ec-av1/src/decode/rect.rs:63:5: replace read_intra_mode_rect -> Result<(bool, usize, i32, usize, i32, Option<(i32, i32)>, Option, Option, Option, Option<(i32, i32)>,)> with Ok((true, 0, 0, 1, 1, None, None, None, None, Some((0, -1))))", "global": 31980}, {"file": "crates/ec-av1/src/decode/rect.rs", "span": {"start": {"line": 63, "column": 5}, "end": {"line": 331, "column": 7}}, "replacement": "Ok((true, 0, 0, 1, 1, Some((1, 0)), None, None, Some(Default::default()), Some((1, 0))))", "function": "read_intra_mode_rect", "genre": "FnValue", "name": "crates/ec-av1/src/decode/rect.rs:63:5: replace read_intra_mode_rect -> Result<(bool, usize, i32, usize, i32, Option<(i32, i32)>, Option, Option, Option, Option<(i32, i32)>,)> with Ok((true, 0, 0, 1, 1, Some((1, 0)), None, None, Some(Default::default()), Some((1, 0))))", "global": 32471}, {"file": "crates/ec-av1/src/decode/rect.rs", "span": {"start": {"line": 63, "column": 5}, "end": {"line": 331, "column": 7}}, "replacement": "Ok((true, 0, 1, 1, 1, Some((1, 1)), Some(0), None, Some(Default::default()), None))", "function": "read_intra_mode_rect", "genre": "FnValue", "name": "crates/ec-av1/src/decode/rect.rs:63:5: replace read_intra_mode_rect -> Result<(bool, usize, i32, usize, i32, Option<(i32, i32)>, Option, Option, Option, Option<(i32, i32)>,)> with Ok((true, 0, 1, 1, 1, Some((1, 1)), Some(0), None, Some(Default::default()), None))", "global": 39827}, {"file": "crates/ec-av1/src/decode/rect.rs", "span": {"start": {"line": 63, "column": 5}, "end": {"line": 331, "column": 7}}, "replacement": "Ok((true, 0, -1, 1, 1, Some((0, -1)), Some(0), None, None, Some((-1, 1))))", "function": "read_intra_mode_rect", "genre": "FnValue", "name": "crates/ec-av1/src/decode/rect.rs:63:5: replace read_intra_mode_rect -> Result<(bool, usize, i32, usize, i32, Option<(i32, i32)>, Option, Option, Option, Option<(i32, i32)>,)> with Ok((true, 0, -1, 1, 1, Some((0, -1)), Some(0), None, None, Some((-1, 1))))", "global": 46785}, {"file": "crates/ec-av1/src/decode/rect.rs", "span": {"start": {"line": 63, "column": 5}, "end": {"line": 331, "column": 7}}, "replacement": "Ok((true, 0, -1, 1, 1, Some((-1, -1)), Some(0), None, Some(Default::default()), Some((-1, 0))))", "function": "read_intra_mode_rect", "genre": "FnValue", "name": "crates/ec-av1/src/decode/rect.rs:63:5: replace read_intra_mode_rect -> Result<(bool, usize, i32, usize, i32, Option<(i32, i32)>, Option, Option, Option, Option<(i32, i32)>,)> with Ok((true, 0, -1, 1, 1, Some((-1, -1)), Some(0), None, Some(Default::default()), Some((-1, 0))))", "global": 47514}, {"file": "crates/ec-av1/src/decode/rect.rs", "span": {"start": {"line": 63, "column": 5}, "end": {"line": 331, "column": 7}}, "replacement": "Ok((true, 1, 1, 0, 0, Some((-1, 0)), Some(1), Some(Default::default()), Some(Default::default()), Some((0, 1))))", "function": "read_intra_mode_rect", "genre": "FnValue", "name": "crates/ec-av1/src/decode/rect.rs:63:5: replace read_intra_mode_rect -> Result<(bool, usize, i32, usize, i32, Option<(i32, i32)>, Option, Option, Option, Option<(i32, i32)>,)> with Ok((true, 1, 1, 0, 0, Some((-1, 0)), Some(1), Some(Default::default()), Some(Default::default()), Some((0, 1))))", "global": 56929}, {"file": "crates/ec-av1/src/decode/rect.rs", "span": {"start": {"line": 63, "column": 5}, "end": {"line": 331, "column": 7}}, "replacement": "Ok((true, 1, 1, 1, 1, Some((1, 0)), Some(0), Some(Default::default()), None, Some((1, 0))))", "function": "read_intra_mode_rect", "genre": "FnValue", "name": "crates/ec-av1/src/decode/rect.rs:63:5: replace read_intra_mode_rect -> Result<(bool, usize, i32, usize, i32, Option<(i32, i32)>, Option, Option, Option, Option<(i32, i32)>,)> with Ok((true, 1, 1, 1, 1, Some((1, 0)), Some(0), Some(Default::default()), None, Some((1, 0))))", "global": 61321}, {"file": "crates/ec-av1/src/decode/rect.rs", "span": {"start": {"line": 63, "column": 5}, "end": {"line": 331, "column": 7}}, "replacement": "Ok((true, 1, 1, 1, -1, Some((1, 0)), Some(0), Some(Default::default()), None, Some((1, 0))))", "function": "read_intra_mode_rect", "genre": "FnValue", "name": "crates/ec-av1/src/decode/rect.rs:63:5: replace read_intra_mode_rect -> Result<(bool, usize, i32, usize, i32, Option<(i32, i32)>, Option, Option, Option, Option<(i32, i32)>,)> with Ok((true, 1, 1, 1, -1, Some((1, 0)), Some(0), Some(Default::default()), None, Some((1, 0))))", "global": 62521}, {"file": "crates/ec-av1/src/decode/rect.rs", "span": {"start": {"line": 63, "column": 5}, "end": {"line": 331, "column": 7}}, "replacement": "Ok((true, 1, -1, 0, 0, Some((1, 1)), Some(1), Some(Default::default()), None, Some((1, -1))))", "function": "read_intra_mode_rect", "genre": "FnValue", "name": "crates/ec-av1/src/decode/rect.rs:63:5: replace read_intra_mode_rect -> Result<(bool, usize, i32, usize, i32, Option<(i32, i32)>, Option, Option, Option, Option<(i32, i32)>,)> with Ok((true, 1, -1, 0, 0, Some((1, 1)), Some(1), Some(Default::default()), None, Some((1, -1))))", "global": 63883}, {"file": "crates/ec-av1/src/decode/rect.rs", "span": {"start": {"line": 63, "column": 5}, "end": {"line": 331, "column": 7}}, "replacement": "Ok((true, 1, -1, 0, -1, Some((-1, -1)), None, Some(Default::default()), Some(Default::default()), None))", "function": "read_intra_mode_rect", "genre": "FnValue", "name": "crates/ec-av1/src/decode/rect.rs:63:5: replace read_intra_mode_rect -> Result<(bool, usize, i32, usize, i32, Option<(i32, i32)>, Option, Option, Option, Option<(i32, i32)>,)> with Ok((true, 1, -1, 0, -1, Some((-1, -1)), None, Some(Default::default()), Some(Default::default()), None))", "global": 66687}, {"file": "crates/ec-av1/src/decode/rect.rs", "span": {"start": {"line": 63, "column": 5}, "end": {"line": 331, "column": 7}}, "replacement": "Ok((true, 1, -1, 1, 1, Some((1, 1)), None, None, None, Some((1, 0))))", "function": "read_intra_mode_rect", "genre": "FnValue", "name": "crates/ec-av1/src/decode/rect.rs:63:5: replace read_intra_mode_rect -> Result<(bool, usize, i32, usize, i32, Option<(i32, i32)>, Option, Option, Option, Option<(i32, i32)>,)> with Ok((true, 1, -1, 1, 1, Some((1, 1)), None, None, None, Some((1, 0))))", "global": 68581}, {"file": "crates/ec-av1/src/decode/rect.rs", "span": {"start": {"line": 63, "column": 5}, "end": {"line": 331, "column": 7}}, "replacement": "Ok((true, 1, -1, 1, -1, Some((0, 0)), None, Some(Default::default()), Some(Default::default()), Some((1, -1))))", "function": "read_intra_mode_rect", "genre": "FnValue", "name": "crates/ec-av1/src/decode/rect.rs:63:5: replace read_intra_mode_rect -> Result<(bool, usize, i32, usize, i32, Option<(i32, i32)>, Option, Option, Option, Option<(i32, i32)>,)> with Ok((true, 1, -1, 1, -1, Some((0, 0)), None, Some(Default::default()), Some(Default::default()), Some((1, -1))))", "global": 69333}, {"file": "crates/ec-av1/src/decode/rect.rs", "span": {"start": {"line": 63, "column": 5}, "end": {"line": 331, "column": 7}}, "replacement": "Ok((false, 0, 0, 0, -1, Some((1, 1)), None, Some(Default::default()), None, Some((-1, 0))))", "function": "read_intra_mode_rect", "genre": "FnValue", "name": "crates/ec-av1/src/decode/rect.rs:63:5: replace read_intra_mode_rect -> Result<(bool, usize, i32, usize, i32, Option<(i32, i32)>, Option, Option, Option, Option<(i32, i32)>,)> with Ok((false, 0, 0, 0, -1, Some((1, 1)), None, Some(Default::default()), None, Some((-1, 0))))", "global": 73404}, {"file": "crates/ec-av1/src/decode/rect.rs", "span": {"start": {"line": 63, "column": 5}, "end": {"line": 331, "column": 7}}, "replacement": "Ok((false, 0, 0, 1, 1, Some((-1, 1)), None, Some(Default::default()), Some(Default::default()), Some((-1, 1))))", "function": "read_intra_mode_rect", "genre": "FnValue", "name": "crates/ec-av1/src/decode/rect.rs:63:5: replace read_intra_mode_rect -> Result<(bool, usize, i32, usize, i32, Option<(i32, i32)>, Option, Option, Option, Option<(i32, i32)>,)> with Ok((false, 0, 0, 1, 1, Some((-1, 1)), None, Some(Default::default()), Some(Default::default()), Some((-1, 1))))", "global": 76175}, {"file": "crates/ec-av1/src/decode/rect.rs", "span": {"start": {"line": 63, "column": 5}, "end": {"line": 331, "column": 7}}, "replacement": "Ok((false, 1, 0, 0, 0, Some((-1, -1)), Some(0), Some(Default::default()), None, Some((1, -1))))", "function": "read_intra_mode_rect", "genre": "FnValue", "name": "crates/ec-av1/src/decode/rect.rs:63:5: replace read_intra_mode_rect -> Result<(bool, usize, i32, usize, i32, Option<(i32, i32)>, Option, Option, Option, Option<(i32, i32)>,)> with Ok((false, 1, 0, 0, 0, Some((-1, -1)), Some(0), Some(Default::default()), None, Some((1, -1))))", "global": 93123}, {"file": "crates/ec-av1/src/decode/rect.rs", "span": {"start": {"line": 63, "column": 5}, "end": {"line": 331, "column": 7}}, "replacement": "Ok((false, 1, 0, 0, -1, Some((1, -1)), None, Some(Default::default()), Some(Default::default()), Some((-1, 1))))", "function": "read_intra_mode_rect", "genre": "FnValue", "name": "crates/ec-av1/src/decode/rect.rs:63:5: replace read_intra_mode_rect -> Result<(bool, usize, i32, usize, i32, Option<(i32, i32)>, Option, Option, Option, Option<(i32, i32)>,)> with Ok((false, 1, 0, 0, -1, Some((1, -1)), None, Some(Default::default()), Some(Default::default()), Some((-1, 1))))", "global": 95135}, {"file": "crates/ec-av1/src/decode/rect.rs", "span": {"start": {"line": 63, "column": 5}, "end": {"line": 331, "column": 7}}, "replacement": "Ok((false, 1, 1, 0, -1, None, Some(1), None, None, Some((0, 0))))", "function": "read_intra_mode_rect", "genre": "FnValue", "name": "crates/ec-av1/src/decode/rect.rs:63:5: replace read_intra_mode_rect -> Result<(bool, usize, i32, usize, i32, Option<(i32, i32)>, Option, Option, Option, Option<(i32, i32)>,)> with Ok((false, 1, 1, 0, -1, None, Some(1), None, None, Some((0, 0))))", "global": 101658}, {"file": "crates/ec-av1/src/decode/rect.rs", "span": {"start": {"line": 63, "column": 5}, "end": {"line": 331, "column": 7}}, "replacement": "Ok((false, 1, 1, 1, 0, Some((0, -1)), Some(0), None, Some(Default::default()), Some((1, -1))))", "function": "read_intra_mode_rect", "genre": "FnValue", "name": "crates/ec-av1/src/decode/rect.rs:63:5: replace read_intra_mode_rect -> Result<(bool, usize, i32, usize, i32, Option<(i32, i32)>, Option, Option, Option, Option<(i32, i32)>,)> with Ok((false, 1, 1, 1, 0, Some((0, -1)), Some(0), None, Some(Default::default()), Some((1, -1))))", "global": 103193}, {"file": "crates/ec-av1/src/decode/rect.rs", "span": {"start": {"line": 63, "column": 5}, "end": {"line": 331, "column": 7}}, "replacement": "Ok((false, 1, 1, 1, -1, Some((1, 1)), None, None, None, Some((0, 0))))", "function": "read_intra_mode_rect", "genre": "FnValue", "name": "crates/ec-av1/src/decode/rect.rs:63:5: replace read_intra_mode_rect -> Result<(bool, usize, i32, usize, i32, Option<(i32, i32)>, Option, Option, Option, Option<(i32, i32)>,)> with Ok((false, 1, 1, 1, -1, Some((1, 1)), None, None, None, Some((0, 0))))", "global": 105778}, {"file": "crates/ec-av1/src/decode/rect.rs", "span": {"start": {"line": 63, "column": 5}, "end": {"line": 331, "column": 7}}, "replacement": "Ok((false, 1, -1, 0, 0, None, None, Some(Default::default()), Some(Default::default()), Some((1, 1))))", "function": "read_intra_mode_rect", "genre": "FnValue", "name": "crates/ec-av1/src/decode/rect.rs:63:5: replace read_intra_mode_rect -> Result<(bool, usize, i32, usize, i32, Option<(i32, i32)>, Option, Option, Option, Option<(i32, i32)>,)> with Ok((false, 1, -1, 0, 0, None, None, Some(Default::default()), Some(Default::default()), Some((1, 1))))", "global": 106412}, {"file": "crates/ec-av1/src/decode/rect.rs", "span": {"start": {"line": 63, "column": 5}, "end": {"line": 331, "column": 7}}, "replacement": "Ok((false, 1, -1, 0, 0, Some((1, 0)), Some(1), None, Some(Default::default()), Some((1, -1))))", "function": "read_intra_mode_rect", "genre": "FnValue", "name": "crates/ec-av1/src/decode/rect.rs:63:5: replace read_intra_mode_rect -> Result<(bool, usize, i32, usize, i32, Option<(i32, i32)>, Option, Option, Option, Option<(i32, i32)>,)> with Ok((false, 1, -1, 0, 0, Some((1, 0)), Some(1), None, Some(Default::default()), Some((1, -1))))", "global": 106953}, {"file": "crates/ec-av1/src/decode/rect.rs", "span": {"start": {"line": 63, "column": 5}, "end": {"line": 331, "column": 7}}, "replacement": "Ok((false, 1, -1, 0, -1, Some((0, -1)), Some(0), None, Some(Default::default()), Some((1, 0))))", "function": "read_intra_mode_rect", "genre": "FnValue", "name": "crates/ec-av1/src/decode/rect.rs:63:5: replace read_intra_mode_rect -> Result<(bool, usize, i32, usize, i32, Option<(i32, i32)>, Option, Option, Option, Option<(i32, i32)>,)> with Ok((false, 1, -1, 0, -1, Some((0, -1)), Some(0), None, Some(Default::default()), Some((1, 0))))", "global": 109191}, {"file": "crates/ec-av1/src/decode/rect4.rs", "span": {"start": {"line": 2419, "column": 83}, "end": {"line": 2419, "column": 84}}, "replacement": "%", "function": "decode_rect4_16_strip", "genre": "BinaryOperator", "name": "crates/ec-av1/src/decode/rect4.rs:2419:83: replace / with % in decode_rect4_16_strip", "global": 115362}, {"file": "crates/ec-av1/src/decode/block.rs", "span": {"start": {"line": 44, "column": 5}, "end": {"line": 400, "column": 7}}, "replacement": "Ok((false, 0, -1, 0, 0, Some((0, 0)), Some(0), Some(Default::default()), Some(Default::default())))", "function": "read_intra_mode", "genre": "FnValue", "name": "crates/ec-av1/src/decode/block.rs:44:5: replace read_intra_mode -> Result<(bool, usize, i32, usize, i32, Option<(i32, i32)>, Option, Option, Option,)> with Ok((false, 0, -1, 0, 0, Some((0, 0)), Some(0), Some(Default::default()), Some(Default::default())))", "global": 121581}, {"file": "crates/ec-av1/src/decode/block.rs", "span": {"start": {"line": 44, "column": 5}, "end": {"line": 400, "column": 7}}, "replacement": "Ok((false, 0, -1, 0, -1, Some((0, 0)), None, None, None))", "function": "read_intra_mode", "genre": "FnValue", "name": "crates/ec-av1/src/decode/block.rs:44:5: replace read_intra_mode -> Result<(bool, usize, i32, usize, i32, Option<(i32, i32)>, Option, Option, Option,)> with Ok((false, 0, -1, 0, -1, Some((0, 0)), None, None, None))", "global": 121814}, {"file": "crates/ec-av1/src/decode/block.rs", "span": {"start": {"line": 2862, "column": 58}, "end": {"line": 2862, "column": 59}}, "replacement": "%", "function": "decode_block", "genre": "BinaryOperator", "name": "crates/ec-av1/src/decode/block.rs:2862:58: replace / with % in decode_block", "global": 125311}, {"file": "crates/ec-av1/src/decode/wave.rs", "span": {"start": {"line": 650, "column": 22}, "end": {"line": 650, "column": 23}}, "replacement": "+", "function": "strip", "genre": "BinaryOperator", "name": "crates/ec-av1/src/decode/wave.rs:650:22: replace * with + in strip", "global": 125747}, {"file": "crates/ec-av1/src/decode/leaf8.rs", "span": {"start": {"line": 2003, "column": 5}, "end": {"line": 2154, "column": 64}}, "replacement": "Ok((true, 0, 0, Some((0, 1, None)), None, Some((1, -1))))", "function": "read_intra_mode_sub8", "genre": "FnValue", "name": "crates/ec-av1/src/decode/leaf8.rs:2003:5: replace read_intra_mode_sub8 -> Result<(bool, usize, i32, Option<(usize, i32, Option<(i32, i32)>)>, Option, Option<(i32, i32)>,)> with Ok((true, 0, 0, Some((0, 1, None)), None, Some((1, -1))))", "global": 126500}, {"file": "crates/ec-av1/src/decode/leaf8.rs", "span": {"start": {"line": 2003, "column": 5}, "end": {"line": 2154, "column": 64}}, "replacement": "Ok((true, 0, 0, Some((1, 1, Some((-1, 0)))), Some(1), Some((0, 1))))", "function": "read_intra_mode_sub8", "genre": "FnValue", "name": "crates/ec-av1/src/decode/leaf8.rs:2003:5: replace read_intra_mode_sub8 -> Result<(bool, usize, i32, Option<(usize, i32, Option<(i32, i32)>)>, Option, Option<(i32, i32)>,)> with Ok((true, 0, 0, Some((1, 1, Some((-1, 0)))), Some(1), Some((0, 1))))", "global": 127626}, {"file": "crates/ec-av1/src/decode/leaf8.rs", "span": {"start": {"line": 2003, "column": 5}, "end": {"line": 2154, "column": 64}}, "replacement": "Ok((true, 1, -1, Some((0, 0, Some((0, 1)))), None, Some((0, 1))))", "function": "read_intra_mode_sub8", "genre": "FnValue", "name": "crates/ec-av1/src/decode/leaf8.rs:2003:5: replace read_intra_mode_sub8 -> Result<(bool, usize, i32, Option<(usize, i32, Option<(i32, i32)>)>, Option, Option<(i32, i32)>,)> with Ok((true, 1, -1, Some((0, 0, Some((0, 1)))), None, Some((0, 1))))", "global": 135406}, {"file": "crates/ec-av1/src/decode/leaf8.rs", "span": {"start": {"line": 2003, "column": 5}, "end": {"line": 2154, "column": 64}}, "replacement": "Ok((false, 0, 0, Some((1, 0, Some((0, -1)))), Some(0), Some((-1, 1))))", "function": "read_intra_mode_sub8", "genre": "FnValue", "name": "crates/ec-av1/src/decode/leaf8.rs:2003:5: replace read_intra_mode_sub8 -> Result<(bool, usize, i32, Option<(usize, i32, Option<(i32, i32)>)>, Option, Option<(i32, i32)>,)> with Ok((false, 0, 0, Some((1, 0, Some((0, -1)))), Some(0), Some((-1, 1))))", "global": 138182}, {"file": "crates/ec-av1/src/decode/leaf8.rs", "span": {"start": {"line": 2003, "column": 5}, "end": {"line": 2154, "column": 64}}, "replacement": "Ok((false, 0, 1, Some((0, 0, Some((0, 1)))), None, None))", "function": "read_intra_mode_sub8", "genre": "FnValue", "name": "crates/ec-av1/src/decode/leaf8.rs:2003:5: replace read_intra_mode_sub8 -> Result<(bool, usize, i32, Option<(usize, i32, Option<(i32, i32)>)>, Option, Option<(i32, i32)>,)> with Ok((false, 0, 1, Some((0, 0, Some((0, 1)))), None, None))", "global": 139064}, {"file": "crates/ec-av1/src/decode/leaf8.rs", "span": {"start": {"line": 2003, "column": 5}, "end": {"line": 2154, "column": 64}}, "replacement": "Ok((false, 0, 1, Some((1, -1, Some((-1, -1)))), Some(1), Some((1, -1))))", "function": "read_intra_mode_sub8", "genre": "FnValue", "name": "crates/ec-av1/src/decode/leaf8.rs:2003:5: replace read_intra_mode_sub8 -> Result<(bool, usize, i32, Option<(usize, i32, Option<(i32, i32)>)>, Option, Option<(i32, i32)>,)> with Ok((false, 0, 1, Some((1, -1, Some((-1, -1)))), Some(1), Some((1, -1))))", "global": 140800}, {"file": "crates/ec-av1/src/decode/leaf_sub8.rs", "span": {"start": {"line": 1325, "column": 30}, "end": {"line": 1325, "column": 31}}, "replacement": "*", "function": "decode_leaf_split4", "genre": "BinaryOperator", "name": "crates/ec-av1/src/decode/leaf_sub8.rs:1325:30: replace + with * in decode_leaf_split4", "global": 148427}, {"file": "crates/ec-av1/src/decode/inter_shapes.rs", "span": {"start": {"line": 108, "column": 13}, "end": {"line": 108, "column": 15}}, "replacement": "||", "function": "read_block_tx_size", "genre": "BinaryOperator", "name": "crates/ec-av1/src/decode/inter_shapes.rs:108:13: replace && with || in read_block_tx_size", "global": 149018}, {"file": "crates/ec-av1/src/decode/replay.rs", "span": {"start": {"line": 382, "column": 5}, "end": {"line": 392, "column": 8}}, "replacement": "vec![0]", "function": "crop_owned", "genre": "FnValue", "name": "crates/ec-av1/src/decode/replay.rs:382:5: replace crop_owned -> Vec with vec![0]", "global": 150842}, {"file": "crates/ec-av1/src/decode/inter_ctx.rs", "span": {"start": {"line": 3009, "column": 50}, "end": {"line": 3009, "column": 51}}, "replacement": "*", "function": "covering_leaf_tx_type", "genre": "BinaryOperator", "name": "crates/ec-av1/src/decode/inter_ctx.rs:3009:50: replace / with * in covering_leaf_tx_type", "global": 152833}, {"file": "crates/ec-av1/src/decode/sub8_inter.rs", "span": {"start": {"line": 1087, "column": 37}, "end": {"line": 1087, "column": 38}}, "replacement": "*", "function": "decode_intra_sub8_leaf", "genre": "BinaryOperator", "name": "crates/ec-av1/src/decode/sub8_inter.rs:1087:37: replace / with * in decode_intra_sub8_leaf", "global": 153100}] \ No newline at end of file diff --git a/lanes/testcut/p2-av1stream.shard1.tsv b/lanes/testcut/p2-av1stream.shard1.tsv new file mode 100644 index 00000000..b761dd0f --- /dev/null +++ b/lanes/testcut/p2-av1stream.shard1.tsv @@ -0,0 +1,35 @@ +1 stream::tests::t05::a_real_aomenc_square_only_inter_sequence_with_a_64x64_intra_superblock_decodes_pixel_exact +2 stream::tests::t05::a_real_aomenc_inter_sequence_with_temporal_mv_candidates_decodes_pixel_exact +3 stream::tests::t05::a_real_aomenc_inter_sequence_with_superblock_level_ab_partitions_decodes_pixel_exact +4 stream::tests::t05::a_real_aomenc_inter_sequence_with_intra_16x4_strips_in_1to4_partitions_decodes_pixel_exact +5 stream::tests::t05::a_real_aomenc_inter_sequence_with_a_coded_rectangular_residual_decodes_pixel_exact +6 stream::tests::t06::a_real_aomenc_stream_with_interintra_wedge_decodes_pixel_exact +7 stream::tests::t05::a_real_aomenc_inter_sequence_with_a_16_level_rect_leaf_decodes_pixel_exact +8 stream::tests::t04::a_real_aomenc_10bit_inter_sequence_with_an_angle_delta_8x8_intra_leaf_decodes_pixel_exact +9 stream::tests::t09::a_real_aomenc_stream_with_a_coded_strip_whose_chroma_is_a_4to1_or_sub8_rect_decodes_pixel_exact +10 stream::tests::t05::a_real_aomenc_inter_sequence_with_a_sub8x8_inter_split_decodes_pixel_exact +11 stream::tests::t06::a_real_aomenc_stream_with_warped_motion_refuses_or_matches +12 stream::tests::t06::a_real_aomenc_superres_key_frame_sequence_decodes_pixel_exact +13 stream::tests::t04::a_real_aomenc_inter_sequence_with_an_angle_delta_8x8_intra_leaf_decodes_pixel_exact +14 stream::tests::t04::real_aomenc_1to4_streams_decode_pixel_exact_and_rect_vartx_leaves_fire_before_a_named_refusal +15 stream::tests::t05::a_real_aomenc_inter_sequence_with_16x16_level_ab_partitions_decodes_pixel_exact +16 stream::tests::t05::a_pinned_444_inter_stream_chroma_units_inherit_their_own_quadrants_tx_type +17 stream::tests::t05::a_pinned_444_rect_inter_stream_resolves_each_chroma_unit_from_its_own_luma_leaf +18 stream::tests::t05::a_pinned_rect_stream_with_a_64x64_intra_block_in_an_inter_frame_decodes_pixel_exact +19 stream::tests::t06::a_real_aomenc_stream_with_masked_compound_decodes_pixel_exact +20 stream::tests::t06::a_real_aomenc_stream_with_a_diffwtd_compound_64x64_block_decodes_pixel_exact +21 stream::tests::t06::a_real_aomenc_stream_with_a_coded_rect_strip_below_16x16_decodes_pixel_exact +22 stream::tests::t06::a_real_aomenc_stream_with_a_rectangular_compound_wedge_decodes_pixel_exact +23 stream::tests::t04::a_real_aomenc_inter_sequence_with_a_superblock_level_rect_partition_decodes_pixel_exact +24 stream::tests::t09::a_real_aomenc_stream_with_a_superblock_level_horz_vert_partition_and_delta_q_decodes_pixel_exact +25 stream::tests::t06::a_real_aomenc_stream_with_free_partitions_decodes_pixel_exact +26 stream::tests::t08::a_real_aomenc_stream_with_filter_intra_on_a_sub16_horz_vert_strip_decodes_pixel_exact +27 stream::tests::t07::a_real_aomenc_stream_with_delta_q_and_delta_lf_decodes_pixel_exact +28 stream::tests::t05::a_real_aomenc_inter_sequence_with_deblocking_decodes_pixel_exact +29 stream::tests::t09::a_real_aomenc_stream_with_filter_intra_on_a_32_level_1to4_strip_decodes_pixel_exact +30 stream::tests::t05::a_real_aomenc_stream_with_compound_references_decodes_pixel_exact +31 stream::tests::t04::a_real_aomenc_inter_sequence_with_32x32_level_1to4_strips_codes_their_rect_residual +32 stream::tests::t08::a_real_aomenc_stream_with_filter_intra_on_a_horz_vert_strip_decodes_pixel_exact +33 stream::tests::t07::a_real_aomenc_tiny_frame_size_sweep_decodes_pixel_exact +34 stream::tests::t09::the_chroma_rect_gates_excluded_seed_46_decodes_pixel_exact +35 stream::tests::t08::a_real_aomenc_10bit_filter_intra_on_a_sub16_strip_decodes_pixel_exact diff --git a/lanes/testcut/p2-av1stream.shard2.tsv b/lanes/testcut/p2-av1stream.shard2.tsv new file mode 100644 index 00000000..028b6bf0 --- /dev/null +++ b/lanes/testcut/p2-av1stream.shard2.tsv @@ -0,0 +1,35 @@ +36 stream::tests::t05::a_real_aomenc_inter_sequence_with_16x16_level_1to4_partitions_decodes_pixel_exact +37 stream::tests::t04::a_real_aomenc_stream_with_rect_screen_content_decodes_pixel_exact +38 stream::tests::t09::a_real_aomenc_stream_with_a_skipped_8x8_intra_leaf_whose_tx_split_10bit_decodes_pixel_exact +39 stream::tests::t08::a_real_aomenc_128x128_none_inter_blocks_coded_chroma_per_mu_chunk_decodes_pixel_exact +40 stream::tests::t09::a_real_aomenc_stream_with_a_32x32_level_1to4_partition_decodes_pixel_exact +41 stream::tests::t06::a_real_aomenc_superres_stream_with_compound_obmc_and_interintra_decodes_pixel_exact +42 stream::tests::t08::a_frame_edge_straddling_band_decodes_pixel_exact +43 stream::tests::t08::a_pinned_aomenc_16x8_strip_reads_its_use_filter_intra_flag +44 stream::tests::t05::a_real_aomenc_inter_sequence_with_forward_keyframes_and_temporal_mvs_decodes_pixel_exact +45 stream::tests::t04::a_real_aomenc_inter_sequence_with_an_intra_rect_strip_decodes_pixel_exact_10bit +46 stream::tests::t08::a_real_aomenc_stream_with_a_superblock_level_ab_partition_decodes_pixel_exact +47 stream::tests::t04::a_real_aomenc_inter_sequence_with_an_intra_rect_strip_decodes_pixel_exact +48 stream::tests::t03::a_real_aomenc_palette_stream_with_8x8_leaves_decodes_pixel_exact +49 stream::tests::t06::a_real_aomenc_stream_with_mandelbrot_fires_the_vert_b_partition_arm +50 stream::tests::t06::a_real_aomenc_stream_with_interintra_decodes_pixel_exact +51 stream::tests::t08::a_real_aomenc_stream_with_a_superblock_level_horz_vert_partition_decodes_pixel_exact +52 stream::tests::t04::a_real_aomenc_stream_with_rect_palette_decodes_pixel_exact +53 stream::tests::t08::a_real_aomenc_stream_with_128x128_superblocks_decodes_pixel_exact +54 stream::tests::t09::a_real_aomenc_band_stream_seed46_decodes_pixel_exact +55 stream::tests::t08::a_real_aomenc_sb128_intra_rect_block_decodes_pixel_exact +56 stream::tests::t08::a_32x32_frame_edge_rect_partition_with_a_flat_band_decodes_pixel_exact +57 stream::tests::t08::a_real_aomenc_stream_with_a_split_transform_superblock_strip_decodes_pixel_exact +58 stream::tests::t06::a_real_compound_global_warp_12bit_stream_decodes_pixel_exact +59 stream::tests::t06::a_real_compound_global_warp_stream_decodes_pixel_exact +60 stream::tests::t09::a_real_aomenc_stream_with_a_skipped_8x8_intra_leaf_whose_tx_split_decodes_pixel_exact +61 stream::tests::t04::a_real_aomenc_10bit_partial_bottom_stripe_restoration_decodes_pixel_exact +62 stream::tests::t09::a_real_aomenc_stream_with_a_16_level_1to4_partition_decodes_pixel_exact +63 stream::tests::t07::a_real_aomenc_stream_with_restoration_reads_lr_symbols_correctly +64 stream::tests::t08::a_real_aomenc_sb128_gathered_edge_horz_partition_decodes_pixel_exact +65 stream::tests::t08::a_real_aomenc_stream_with_a_32x32_frame_edge_rect_partition_decodes_pixel_exact +66 stream::tests::t08::a_real_aomenc_stream_with_a_split_transform_horz_vert_strip_decodes_pixel_exact +67 stream::tests::t06::a_real_compound_global_warp_10bit_stream_decodes_pixel_exact +68 stream::tests::t06::a_real_force_integer_mv_warp_10bit_stream_decodes_pixel_exact +69 stream::tests::t08::a_real_aomenc_sb128_ab_partition_at_the_128_root_decodes_pixel_exact +70 stream::tests::t04::a_superres_all_tools_sb128_stream_decodes_pixel_exact diff --git a/lanes/testcut/p2-av1stream.shard3.tsv b/lanes/testcut/p2-av1stream.shard3.tsv new file mode 100644 index 00000000..bc78b25a --- /dev/null +++ b/lanes/testcut/p2-av1stream.shard3.tsv @@ -0,0 +1,35 @@ +71 stream::tests::t04::a_real_stream_reconstructs_identically_with_one_and_four_recon_threads +72 stream::tests::t06::a_real_compound_global_warp_12bit_8x8_leaf_stream_decodes_pixel_exact +73 stream::tests::t07::a_real_aomenc_stream_with_variance_aq_segmentation_decodes_pixel_exact +74 stream::tests::t04::a_real_aomenc_inter_frame_with_a_64x64_intra_block_reads_the_no_cfl_uv_alphabet +75 stream::tests::t08::a_422_muchunk_compound_128root_pinned_stream_reaches_its_unit_walk +76 stream::tests::t07::a_real_aomenc_stream_with_cdef_decodes_pixel_exact +77 stream::tests::t09::the_frame_the_caller_receives_carries_no_unwritten_plane_sample +78 stream::tests::t09::a_real_aomenc_10bit_screen_inter_sequence_codes_palette_syntax_on_rect_intra_strips +79 stream::tests::t04::a_real_stream_filters_identically_with_one_and_four_filter_threads +80 stream::tests::t10::a_real_aomenc_inter_sequence_with_intra_sub8x8_leaves_decodes_pixel_exact +81 stream::tests::t08::a_real_aomenc_stream_with_a_1d_tx_class_on_a_rect_transform_decodes_pixel_exact +82 stream::tests::t08::a_422_muchunk_iis_128root_grad128_comp_stream_is_exact_and_reaches_its_unit_walk +83 stream::tests::t09::a_real_aomenc_stream_whose_frame_edge_partition_bit_is_horz_decodes_pixel_exact +84 stream::tests::t09::a_real_aomenc_inter_sequence_with_an_intra_1to4_strip_decodes_pixel_exact_10bit +85 stream::tests::t04::a_real_aomenc_10bit_obmc_over_1to4_strip_neighbours_decodes_pixel_exact +86 stream::tests::t09::the_two_10bit_film_pins_match_aomdec_on_every_decode_order_frame +87 stream::tests::t09::a_real_aomenc_multi_tile_inter_10bit_stream_decodes_pixel_exact +88 stream::tests::t08::a_real_aomenc_inter_128x128_none_root_decodes_pixel_exact +89 stream::tests::t07::a_real_aomenc_both_axes_cut_corner_inter_frames_decode_pixel_exact +90 stream::tests::t08::a_real_aomenc_key_frame_with_a_128x128_none_partition_decodes_pixel_exact +91 stream::tests::t07::a_real_aomenc_compound_mv_stack_across_two_tile_columns_decodes_pixel_exact +92 stream::tests::t09::a_real_aomenc_inter_sequence_with_a_split_transform_intra_strip_decodes_pixel_exact +93 stream::tests::t06::a_real_force_integer_mv_warp_stream_decodes_pixel_exact +94 stream::tests::t08::a_real_aomenc_intra_stream_with_tx_size_search_and_chroma_decodes_pixel_exact +95 stream::tests::t09::a_real_aomenc_inter_sequence_with_an_intra_1to4_strip_decodes_pixel_exact +96 stream::tests::t10::a_420_lossless_rect_chroma_walk_is_bounded_by_the_chroma_plane +97 stream::tests::t06::a_real_aomenc_stream_with_ab_partitions_decodes_pixel_exact +98 stream::tests::t01::a_real_aomenc_128x128_superblock_stream_decodes_pixel_exact +99 stream::tests::t01::a_real_aomenc_mixed_lossless_segment_frame_decodes_sample_exact +100 stream::tests::t09::the_grained_picture_the_caller_receives_carries_no_unwritten_plane_sample +101 stream::tests::t01::a_real_obmc_stream_reads_a_recorded_switchable_filter_for_every_neighbour +102 stream::tests::t03::a_real_aomenc_10bit_stream_with_a_rect_transform_decodes_pixel_exact +103 stream::tests::t01::a_real_aomenc_inter_frame_edge_half_strip_decodes_pixel_exact +104 stream::tests::t07::a_real_aomenc_compound_mv_stack_with_global_motion_decodes_pixel_exact +105 stream::tests::t06::a_real_aomenc_10bit_stream_with_onesided_compound_decodes_pixel_exact diff --git a/scripts/kill-matrix-analyze.py b/scripts/kill-matrix-analyze.py new file mode 100755 index 00000000..b4c36f8c --- /dev/null +++ b/scripts/kill-matrix-analyze.py @@ -0,0 +1,291 @@ +#!/usr/bin/env python3 +"""Local analysis for the batched kill matrix (see lanes/testcut.phase2.md, "Batched variant"). + +Subcommands (paths are absolute or relative to the lane root): + + sample MUTANTS.tsv COVDIR N SEED OUT_IDX OUT_JSON + Stratified per-file seeded sample of mutants whose start line is covered by at + least one heavy test. OUT_JSON holds the sample (indices 0..N-1 in OUT_IDX). + survivors MUTANTS.json FASTDIR OUT_IDX + Indices whose fast-suite status is "pass" (survived the fast suite). + heavyjobs MUTANTS.json COVDIR SURV_IDX OUT_IDXFILE TESTSDIR + For each survivor, the heavy tests whose coverage includes its line. Writes + "\\t" lines for scripts/kill-matrix.sh mutrun heavy. + decide MUTANTS.json COVDIR FASTCOV.json FASTDIR HEAVYDIR TIMES.tsv KILLTSV REPORT_MD + failing LOG TESTS OUT + Test names from TESTS that nextest marks FAIL/TIMEOUT/signal in LOG (heavy mode). + compact LLVM_COV.json OUT.json + Reduce one llvm-cov JSON to executed ec-av1 regions (run on the server to keep + the copied-back data small). + +COVDIR holds index.tsv (ordinal, test name) and .json per heavy test. +""" +import json +import os +import random +import re +import sys +from collections import defaultdict + +PROTECTED = re.compile(r"pinned|pins?_|_pins?\b|golden|sha256|vector|conformance|fuzz|realtime|faster|speedup|beats_the_incumbent") + + +def compact(cov_json_path, out_path): + """Reduce an `llvm-cov report --json` file to the ec-av1 regions executed at least once. + + Output: JSON list of [file, line_start, col_start, line_end, col_end]. + """ + cov = json.load(open(cov_json_path)) + keys = set() + for fn in cov["data"][0]["functions"]: + names = fn.get("filenames", []) + for r in fn["regions"]: + if r[4] <= 0: + continue + f = names[r[5]] + if "crates/ec-av1/src/" in f: + keys.add((f, r[0], r[1], r[2], r[3])) + json.dump(sorted(list(k) for k in keys), open(out_path, "w")) + return keys + + +def load_regions(path): + return {tuple(k) for k in json.load(open(path))} + + +def norm(f): + """Workspace-relative path from "crates/" on (LLVM paths are absolute, mutant paths relative).""" + return f[f.index("crates/"):] if "crates/" in f else f + + +def covered_lines(regions): + lines = defaultdict(set) # normalized file -> set of lines covered + for (f, l1, _, l2, _) in regions: + lines[norm(f)].update(range(l1, l2 + 1)) + return lines + + +def load_index(covdir): + rows = [] + with open(os.path.join(covdir, "index.tsv")) as fh: + for line in fh: + i, name = line.rstrip("\n").split("\t") + rows.append((i, name)) + return rows + + +def covers_line(cov_lines, mutant): + line = mutant["span"]["start"]["line"] + return line in cov_lines.get(norm(mutant["file"]), set()) + + +def read_mutants_tsv(path): + """All mutants, in `cargo mutants --list --json` order: one TSV row per mutant (see README in the report).""" + rows = [] + for line in open(path): + f, sl, sc, el, ec, rep, fn, genre, name = line.rstrip("\n").split("\t", 8) + rows.append({"file": f, "span": {"start": {"line": int(sl), "column": int(sc)}, + "end": {"line": int(el), "column": int(ec)}}, + "replacement": rep, "function": fn, "genre": genre, "name": name}) + return rows + + +def cmd_sample(tsv_path, covdir, n, seed, out_idx, out_json): + """Seeded, per-file stratified sample of mutants whose start line is covered by a heavy test. + + out_json is the sample itself as a JSON array (same fields mutate.py reads). Its position is + the sample index used by the other subcommands; "global" keeps the index in the full list. + """ + mutants = read_mutants_tsv(tsv_path) + union = defaultdict(set) + for i, _ in load_index(covdir): + for f, ls in covered_lines(load_regions(os.path.join(covdir, f"{i}.json"))).items(): + union[f] |= ls + by_file = defaultdict(list) + for gidx, m in enumerate(mutants): + if covers_line(union, m): + by_file[m["file"]].append(gidx) + total = sum(len(v) for v in by_file.values()) + rng = random.Random(seed) + picked = [] + for f in sorted(by_file): + quota = max(1, round(n * len(by_file[f]) / total)) + picked += rng.sample(by_file[f], min(quota, len(by_file[f]))) + picked = sorted(rng.sample(picked, min(n, len(picked)))) + sample = [] + for g in picked: + m = dict(mutants[g]) + m["global"] = g + sample.append(m) + json.dump(sample, open(out_json, "w")) + with open(out_idx, "w") as fh: + fh.write("".join(f"{i}\n" for i in range(len(sample)))) + print(f"eligible={total} files={len(by_file)} sampled={len(sample)} seed={seed}") + + +def read_statuses(d): + st = {} + for name in os.listdir(d): + if name.endswith(".status"): + st[int(name.split(".")[0])] = open(os.path.join(d, name)).read().strip() + return st + + +def cmd_survivors(mutants_path, fastdir, out): + st = read_statuses(fastdir) + surv = sorted(i for i, s in st.items() if s == "pass") + open(out, "w").write("".join(f"{i}\n" for i in surv)) + print(f"fast_run={len(st)} survivors={len(surv)} killed_by_fast={sum(1 for s in st.values() if s == 'fail')} unviable={sum(1 for s in st.values() if s == 'unviable')}") + + +def cmd_heavyjobs(mutants_path, covdir, surv_path, out, testsdir): + mutants = json.load(open(mutants_path)) + names = dict(load_index(covdir)) + cov = {} + for i in names: + cov[i] = covered_lines(load_regions(os.path.join(covdir, f"{i}.json"))) + os.makedirs(testsdir, exist_ok=True) + with open(out, "w") as fh: + for line in open(surv_path): + idx = int(line) + m = mutants[idx] + tests = [names[i] for i in names if covers_line(cov[i], m)] + tfile = os.path.join(testsdir, f"{idx}.txt") + with open(tfile, "w") as tf: + tf.write("".join(t + "\n" for t in tests)) + fh.write(f"{idx}\t{tfile}\n") + print(f"survivor {idx}: {m['file']}:{m['span']['start']['line']} covering_heavy={len(tests)}") + + +def cmd_decide(mutants_path, covdir, fastcov_path, fastdir, heavydir, times_path, killtsv, report_md): + mutants = json.load(open(mutants_path)) + names = dict(load_index(covdir)) + regs = {} + keep_names = set() + for fn in ("failed.txt", "nocov.txt"): + path = os.path.join(covdir, fn) + if os.path.exists(path): + keep_names |= {l.strip() for l in open(path) if l.strip()} + for i, name in names.items(): + jpath = os.path.join(covdir, f"{i}.json") + if os.path.exists(jpath): + regs[name] = load_regions(jpath) + else: + keep_names.add(name) + regs[name] = set() + fast = load_regions(fastcov_path) + secs = {} + for line in open(times_path): + parts = line.rstrip("\n").split("\t") + if len(parts) == 2: + secs[parts[0]] = float(parts[1]) + # Kill matrix: survivor -> failing heavy tests + kills = {} + for name in os.listdir(heavydir): + if name.endswith(".fail"): + idx = int(name.split(".")[0]) + kills[idx] = set(l.strip() for l in open(os.path.join(heavydir, name)) if l.strip()) + for idx in list(kills): + if not kills[idx]: + del kills[idx] + # Greedy runtime-weighted set cover over the kill matrix (Smith & Kapfhammer). + universe = set(kills) + kept, uncovered = [], set(universe) + tests_of = defaultdict(set) + for idx, ts in kills.items(): + for t in ts: + tests_of[t].add(idx) + while uncovered: + best = max(tests_of, key=lambda t: (len(tests_of[t] & uncovered) / secs.get(t, 1.0), t), default=None) + if best is None or not (tests_of[best] & uncovered): + break + kept.append(best) + uncovered -= tests_of[best] + kept_set = set(kept) + kept_regions = set(fast) + for t in kept: + kept_regions |= set(regs[t]) + rows = [] + deleted_secs = 0.0 + with open(killtsv, "w") as kt: + kt.write("mutant\tfile\tline\treplacement\tkilling_heavy_tests\n") + for idx in sorted(kills): + m = mutants[idx] + kt.write(f"{idx}\t{m['file']}\t{m['span']['start']['line']}\t{m['replacement']}\t{' ; '.join(sorted(kills[idx]))}\n") + for name in sorted(names.values(), key=lambda n: -secs.get(n, 0)): + u_fast = set(regs[name]) - set(fast) + u_kept = set(regs[name]) - kept_regions + kp = {idx for idx, ts in kills.items() if name in ts and not (ts & kept_set)} + if name in kept_set: + cls, action = "kept(cover)", "keep" + elif name in keep_names: + cls, action = "candidate", "keep (failed or no coverage)" + elif PROTECTED.search(name): + cls, action = "protected", "keep (protected)" + else: + cls = "candidate" + if u_kept: + action = "keep (unique coverage)" + elif kp: + action = "keep (unique kills)" + else: + action = "delete" + deleted_secs += secs.get(name, 0) + rows.append((name, cls, len(u_fast), len(u_kept), len(kp), action)) + with open(report_md, "w") as rp: + rp.write("| crate | test | seconds | class | |U(T)| vs fast | |U(T)| vs fast+kept | |K'| | decision |\n") + rp.write("|---|---|---|---|---|---|---|---|\n") + for name, cls, uf, uk, kp_n, action in rows: + rp.write(f"| ec-av1 | {name} | {secs.get(name, 0):.1f} | {cls} | {uf} | {uk} | {kp_n} | {action} |\n") + deletions = [r[0] for r in rows if r[5] == "delete"] + print(f"survivors_with_kills={len(kills)} kept_by_cover={len(kept)} candidates={sum(1 for r in rows if r[1]=='candidate')} deletable={len(deletions)} seconds_saved={deleted_secs:.1f}") + with open(os.path.join(os.path.dirname(report_md), os.path.basename(report_md) + ".deletions"), "w") as fh: + fh.write("".join(d + "\n" for d in deletions)) + + +def cmd_failing(log_path, tests_path, out_path): + """Names from TESTS that nextest reports as FAIL/TIMEOUT/signal in LOG (one per line in OUT).""" + names = [l.strip() for l in open(tests_path) if l.strip()] + status = re.compile(r"^\s*(FAIL|TIMEOUT|SIGSEGV|SIGABRT|SIGKILL|SIGILL|SIGBUS|SIGFPE|SIGTERM|LEAK|ABORT)\b") + text = re.sub(r"\x1b\[[0-9;]*[A-Za-z]", "", open(log_path, errors="replace").read()) + bad = set() + for line in text.splitlines(): + if status.match(line): + tail = line.rstrip() + bad.update(n for n in names if tail.endswith(" " + n)) + open(out_path, "w").write("".join(f"{n}\n" for n in sorted(bad))) + print(f"failing={len(bad)}") + + +def cmd_regex(sample_json, idx): + """Anchored, escaped regex that selects exactly one mutant by its `--list` name.""" + name = json.load(open(sample_json))[int(idx)]["name"] + special = set(".+*?()|[]{}^$\\#&-~") + print("^" + "".join("\\" + c if c in special else c for c in name) + "$") + + +def cmd_name(sample_json, idx): + print(json.load(open(sample_json))[int(idx)]["name"]) + + +if __name__ == "__main__": + cmd = sys.argv[1] + args = sys.argv[2:] + if cmd == "regex": + cmd_regex(args[0], args[1]) + elif cmd == "name": + cmd_name(args[0], args[1]) + elif cmd == "compact": + compact(args[0], args[1]) + elif cmd == "sample": + cmd_sample(args[0], args[1], int(args[2]), int(args[3]), args[4], args[5]) + elif cmd == "survivors": + cmd_survivors(args[0], args[1], args[2]) + elif cmd == "heavyjobs": + cmd_heavyjobs(args[0], args[1], args[2], args[3], args[4]) + elif cmd == "decide": + cmd_decide(*args) + elif cmd == "failing": + cmd_failing(args[0], args[1], args[2]) + else: + sys.exit(__doc__) diff --git a/scripts/kill-matrix.sh b/scripts/kill-matrix.sh new file mode 100755 index 00000000..d68401ea --- /dev/null +++ b/scripts/kill-matrix.sh @@ -0,0 +1,171 @@ +#!/usr/bin/env bash +# kill-matrix.sh: the heavy-compute steps of a batched mutation kill matrix for one crate. +# Reusable for any crate; defaults target ec-av1. Run it on a server through scripts/remote-run.sh, +# from the workspace root (remote-run's cwd), with the EC_* environment set by the caller: +# +# EC_MEMGUARD_MAX=12G EC_AV1_AOM_DIR=$HOME/fixtures/av1-aom EC_REQUIRE_FIXTURES=1 \ +# EC_TOOL_CACHE_DIR=$HOME/.cache/ec-tool-cache \ +# scripts/remote-run.sh --host auto -- scripts/kill-matrix.sh [args] +# +# Subcommands (CRATE defaults to ec-av1; OUT is a directory under the workspace): +# list mutants of $CRATE as JSON (cargo mutants --list --json) +# cover per-test region coverage: one instrumented run per test; TESTS +# lines are "\t"; writes OUT/.json (compact) +# fastcov coverage of the fast profile (the "fast suite") +# mutrun fast|heavy +# apply each mutant index in IDX (one per line), run the fast +# profile or the given heavy test list, record the failing tests +# in OUT/.fail, and revert the tree after each mutant. +# +# A mutant with a compile error is recorded as "unviable" and is not a kill or a survivor. +set -euo pipefail + +CRATE=${CRATE:-ec-av1} +ROOT=$(pwd) +TMP=${TMPDIR:-$HOME/tmp} +mkdir -p "$TMP" +export EC_MEMGUARD_MAX=${EC_MEMGUARD_MAX:-12G} +export EC_REQUIRE_FIXTURES=${EC_REQUIRE_FIXTURES:-1} +export EC_AV1_AOM_DIR=${EC_AV1_AOM_DIR:-$HOME/fixtures/av1-aom} +export EC_TOOL_CACHE_DIR=${EC_TOOL_CACHE_DIR:-$HOME/.cache/ec-tool-cache} +NEXTEST_J=${NEXTEST_J:-4} +MUTATE="python3 $ROOT/scripts/mutate.py" + +sub=${1:?subcommand} +shift + +# Per-test profraw are kept per run; report merges what is on disk. +llvm_clean() { cargo llvm-cov clean --profraw-only -p "$CRATE" >/dev/null 2>&1 || true; } + +# A child process that dies mid-write leaves a truncated .profraw, and llvm-cov report then fails +# for the whole merge. Delete every profile that llvm-profdata cannot read, and log the count. +prune_profraw() { + local pd f n=0 + pd=$(rustc --print sysroot)/lib/rustlib/x86_64-unknown-linux-gnu/bin/llvm-profdata + local dir="${CARGO_TARGET_DIR:-target}/llvm-cov-target" + while IFS= read -r f; do + if ! "$pd" show "$f" >/dev/null 2>&1; then + rm -f "$f" + n=$((n + 1)) + fi + done < <(find "$dir" -name '*.profraw' 2>/dev/null) + echo "prune_profraw: deleted $n unreadable profraw under $dir" >&2 +} + +# Heavy mode: apply one mutant to this tree (scripts/mutate.py), run the listed heavy tests with +# --no-fail-fast, and record every failing test in OUT/.fail. cargo-mutants stops at the first +# failing test, so it cannot produce the full kill set that the matrix needs. +# A timeout records every listed test as killing (conservative: it keeps them). +heavy_one() { + local json=$1 idx=$2 tests=$3 out=$4 expr="" name rc + while IFS= read -r name; do + [ -n "$name" ] || continue + expr+="${expr:+ | }test(=$name)" + done < "$tests" + rm -f "$out/$idx.fail" "$out/$idx.status" + if [ -z "$expr" ]; then + : > "$out/$idx.fail"; echo pass > "$out/$idx.status"; return 0 + fi + python3 scripts/mutate.py apply "$json" "$idx" "$ROOT" > "$out/$idx.apply.txt" 2>&1 + set +e + timeout 3600 cargo nextest run -p "$CRATE" --no-fail-fast -j "$NEXTEST_J" -E "$expr" > "$out/$idx.log" 2>&1 + rc=$? + set -e + python3 scripts/mutate.py revert "$ROOT" + if [ "$rc" -eq 124 ]; then + cp "$tests" "$out/$idx.fail"; echo fail > "$out/$idx.status" + echo "heavy_one: mutant $idx timed out; all covering tests recorded" >&2 + return 0 + fi + if ! grep -q 'Summary' "$out/$idx.log"; then + echo unviable > "$out/$idx.status"; return 0 + fi + python3 scripts/kill-matrix-analyze.py failing "$out/$idx.log" "$tests" "$out/$idx.fail" + if [ -s "$out/$idx.fail" ]; then echo fail > "$out/$idx.status"; else echo pass > "$out/$idx.status"; fi +} + +case $sub in +list) + out=$1; mkdir -p "$out" + (cd "crates/$CRATE" && cargo mutants -p "$CRATE" --list --json) > "$out/mutants.json" + echo "mutants: $(python3 -c "import json,sys;print(len(json.load(open('$out/mutants.json'))))")" + ;; +cover) + tests=$1; out=$2; mkdir -p "$out" + # TESTS lines: "". The ordinal names the output files, so shards + # run on different hosts can be merged by ordinal. + while IFS=$'\t' read -r i name; do + [ -n "$name" ] || continue + llvm_clean + # A failing test still leaves its profile behind; the coverage is what matters here. + cargo llvm-cov nextest --no-report --no-fail-fast -p "$CRATE" -j "$NEXTEST_J" \ + -E "test(=$name)" > "$out/$i.log" 2>&1 || { + # Coverage of a failing run is still reported, but it is not a clean baseline. + echo "cover: test $i exited non-zero: $name" >&2 + printf '%s\n' "$name" >> "$out/failed.txt" + } + prune_profraw + # A missing report is not fatal: the test is recorded as "nocov" and the analysis keeps it. + if cargo llvm-cov report --json --output-path "$TMP/cov-$i.json" >/dev/null 2>&1 \ + && python3 scripts/kill-matrix-analyze.py compact "$TMP/cov-$i.json" "$out/$i.json"; then + printf '%s\t%s\n' "$i" "$name" >> "$out/index.tsv" + else + echo "cover: no coverage report for test $i: $name" >&2 + printf '%s\n' "$name" >> "$out/nocov.txt" + printf '%s\t%s\n' "$i" "$name" >> "$out/index.tsv" + fi + rm -f "$TMP/cov-$i.json" + done < "$tests" + ;; +fastcov) + out=$1; mkdir -p "$out" + llvm_clean + cargo llvm-cov nextest --no-report --no-fail-fast -p "$CRATE" --profile fast -j "$NEXTEST_J" > "$out/fast.log" 2>&1 || true + prune_profraw + if ! { cargo llvm-cov report --json --output-path "$TMP/fast-cov.json" >/dev/null 2>&1 \ + && python3 scripts/kill-matrix-analyze.py compact "$TMP/fast-cov.json" "$out/fast.json"; }; then + echo "fastcov: no coverage report; see $out/fast.log" >&2 + fi + rm -f "$TMP/fast-cov.json" + ;; +mutrun) + # Fast mode: cargo-mutants applies, builds and runs each sampled mutant itself. Each one is selected + # by its exact name (-F/--re over the names `--list` shows), so no span is applied by this script. + json=$1; idxfile=$2; out=$3; mode=$4 + mkdir -p "$out" + # idxfile lines: "" (fast) or "" (heavy, one list per mutant). + while IFS=$'\t' read -r idx tests; do + [ -n "$idx" ] || continue + if [ "$mode" = heavy ]; then + heavy_one "$json" "$idx" "$tests" "$out" + echo "mutrun: heavy mutant $idx status=$(cat "$out/$idx.status")" >&2 + continue + fi + re=$(python3 scripts/kill-matrix-analyze.py regex "$json" "$idx") + sel=(--cargo-test-arg=--profile --cargo-test-arg=fast) + rm -rf "$out/$idx.d" + set +e + cargo mutants -p "$CRATE" --test-tool nextest --baseline skip --timeout-multiplier 3 \ + --re "$re" "${sel[@]}" --output "$out/$idx.d" > "$out/$idx.log" 2>&1 + rc=$? + set -e + mo="$out/$idx.d/mutants.out" + if [ -f "$mo/caught.txt" ] && grep -qF "$(python3 scripts/kill-matrix-analyze.py name "$json" "$idx")" "$mo/caught.txt"; then + echo fail > "$out/$idx.status" # killed by the selected tests + elif [ -f "$mo/timeout.txt" ] && grep -qF "$(python3 scripts/kill-matrix-analyze.py name "$json" "$idx")" "$mo/timeout.txt"; then + echo fail > "$out/$idx.status" + elif [ -f "$mo/unviable.txt" ] && grep -qF "$(python3 scripts/kill-matrix-analyze.py name "$json" "$idx")" "$mo/unviable.txt"; then + echo unviable > "$out/$idx.status" + elif [ -f "$mo/missed.txt" ] && grep -qF "$(python3 scripts/kill-matrix-analyze.py name "$json" "$idx")" "$mo/missed.txt"; then + echo pass > "$out/$idx.status" # survived the selected tests + else + echo "error rc=$rc" > "$out/$idx.status" + fi + echo "mutrun: $mode mutant $idx status=$(cat "$out/$idx.status")" >&2 + done < "$idxfile" + ;; +*) + sed -n '2,20p' "$0" >&2 + exit 2 + ;; +esac diff --git a/scripts/mutate.py b/scripts/mutate.py new file mode 100755 index 00000000..bd3bf777 --- /dev/null +++ b/scripts/mutate.py @@ -0,0 +1,62 @@ +#!/usr/bin/env python3 +"""Apply or revert one cargo-mutants mutant in place, from `cargo mutants --list --json`. + +Used by scripts/kill-matrix.sh on a scratch copy of the tree (never on the local checkout). + + mutate.py apply # writes the mutated file, saves the original + mutate.py revert # restores every file saved by apply + +The original bytes are kept in /.mutate-backup/ so revert is exact. +""" +import json +import os +import shutil +import sys + + +def offset(text_lines, line, col): + # cargo-mutants spans are 1-based line and 1-based char column (inclusive start, exclusive end). + return sum(len(l) for l in text_lines[: line - 1]) + (col - 1) + + +def apply(json_path, index, root): + mutants = json.load(open(json_path)) + m = mutants[index] + rel = m["file"] + path = os.path.join(root, rel) + backup_dir = os.path.join(root, ".mutate-backup") + os.makedirs(backup_dir, exist_ok=True) + backup = os.path.join(backup_dir, rel.replace("/", "__")) + if not os.path.exists(backup): + shutil.copy2(path, backup) + with open(path, encoding="utf-8", newline="") as f: + text = f.read() + lines = text.splitlines(keepends=True) + s = m["span"]["start"] + e = m["span"]["end"] + a = offset(lines, s["line"], s["column"]) + b = offset(lines, e["line"], e["column"]) + original = text[a:b] + new = text[:a] + m["replacement"] + text[b:] + with open(path, "w", encoding="utf-8", newline="") as f: + f.write(new) + print(f"mutant {index}: {rel}:{s['line']}:{s['column']} {original!r} -> {m['replacement']!r}") + + +def revert(root): + backup_dir = os.path.join(root, ".mutate-backup") + if not os.path.isdir(backup_dir): + return + for name in os.listdir(backup_dir): + rel = name.replace("__", "/") + shutil.copy2(os.path.join(backup_dir, name), os.path.join(root, rel)) + os.remove(os.path.join(backup_dir, name)) + + +if __name__ == "__main__": + if sys.argv[1] == "apply": + apply(sys.argv[2], int(sys.argv[3]), sys.argv[4]) + elif sys.argv[1] == "revert": + revert(sys.argv[2]) + else: + sys.exit(__doc__)