Alive2: bounded translation validation for LLVM
Authors:
Open Access
- 18 June 2021
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 65-79
Abstract
We designed, implemented, and deployed Alive2: a bounded translation validation tool for the LLVM compiler’s intermediate representation (IR). It limits resource consumption by, for example, unrolling loops up to some bound, which means there are circumstances in which it misses bugs. Alive2 is designed to avoid false alarms, is fully automatic through the use of an SMT solver, and requires no changes to LLVM. By running Alive2 over LLVM’s unit test suite, we discovered and reported 47 new bugs, 28 of which have been fixed already. Moreover, our work has led to eight patches to the LLVM Language Reference—the definitive description of the semantics of its IR—and we have participated in numerous discussions with the goal of clarifying ambiguities and fixing errors in these semantics. Alive2 is open source and we also made it available on the web, where it has active users from the LLVM community.Keywords
This publication has 46 references indexed in Scilit:
- Witnessing Program Transformations2013
- Towards Modularly Comparing Programs Using Automated Theorem ProversLecture Notes in Computer Science, 2013
- Evaluating value-graph translation validation for LLVMACM SIGPLAN Notices, 2011
- A simple, verified validator for software pipeliningACM SIGPLAN Notices, 2010
- Formal verification of a realistic compilerCommunications of the ACM, 2009
- Validation of GCC optimizers through trace generationSoftware: Practice and Experience, 2009
- Translation and Run-Time Validation of Loop TransformationsFormal Methods in System Design, 2005
- Geometric Model CheckingElectronic Notes in Theoretical Computer Science, 2002
- Translation validation1998
- Nesting of reducible and irreducible loopsACM Transactions on Programming Languages and Systems, 1997