Compiler validation via equivalence modulo inputs
Vu Le, Mehrdad Afshari, Zhendong Su · Proceedings of the ACM SIGPLAN Conference on Programming Language Design and Implementation · 2014
We introduce equivalence modulo inputs (EMI), a simple, widely applicable methodology for validating optimizing compilers. Our key insight is to exploit the close interplay between (1) dynamically executing a program on some test inputs and (2) statically compiling the program to work on all possible inputs. Indeed, the test inputs induce a natural collection of the original program's EMI variants, which can help differentially test any compiler and specifically target the difficult-to-find miscompilations.
Cited by 374 works. doi:10.1145/2594291.2594334
Authors
References
- Formal certification of a compiler back-end or
- Translation validation
- Translation validation for an optimizing compiler
- Finding and understanding bugs in C compilers
- Finding and understanding bugs in C compilers
- Differential Testing for Software.
- A Formally Verified Compiler Back-end
- Denali
- Superoptimizer: a look at the smallest program
- Superoptimizer: a look at the smallest program