An SMT Encoding of LLVM's Memory Model for Bounded Translation Validation
Juneyoung Lee, Dongjoo Kim, Chung-Kil Hur, Nuno P. Lopes
摘要
Abstract Several automatic verification tools have been recently developed to verify subsets of LLVM’s optimizations. However, none of these tools has robust support to verify memory optimizations. In this paper, we present the first SMT encoding of LLVM’s memory model that 1) is sufficiently precise to validate all of LLVM’s intra-procedural memory optimizations, and 2) enables bounded translation validation of programs with up to hundreds of thousands of lines of code. We implemented our new encoding in Alive2, a bounded translation validation tool, and used it to uncover 21 new bugs in LLVM memory optimizations, 10 of which have been already fixed. We also found several inconsistencies in LLVM IR’s official specification document (LangRef) and fixed LLVM’s code and the document so they are in agreement.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 8 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- First-Class Verification Dialects for MLIR 引用了 Alive2: bounded translation validation for LLVM
- First-Class Verification Dialects for MLIR 引用了 Speeding up SMT Solving via Compiler Optimization
- Translation Validation for LLVM's AArch64 Backend 引用了 Alive2: bounded translation validation for LLVM
- Translation Validation for LLVM's AArch64 Backend 引用了 Translation Validation for JIT Compiler in the V8 JavaScript Engine
- Speeding up SMT Solving via Compiler Optimization 引用了 Alive2: bounded translation validation for LLVM
- Translation Validation for JIT Compiler in the V8 JavaScript Engine 引用了 Alive2: bounded translation validation for LLVM
引用它的顶会 Paper8
- Alive2: bounded translation validation for LLVMNuno P. Lopes, Juneyoung Lee, Chung-Kil Hur, Zhengyang Liu 等PLDI 2021 · 109 次引用
- Translation Validation for JIT Compiler in the V8 JavaScript EngineSeungwan Kwon, Jaeseong Kwon, Wooseok Kang, Juneyoung Lee 等ICSE 2024 · 19 次引用
- Speeding up SMT Solving via Compiler OptimizationBenjamin Mikek, Qirun ZhangFSE 2023 · 11 次引用
- First-Class Verification Dialects for MLIRMathieu Fehr, Yuyou Fan, Hugo Pompougnac, John Regehr 等PLDI 2025 · 5 次引用
- Translation Validation for LLVM's AArch64 BackendRyan Berger, Mitch Briles, Nader Boushehrinejad Moradi, Nicholas Coughlin 等OOPSLA 2025 · 3 次引用
它引用的 Paper1
相关 Paper
- SMT-Based Translation Validation for Machine Learning CompilerSeongwon Bang, Seunghyeon Nam, Inwhan Chun, Ho Young Jhoo 等CAV 2022 · 12 次引用
- Modeling Dynamic (De)Allocations of Local Memory for Translation ValidationAbhishek Rose, Sorav BansalOOPSLA 2024 · 1 次引用
- Static Analysis of Memory Models for SMT EncodingsThomas Haas, René Pascasl Maseli, Roland Meyer, Hernán Ponce de LeónOOPSLA 2023
- Optimization-Directed Compiler Fuzzing for Continuous Translation ValidationJaeseong Kwon, Bongjun Jang, Juneyoung Lee, Kihong HeoPLDI 2025 · 5 次引用
- IRFuzzer: Specialized Fuzzing for LLVM Backend Code GenerationYuyang Rong, Zhanghan Yu, Zhenkai Weng, Stephen Neuendorffer 等ICSE 2025 · 1 次引用
