Lune

OOPSLA2023顶会

Pushing the Limit of 1-Minimality of Language-Agnostic Program Reduction

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

摘要

Program reduction has demonstrated its usefulness in facilitating debugging language implementations in practice, by minimizing bug-triggering programs. There are two categories of program reducers: language-agnostic program reducers (AGRs) and language-specific program reducers (SPRs). AGRs, such as HDD and Perses, are generally applicable to various languages; SPRs are specifically designed for one language with meticulous thoughts and significant engineering efforts, e.g., C-Reduce for reducing C/C++ programs. Program reduction is an NP-complete problem: finding the globally minimal program is usually infeasible. Thus all existing program reducers resort to producing 1-minimal results, a special type of local minima. However, 1-minimality can still be large and contain excessive bug-irrelevant program elements. This is especially the case for AGR-produced results because of the generic reduction algorithms used in AGRs. An SPR often yields smaller results than AGRs for the language for which the SPR has customized reduction algorithms. But SPRs are not language-agnostic, and implementing a new SPR for a different language requires significant engineering efforts. This paper proposes Vulcan, a language-agnostic framework to further minimize AGRs-produced results by exploiting the formal syntax of the language to perform aggressive program transformations, in hope of creating reduction opportunities for other reduction algorithms to progress or even directly deleting bugirrelevant elements from the results. Our key insights are two-fold. First, the program transformations in all existing program reducers including SPRs are not diverse enough, which traps these program reducers early in 1-minimality. Second, compared with the original program, the results of AGRs are much smaller, and time-wise it is affordable to perform diverse program transformations that change programs but do not necessarily reduce the sizes of the programs directly. Within the Vulcan framework, we proposed three simple examples of fine-grained program transformations to demonstrate that Vulcan can indeed further push the 1-minimality of AGRs. By performing these program transformations, a 1-minimal program might become a non-1-minimal one that can be further reduced later. Our extensive evaluations on multilingual benchmarks including C, Rust and SMT-LIBv2 programs strongly demonstrate the effectiveness and generality of Vulcan. Vulcan outperforms the state-of-the-art language-agnostic program reducer Perses in size in all benchmarks: On average, the result of Vulcan contains 33.55%, 21.61%, and 31.34% fewer tokens than that of Perses on C, Rust, and SMT-LIBv2 subjects respectively. Vulcan can produce even smaller results if more reduction time is allocated. Moreover, for the C programs that are reduced by C-Reduce, Vulcan is even able to further minimize them by 10.07%.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 10 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Logical bytecode reduction 引用了 Effective Program Debloating via Reinforcement Learning
  • Towards Diverse Program Transformations for Program Simplification 引用了 LPR: Large Language Models-Aided Program Reduction
  • Towards Diverse Program Transformations for Program Simplification 引用了 Probabilistic Delta debugging
  • Towards Diverse Program Transformations for Program Simplification 引用了 Effective Program Debloating via Reinforcement Learning
  • LPR: Large Language Models-Aided Program Reduction 引用了 Logical bytecode reduction
  • LPR: Large Language Models-Aided Program Reduction 引用了 Probabilistic Delta debugging
  • LPR: Large Language Models-Aided Program Reduction 引用了 Effective Program Debloating via Reinforcement Learning
  • WDD: Weighted Delta Debugging 引用了 Logical bytecode reduction
  • WDD: Weighted Delta Debugging 引用了 LPR: Large Language Models-Aided Program Reduction
  • WDD: Weighted Delta Debugging 引用了 Probabilistic Delta debugging
  • WDD: Weighted Delta Debugging 引用了 Toward a Better Understanding of Probabilistic Delta Debugging
  • Toward a Better Understanding of Probabilistic Delta Debugging 引用了 WDD: Weighted Delta Debugging
  • WDD: Weighted Delta Debugging 引用了 Effective Program Debloating via Reinforcement Learning
  • Probabilistic Delta debugging 引用了 Effective Program Debloating via Reinforcement Learning
  • Toward a Better Understanding of Probabilistic Delta Debugging 引用了 Logical bytecode reduction
  • Toward a Better Understanding of Probabilistic Delta Debugging 引用了 LPR: Large Language Models-Aided Program Reduction
  • Toward a Better Understanding of Probabilistic Delta Debugging 引用了 Probabilistic Delta debugging
  • Toward a Better Understanding of Probabilistic Delta Debugging 引用了 Effective Program Debloating via Reinforcement Learning
  • Towards Understanding the Bugs in Solidity Compiler 引用了 LPR: Large Language Models-Aided Program Reduction
  • Towards Understanding the Bugs in Solidity Compiler 引用了 Probabilistic Delta debugging
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper10

  1. LPR: Large Language Models-Aided Program ReductionMengxiao Zhang, Yongqiang Tian, Zhenyang Xu, Yiwen Dong 等ISSTA 2024 · 13 次引用
  2. Towards Understanding the Bugs in Solidity CompilerHaoyang Ma, Wuqi Zhang, Qingchao Shen, Yongqiang Tian 等ISSTA 2024 · 9 次引用
  3. WDD: Weighted Delta DebuggingXintong Zhou, Zhenyang Xu, Mengxiao Zhang, Yongqiang Tian 等ICSE 2025 · 5 次引用
  4. Toward a Better Understanding of Probabilistic Delta DebuggingMengxiao Zhang, Zhenyang Xu, Yongqiang Tian, Xinru Cheng 等ICSE 2025 · 4 次引用
  5. Towards Diverse Program Transformations for Program SimplificationHaibo Wang, Zezhong Xing, Chengnian Sun, Zheng Wang 等FSE 2025 · 1 次引用

它引用的 Paper4

  1. NAUTILUS: Fishing for Deep Bugs with GrammarsCornelius Aschermann, Tommaso Frassetto, Thorsten Holz, Patrick Jauernig 等NDSS 2019 · 291 次引用
  2. Effective Program Debloating via Reinforcement LearningKihong Heo, Woosuk Lee, Pardis Pashakhanloo, Mayur NaikCCS 2018 · 175 次引用
  3. Probabilistic Delta debuggingGuancheng Wang, Ruobing Shen, Junjie Chen, Yingfei Xiong 等FSE 2021 · 56 次引用
  4. Logical bytecode reductionChristian Gram Kalhauge, Jens PalsbergPLDI 2021 · 16 次引用

相关 Paper

  1. Boosting Program Reduction with the Missing Piece of Syntax-Guided TransformationsZhenyang Xu, Yongqiang Tian, Mengxiao Zhang, Chengnian SunOOPSLA 2025 · 1 次引用
  2. Latra: A Template-Based Language-Agnostic Transformation Framework for Effective Program ReductionZhenyang Xu, Yiran Wang, Yongqiang Tian, Mengxiao Zhang 等ASE 2025 · 1 次引用
  3. PPR: Pairwise Program ReductionMengxiao Zhang, Zhenyang Xu, Yongqiang Tian, Yu Jiang 等FSE 2023 · 13 次引用
  4. Type Batched Program ReductionGolnaz Gharachorlu, Nick SumnerISSTA 2023 · 1 次引用
  5. Structure-Aware Delta Debugging with Geometric-Information WeightsYonggang Tao, Jingling XueFSE 2026
黄昏的海面,两侧是细线勾勒的悬崖