Lune

FSE2023Top-tier venue

PPR: Pairwise Program Reduction

Mengxiao Zhang, Zhenyang Xu, Yongqiang Tian, Yu Jiang, Chengnian Sun

Abstract

Program reduction is a practical technique widely used for debugging compilers. To report a compiler bug with a bug-triggering program, one needs to minimize the program by removing bugirrelevant program elements first. Though existing program reduction techniques, such as C-Reduce and Perses, can reduce a bug-triggering program as a whole, they overlook the fact that the degree of relevance of each remaining token to the bug varies.

To this end, we propose Pairwise Program Reduction (PPR), a new program reduction technique for minimizing a pair of programs w.r.t. certain properties. Given a seed program 𝑃 𝑠 , a variant 𝑃 𝑣 derived from 𝑃 𝑠 , and the properties 𝑃 𝑠 and 𝑃 𝑣 exhibit separately (e.g., 𝑃 𝑣 crashes a compiler whereas 𝑃 𝑠 does not), PPR not only reduces the sizes of 𝑃 𝑠 and 𝑃 𝑣 , but also minimizes the differences between 𝑃 𝑠 and 𝑃 𝑣 . The final result of PPR is a pair of minimized programs that still preserve the properties, but the minimized differences between the pair highlight the critical program elements that are highly related to the bug.

To thoroughly evaluate PPR, we manually constructed the first pairwise benchmark suite from real-world compiler bugs (20 bugs in GCC and LLVM, 9 bugs in Rustc and 9 bugs in JerryScript). The evaluation results show that PPR significantly outperforms the baseline: DD, a variant of Delta Debugging. Specifically, on large and complex programs, PPR's reduction results are only 0.6% of those by DD w.r.t. program size. The sizes of the minimized variants (i.e., 𝑃 𝑣 ) by PPR are also comparable to those by Perses and C-Reduce; but PPR offers more for debugging by highlighting the critical, bug-inducing changes via the minimized differences. Evaluation on Rust and JavaScript demonstrates PPR's strong generality to other languages.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

9 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • LPR: Large Language Models-Aided Program Reduction cites Random testing for C and C++ compilers with YARPGen
  • LPR: Large Language Models-Aided Program Reduction cites Probabilistic Delta debugging
  • LPR: Large Language Models-Aided Program Reduction cites Test-case reduction and deduplication almost for free with transformation-based compiler testing
  • DuoReduce: Bug Isolation for Multi-layer Extensible Compilation cites LPR: Large Language Models-Aided Program Reduction
  • DuoReduce: Bug Isolation for Multi-layer Extensible Compilation cites Probabilistic Delta debugging
  • DuoReduce: Bug Isolation for Multi-layer Extensible Compilation cites Test-case reduction and deduplication almost for free with transformation-based compiler testing
  • WDD: Weighted Delta Debugging cites LPR: Large Language Models-Aided Program Reduction
  • WDD: Weighted Delta Debugging cites Probabilistic Delta debugging
  • Boosting Program Reduction with the Missing Piece of Syntax-Guided Transformations cites LPR: Large Language Models-Aided Program Reduction
  • Boosting Program Reduction with the Missing Piece of Syntax-Guided Transformations cites WDD: Weighted Delta Debugging
  • Boosting Program Reduction with the Missing Piece of Syntax-Guided Transformations cites Random testing for C and C++ compilers with YARPGen
  • Boosting Program Reduction with the Missing Piece of Syntax-Guided Transformations cites Probabilistic Delta debugging
  • Boosting Program Reduction with the Missing Piece of Syntax-Guided Transformations cites Test-case reduction and deduplication almost for free with transformation-based compiler testing
  • Probabilistic Delta debugging cites Test-case reduction and deduplication almost for free with transformation-based compiler testing
  • Test-case reduction and deduplication almost for free with transformation-based compiler testing cites Random testing for C and C++ compilers with YARPGen
  • Towards Understanding the Bugs in Solidity Compiler cites LPR: Large Language Models-Aided Program Reduction
  • Towards Understanding the Bugs in Solidity Compiler cites Probabilistic Delta debugging
  • Towards Understanding the Bugs in Solidity Compiler cites Enhanced Compiler Bug Isolation via Memoized Search
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers9

  1. LPR: Large Language Models-Aided Program ReductionMengxiao Zhang, Yongqiang Tian, Zhenyang Xu, Yiwen Dong et al.ISSTA 2024 · 13 citations
  2. Towards Understanding the Bugs in Solidity CompilerHaoyang Ma, Wuqi Zhang, Qingchao Shen, Yongqiang Tian et al.ISSTA 2024 · 9 citations
  3. WDD: Weighted Delta DebuggingXintong Zhou, Zhenyang Xu, Mengxiao Zhang, Yongqiang Tian et al.ICSE 2025 · 5 citations
  4. Boosting Program Reduction with the Missing Piece of Syntax-Guided TransformationsZhenyang Xu, Yongqiang Tian, Mengxiao Zhang, Chengnian SunOOPSLA 2025 · 1 citation
  5. DuoReduce: Bug Isolation for Multi-layer Extensible CompilationJiyuan Wang, Yuxin Qiu, Ben Limpanukorn, Hong Jin Kang et al.FSE 2025

Builds on7

  1. NAUTILUS: Fishing for Deep Bugs with GrammarsCornelius Aschermann, Tommaso Frassetto, Thorsten Holz, Patrick Jauernig et al.NDSS 2019 · 291 citations
  2. Random testing for C and C++ compilers with YARPGenVsevolod Livinskii, Dmitry Babokin, John RegehrOOPSLA 2020 · 140 citations
  3. Probabilistic Delta debuggingGuancheng Wang, Ruobing Shen, Junjie Chen, Yingfei Xiong et al.FSE 2021 · 56 citations
  4. Test-case reduction and deduplication almost for free with transformation-based compiler testingAlastair F. Donaldson, Paul Thomson, Vasyl Teliman, Stefano Milizia et al.PLDI 2021 · 39 citations
  5. Enhanced Compiler Bug Isolation via Memoized SearchJunjie Chen, Haoyang Ma, Lingming ZhangASE 2020 · 36 citations

Related papers

  1. Pushing the Limit of 1-Minimality of Language-Agnostic Program ReductionZhenyang Xu, Yongqiang Tian, Mengxiao Zhang, Gaosen Zhao et al.OOPSLA 2023 · 21 citations
  2. Execution-Aware Program Reduction for WebAssembly via Record and ReplayDoehyun Baek, Daniel Lehmann, Ben L. Titzer, Sukyoung Ryu et al.ASE 2025
  3. E2WR: An Effective and Efficient Reduction Framework for WebAssembly BinariesShiyao Zhou, Ningyu He, David Lo, Xiapu LuoISSTA 2026
  4. Structure-Aware Delta Debugging with Geometric-Information WeightsYonggang Tao, Jingling XueFSE 2026
  5. On the Feasibility of Deduplicating Compiler Bugs with BisectionXintong Zhou, Zhenyang Xu, Yongqiang Tian, Chengnian SunISSTA 2026 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines