Lune

CAV2021Top-tier venue

An SMT Encoding of LLVM's Memory Model for Bounded Translation Validation

Juneyoung Lee, Dongjoo Kim, Chung-Kil Hur, Nuno P. Lopes

Abstract

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.

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.

8 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

  • First-Class Verification Dialects for MLIR cites Alive2: bounded translation validation for LLVM
  • First-Class Verification Dialects for MLIR cites Speeding up SMT Solving via Compiler Optimization
  • Translation Validation for LLVM's AArch64 Backend cites Alive2: bounded translation validation for LLVM
  • Translation Validation for LLVM's AArch64 Backend cites Translation Validation for JIT Compiler in the V8 JavaScript Engine
  • Speeding up SMT Solving via Compiler Optimization cites Alive2: bounded translation validation for LLVM
  • Translation Validation for JIT Compiler in the V8 JavaScript Engine cites Alive2: bounded translation validation for LLVM
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers8

  1. Alive2: bounded translation validation for LLVMNuno P. Lopes, Juneyoung Lee, Chung-Kil Hur, Zhengyang Liu et al.PLDI 2021 · 109 citations
  2. Translation Validation for JIT Compiler in the V8 JavaScript EngineSeungwan Kwon, Jaeseong Kwon, Wooseok Kang, Juneyoung Lee et al.ICSE 2024 · 19 citations
  3. Speeding up SMT Solving via Compiler OptimizationBenjamin Mikek, Qirun ZhangFSE 2023 · 11 citations
  4. First-Class Verification Dialects for MLIRMathieu Fehr, Yuyou Fan, Hugo Pompougnac, John Regehr et al.PLDI 2025 · 5 citations
  5. Translation Validation for LLVM's AArch64 BackendRyan Berger, Mitch Briles, Nader Boushehrinejad Moradi, Nicholas Coughlin et al.OOPSLA 2025 · 3 citations

Builds on1

  1. Alive2: bounded translation validation for LLVMNuno P. Lopes, Juneyoung Lee, Chung-Kil Hur, Zhengyang Liu et al.PLDI 2021 · 109 citations

Related papers

  1. SMT-Based Translation Validation for Machine Learning CompilerSeongwon Bang, Seunghyeon Nam, Inwhan Chun, Ho Young Jhoo et al.CAV 2022 · 12 citations
  2. Modeling Dynamic (De)Allocations of Local Memory for Translation ValidationAbhishek Rose, Sorav BansalOOPSLA 2024 · 1 citation
  3. Static Analysis of Memory Models for SMT EncodingsThomas Haas, René Pascasl Maseli, Roland Meyer, Hernán Ponce de LeónOOPSLA 2023
  4. Optimization-Directed Compiler Fuzzing for Continuous Translation ValidationJaeseong Kwon, Bongjun Jang, Juneyoung Lee, Kihong HeoPLDI 2025 · 5 citations
  5. IRFuzzer: Specialized Fuzzing for LLVM Backend Code GenerationYuyang Rong, Zhanghan Yu, Zhenkai Weng, Stephen Neuendorffer et al.ICSE 2025 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines