Lune

PLDI2023顶会

Fuzzing Loop Optimizations in Compilers for C++ and Data-Parallel Languages

Vsevolod Livinskii, Dmitry Babokin, John Regehr

摘要

Compilers are part of the foundation upon which software systems are built; they need to be as correct as possible. This paper is about stress-testing loop optimizers; it presents a major reimplementation of Yet Another Random Program Generator (YARPGen), an open-source generative compiler fuzzer. This new version has found 122 bugs, both in compilers for data-parallel languages, such as the Intel ® Implicit SPMD Program Compiler and the Intel ® oneAPI DPC++ compiler, and in C++ compilers such as GCC and Clang/LLVM. The first main contribution of our work is a novel method for statically avoiding undefined behavior when generating loops; the resulting programs conform to the relevant language standard, enabling automated testing. The second main contribution is a collection of mechanisms for increasing the diversity of generated loop code; in our evaluation, we demonstrate that these make it possible to trigger loop optimizations significantly more often, providing opportunities to discover bugs in the optimizers.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • Validating JIT Compilers via Compilation Space Exploration 引用了 Alive2: bounded translation validation for LLVM
  • Validating JIT Compilers via Compilation Space Exploration 引用了 The Mutators Reloaded: Fuzzing Compilers with Large Language Model Generated Mutation Operators
  • The Mutators Reloaded: Fuzzing Compilers with Large Language Model Generated Mutation Operators 引用了 Validating JIT Compilers via Compilation Space Exploration
  • Validating JIT Compilers via Compilation Space Exploration 引用了 Boosting Compiler Testing by Injecting Real-World Code
  • Unveiling Compiler Faults via Attribute-Guided Compilation Space Exploration 引用了 Validating JIT Compilers via Compilation Space Exploration
  • Unveiling Compiler Faults via Attribute-Guided Compilation Space Exploration 引用了 The Mutators Reloaded: Fuzzing Compilers with Large Language Model Generated Mutation Operators
  • Unveiling Compiler Faults via Attribute-Guided Compilation Space Exploration 引用了 Boosting Compiler Testing by Injecting Real-World Code
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper25

  1. The Mutators Reloaded: Fuzzing Compilers with Large Language Model Generated Mutation OperatorsXianfei Ou, Cong Li, Yanyan Jiang, Chang XuASPLOS 2024 · 25 次引用
  2. Boosting Compiler Testing by Injecting Real-World CodeShaohua Li, Theodoros Theodoridis, Zhendong SuPLDI 2024 · 24 次引用
  3. Validating JIT Compilers via Compilation Space ExplorationCong Li, Yanyan Jiang, Chang Xu, Zhendong SuSOSP 2023 · 22 次引用
  4. API-Driven Program Synthesis for Testing Static Typing ImplementationsThodoris Sotiropoulos, Stefanos Chaliasos, Zhendong SuPOPL 2024 · 15 次引用
  5. Unveiling Compiler Faults via Attribute-Guided Compilation Space ExplorationJiangchang Wu, Yibiao Yang, Maolin Sun, Yuming ZhouUSENIX ATC 2025 · 6 次引用

它引用的 Paper2

  1. Alive2: bounded translation validation for LLVMNuno P. Lopes, Juneyoung Lee, Chung-Kil Hur, Zhengyang Liu 等PLDI 2021 · 109 次引用
  2. Generative type-aware mutation for testing SMT solversJiwon Park, Dominik Winterer, Chengyu Zhang, Zhendong SuOOPSLA 2021 · 31 次引用

相关 Paper

  1. Random testing for C and C++ compilers with YARPGenVsevolod Livinskii, Dmitry Babokin, John RegehrOOPSLA 2020 · 140 次引用
  2. FLUX: Finding Bugs with LLVM IR Based Unit Test CrossoversEric Liu, Shengjie Xu, David LieASE 2023 · 8 次引用
  3. Test-case reduction and deduplication almost for free with transformation-based compiler testingAlastair F. Donaldson, Paul Thomson, Vasyl Teliman, Stefano Milizia 等PLDI 2021 · 39 次引用
  4. Semantic Reification: A New Paradigm for Random Program GenerationKavya Chopra, Cong Li, Thodoris Sotiropoulos, Zhendong SuPLDI 2026
  5. A Generative and Mutational Approach for Synthesizing Bug-Exposing Test Cases to Guide Compiler FuzzingGuixin Ye, Tianmin Hu, Zhanyong Tang, Zhenye Fan 等FSE 2023 · 14 次引用
黄昏的海面,两侧是细线勾勒的悬崖