Compiler validation via equivalence modulo inputs
The DOI matches its Crossref record; 28 of the 28 references it cites were found in a registry or an index.
Abstract
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.
Overview
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
In the citing paper
“This paper demonstrates that modern titanic LLMs can be leveraged to directly perform both generation-based and mutation-based fuzzing studied for decades, while being fully automated, generalizable, and applicable to domains challenging for traditional approaches (such as DL systems).”
From Large Language Models Are Zero-Shot Fuzzers: Fuzzing Deep-Learning Libraries via Large Language Models (2023) · cites this paper as [39]
In the citing paper
“Moreover, to our knowledge, we are the first to apply infilling models (e.g., InCoder) to directly perform mutation-based fuzzing [39,50] to generate more diverse input programs in an evolutionary fuzzing loop.”
From Large Language Models Are Zero-Shot Fuzzers: Fuzzing Deep-Learning Libraries via Large Language Models (2023) · cites this paper as [39]
Citations
Cites
Finding and understanding bugs in C compilers
Yang, X., Chen, Y., Eide, E., & Regehr, J. (2011) · Proceedings of the 32nd ACM SIGPLAN Conference on Programming Language Design and Implementation · doi:10.1145/1993498.1993532 · Cited by 1,248 · cited 3×
“Others, however, can cause compilers to silently miscompile a program and produce wrong code, subverting the programmer’s intent.”
BackgroundInfluentialFormal certification of a compiler back-end or: programming a compiler with a proof assistant
Leroy, X. (2006) · Conference record of the 33rd ACM SIGPLAN-SIGACT symposium on Principles of programming languages · doi:10.1145/1111037.1111042 · Cited by 661 · cited 3×
“Compiler Testing The most directly related is compiler testing, which remains the dominant technique for validating production compilers in practice.”
BackgroundMethodInfluentialFinding and understanding bugs in C compilers
Yang, X., Chen, Y., Eide, E., & Regehr, J. (2011) · ACM SIGPLAN Notices · doi:10.1145/1993316.1993532 · Cited by 586
A Formally Verified Compiler Back-end
Leroy, X. (2009) · Journal of Automated Reasoning · doi:10.1007/s10817-009-9155-4 · Cited by 503
Pnueli, A., Siegel, M., & Singerman, E. (1998) · Lecture Notes in Computer Science · doi:10.1007/bfb0054170 · Cited by 499 · cited 1×
“C; H.3.4 [Programming Languages]: Processors—compilers General Terms Algorithms, Languages, Reliability, Verification Keywords Compiler testing, miscompilation, equivalent program variants, automated testing”
InfluentialTranslation validation for an optimizing compiler
Necula, G. C. (2000) · Proceedings of the ACM SIGPLAN 2000 conference on Programming language design and implementation · doi:10.1145/349299.349314 · Cited by 488 · cited 1×
“C; H.3.4 [Programming Languages]: Processors—compilers General Terms Algorithms, Languages, Reliability, Verification Keywords Compiler testing, miscompilation, equivalent program variants, automated testing”
Influential(1998) · Cited by 469
Test-case reduction for C compiler bugs
Regehr, J., Chen, Y., Cuoq, P., Eide, E., Ellison, C., & Yang, X. (2012) · Proceedings of the 33rd ACM SIGPLAN Conference on Programming Language Design and Implementation · doi:10.1145/2254064.2254104 · Cited by 310
Holler, C., Herzig, K., & Zeller, A. (2012) · Cited by 275
Superoptimizer: a look at the smallest program
Massalin, H. (1987) · ACM SIGPLAN Notices · doi:10.1145/36205.36194 · Cited by 221
Research works printed but not linked: 2
- 10.5555/2362793.2362831 · doi:10.5555/2362793.2362831
- 10.5555/646482.691453 · doi:10.5555/646482.691453
Cited by
Items 101–200 of 426
Zhou, Z. Q., Tse, T. H., & Witheridge, M. (2019) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2019.2915065 · Cited by 44
“GCC, LLVM, and other types of compilers and code obfuscators [19], [20], [21], [22], in major search engines including Google, Bing, and Baidu [17], in the Web APIs of Spotify and YouTube [18], in the navigation system Google Maps [23] and, more recently, in self-driving cars’ on-board computer software [14].”
Crellvm: verified credible compilation for LLVM
Kang, J., Kim, Y., Song, Y., Lee, J., Park, S., Shin, M. D., Kim, Y., Cho, S., Choi, J., Hur, C.-K., et al. (2018) · ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI) · doi:10.1145/3192366.3192377 · Cited by 50
“Compiler Testing Random testing tools such as CSmith [9, 30, 41] and EMI [16] have been very successful.”
MethodInfluentialAn empirical study of the effect of source-level loop transformations on compiler stability
Gong, Z., Chen, Z., Szaday, J., Wong, D., Sura, Z., Watkinson, N., Maleki, S., Padua, D., Veidenbaum, A. V., Nicolau, A. E., et al. (2018) · Proceedings of the ACM on Programming Languages · doi:10.1145/3276496 · Cited by 39
“A variant is Equivalence Modulo Inputs (EMI) by Le et al. [2014], which transforms source programs to generate versions that are semantically-equivalent not for all inputs but for a specific set of program inputs.”
MethodThe Mutators Reloaded: Fuzzing Compilers with Large Language Model Generated Mutation Operators
Ou, X., Li, C., Jiang, Y., & Xu, C. (2024) · International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS) · doi:10.1145/3622781.3674171 · Cited by 58
“Orion introduces EMI, which randomly eliminates dead branches to generate programs with identical runtime behavior [32].”
InfluentialWell-typed programs can go wrong: a study of typing-related bugs in JVM compilers
Chaliasos, S., Sotiropoulos, T., Drosos, G.-P., Mitropoulos, C., Mitropoulos, D., & Spinellis, D. D. (2021) · Proceedings of the ACM on Programming Languages · doi:10.1145/3485500 · Cited by 38
“This observation comes in contrast to existing compiler testing techniques, which feed compilers with compilable programs [Le et al. 2014; Livinskii et al. 2020; Yang et al. 2011].”
BackgroundMethodResultInfluentialBlack-Box Equivalence Checking Across Compiler Optimizations
Dahiya, M., & Bansal, S. (2017) · Lecture notes in computer science · doi:10.1007/978-3-319-71237-6_7 · Cited by 37
“Our work also overlaps with previous work on verified compilation [21, 42, 43], compiler testing tools [17, 18, 40], undefined behaviour detection [39], and domain specific languages for coding and verifying compiler optimizations [19,20].”
ResultSpeculative disassembly of binary code
Khadra, M. A. B., Stoffel, D., & Kunz, W. (2016) · International Conference on Compilers, Architecture, and Synthesis for Embedded Systems (CASES) · doi:10.1145/2968455.2968505 · Cited by 37
“Finally, compilers might introduce bugs [12, 23] or unexpected side effects [2] that can only be detected by reasoning about the actually executed instructions rather than the source code.”
BackgroundFeedback-directed differential testing of interactive debuggers
Lehmann, D., & Pradel, M. (2018) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3236024.3236037 · Cited by 41
“More recent approaches include CSmith [39], which randomly creates C programs, and łequivalence modulo inputsž [20], which creates variants of such programswith supposedly equivalent behavior.”
BackgroundMethodDetecting Compiler Warning Defects Via Diversity-Guided Program Mutation
Tang, Y., Jiang, H., Zhou, Z., Li, X., Ren, Z., & Kong, W. (2021) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2021.3119186 · Cited by 36
“Recently, program mutation becomes increasingly more important for validating compilers, which constructs test programs by modifying parts of existing seed programs, such as Orion [20], Athena [36], and Hermes [49].”
BackgroundMethodInfluentialEnriching Compiler Testing with Real Program from Bug Report
Zhong, H. (2022) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1145/3551349.3556894 · Cited by 41
“[59] show that even if a program compiles under different optimization flags, they can produce different outputs given the same inputs, so theAA category can still detect wrong-code bugs.”
BackgroundInfluentialMLIRSmith: Random Program Generation for Fuzzing MLIR Compiler Infrastructure
Wang, H., Chen, J., Xie, C., Liu, S., Wang, Z., Shen, Q., & Zhao, Y. (2023) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase56229.2023.00120 · Cited by 45
“The second one is also important in the area of fuzzing and has been widely used in the existing work [12], [25], [13].”
MethodInfluentialExploring Missed Optimizations in WebAssembly Optimizers
Liu, Z., Xiao, D., Li, Z., Wang, S., & Meng, W. (2023) · ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA) · doi:10.1145/3597926.3598068 · Cited by 35
“Therefore, Csmith has been used extensively to test C compilers [47, 48, 76].”
MethodGenerating focused random tests using directed swarm testing
Alipour, M. A., Groce, A., Gopinath, R., & Christi, A. (2016) · International Symposium on Software Testing and Analysis · doi:10.1145/2931037.2931056 · Cited by 35
“Swarm testing has been recognized as essential to getting good results from compiler fuzzers [25] and has sometimes nearly doubled fault detection and/or coverage for mature random testers [17].”
BackgroundMethodInvestigating The Reproducibility of NPM Packages
Goswami, P., Gupta, S., Li, Z., Meng, N., & Yao, D. (2020) · IEEE International Conference on Software Maintenance (ICSM) · doi:10.1109/icsme46990.2020.00071 · Cited by 34
SoK: Demystifying Binary Lifters Through the Lens of Downstream Applications
Liu, Z., Yuan, Y., Wang, S., & Bao, Y. (2022) · IEEE Symposium on Security and Privacy (S&P) · doi:10.1109/sp46214.2022.9833799 · Cited by 53
“EMI-based mutation has been widely used to mutate C code and test compilers [69], [104], [70].”
MethodSymbolic execution with existential second-order constraints
Mechtaev, S., Griggio, A., Cimatti, A., & Roychoudhury, A. (2018) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3236024.3236049 · Cited by 42
“This property has been applied in multiple domains such as mutation testing [17, 37], program repair [24], and compiler testing [19].”
MethodValidating JIT Compilers via Compilation Space Exploration
Li, C., Jiang, Y., Xu, C., & Su, Z. (2023) · ACM SIGOPS Symposium on Operating Systems Principles (SOSP) · doi:10.1145/3600006.3613140 · Cited by 37
“Another popular technique is EMI (Equivalence Modulo Input), a practical, effective idea that validates compilers by a seed program and its EMI variants and has found thousands of bugs in GCC and LLVM [27].”
MethodSelf-citationValidating optimizations of concurrent C/C++ programs
Chakraborty, S. S., & Vafeiadis, V. (2016) · Proceedings of the CGO/Proceedings of the ... CGO · doi:10.1145/2854038.2854051 · Cited by 38
“Although testing does not ensure correctness, it has been extremely effective at finding bugs (Yang et al. 2011; Le et al. 2014).”
BackgroundFinding and understanding bugs in software model checkers
Zhang, C., Su, T., Yan, Y., Zhang, F., Pu, G., & Su, Z. (2019) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3338906.3338932 · Cited by 43
“, static analyzers [20], symbolic execution engines [30], pointer analyses [52], refactoring engines [21], abstract interpreters [13, 39], and compliers [34, 36, 43, 53, 54].”
BackgroundMethodSelf-citationFinding compiler bugs via live code mutation
Sun, C. P., Le, V., & Su, Z. (2016) · ACM SIGPLAN Notices · doi:10.1145/3022671.2984038 · Cited by 33
Self-citationWho’s debugging the debuggers? exposing debug information bugs in optimized binaries
Luna, G. A. D., Italiano, D., Massarelli, L., Österlund, S., Giuffrida, C., & Querzoni, L. (2021) · International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS) · doi:10.1145/3445814.3446695 · Cited by 33
“rphic testing. We point out that none of the aforementioned works is able to find bugs in the compiler. Compilers testing The problem of compiler testing received a lot of attention in the past decade [25, 14, 22] and it mainly focused on finding miscompiles in optimizing compilers. For a recent survey on compiler testi…”
TSTL: the template scripting testing language
Holmes, J., Groce, A., Pinto, J., Mittal, P., Azimi, P., Kellar, K., & O’Brien, J. (2016) · International Journal on Software Tools for Technology Transfer · doi:10.1007/s10009-016-0445-y · Cited by 33
“To our knowledge, TSTL’s random tester is the first general-purpose random testing tool to incorporate the powerful swarm testing [49] algorithm, which has previously been used to test compilers [50,51] and file systems.”
MethodEffect-driven QuickChecking of compilers
Midtgaard, J., Justesen, M. N., Kasting, P., Nielson, F., & Nielson, H. R. (2017) · Proceedings of the ACM on Programming Languages · doi:10.1145/3110259 · Cited by 38
“Rather than attempt to generate arbitrary programs from scratch Le et al. [2014] instead take an existing collection of programs, pick one and manipulate it in a manner that is meaning preserving for a particular input, e.g., permuting code in a branch which is not executed for the particular input.”
BackgroundMethodInteractive metamorphic testing of debuggers
Tolksdorf, S., Lehmann, D., & Pradel, M. (2019) · ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA) · doi:10.1145/3293882.3330567 · Cited by 36
“Here we transform the program by adding dead code at a randomly selected program location, similar to previous work on compiler testing [17].”
BackgroundMethodPatra, J., & Pradel, M. (2016) · TUbilio (Technical University of Darmstadt) · Cited by 33
Automatic equivalence checking of programs with uninterpreted functions and integer arithmetic
Lopes, N. P., & Monteiro, J. C. (2015) · International Journal on Software Tools for Technology Transfer · doi:10.1007/s10009-015-0366-1 · Cited by 34
“This is an important topic, since all mainstream compilers were shown recently to have several bugs in the optimization passes [43,72].”
BackgroundGrapple: A Graph System for Static Finite-State Property Checking of Large-Scale Systems Code
Zuo, Z., Thorpe, J., Wang, Y., Pan, Q., Lu, S., Wang, K., Xu, G. H., Wang, L., & Li, X. (2019) · European Conference on Computer Systems · doi:10.1145/3302424.3303972 · Cited by 31
“While dynamic analysis [7, 9, 22, 28, 42, 74] is often the weapon of choice for precisely capturing bugs in large programs, it needs representative workloads to achieve coverage, which is often a daunting task for distributed systems.”
BackgroundSecurity risks of porting C programs to webassembly
Stiévenart, Q., Roover, C. D., & Ghafari, M. (2022) · ACM Symposium on Applied Computing · doi:10.1145/3477314.3507308 · Cited by 31
“When only one compiler configuration is available, one can rely on Equivalence Modulo Input (EMI) instead [16]: two programs that differ in their source code but not in the expected behaviour are compiled and run, and if any difference is observed, a compiler bug is potentially found.”
MethodCsmithEdge: more effective compiler testing by handling undefined behaviour less conservatively
Even-Mendoza, K., Cadar, C., & Donaldson, A. F. (2022) · Empirical Software Engineering · doi:10.1007/s10664-022-10146-1 · Cited by 37
“In particular, compiler fuzzers have proven successful at finding bugs in mature compilers via randomised testing (Yang et al. 2011; Le et al. 2014; Nakamura and Ishiura 2016; Livinskii et al. 2020; Lidbury et al. 2015; Donaldson et al. 2017; Marcozzi et al. 2019).”
BackgroundInfluentialHunting for Bugs in Code Coverage Tools via Randomized Differential Testing
Yang, Y., Zhou, Y., Sun, H., Su, Z., Zuo, Z., Xu, L., & Xu, B. (2019) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse.2019.00061 · Cited by 30
“1(a), EMI compiler testing [7] generates its “equivalent” program p’ as shown in Fig.”
BackgroundMethodInfluentialSelf-citationMetamorphic testing of Datalog engines
Mansur, M. N., Christakis, M., & Wüstholz, V. (2021) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3468264.3468573 · Cited by 38
“Over the years, it has been used to test a variety of systems, from web services [18], over compilers [41], to machine-learning applications [77].”
BackgroundMethodPath-directed source test case generation and prioritization in metamorphic testing
Sun, C., Liu, B., Fu, A., Liu, Y., & Liu, H. (2021) · Journal of Systems and Software · doi:10.1016/j.jss.2021.111091 · Cited by 37
Analysing the program analyser
Cadar, C., & Donaldson, A. F. (2016) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/2889160.2889206 · Cited by 37
“Our inspiration comes from the world of compilers, whose correctness has attracted a great deal of attention [9–12,14,16,19].”
BackgroundMethodAn application of metamorphic testing for testing scientific software
Ding, J., Zhang, D., & Hu, X. (2016) · IEEE/ACM International Workshop on Metamorphic Testing (MET) · doi:10.1145/2896971.2896981 · Cited by 32
“A recent application of metamorphic testing to the complier testing has found over 400 bugs in several widely used C/C++ compilers [12].”
MethodMetamorphic Security Testing for Web Systems
Mai, P. X., Pastore, F., Göknil, A., & Briand, L. (2020) · IEEE International Conference on Software Testing, Verification and Validation (ICST) · doi:10.1109/icst46399.2020.00028 · Cited by 38
Coverage-directed differential testing of JVM implementations
Chen, Y., Su, T., Sun, C. P., Su, Z., & Zhao, J. (2016) · ACM SIGPLAN Notices · doi:10.1145/2980983.2908095 · Cited by 30
Self-citationMetamorphic Relation Generation: State of the Art and Research Directions
Li, R., Liu, H., Poon, P., Towey, D., Sun, C., Zheng, Z., Zhou, Z. Q., & Chen, T. Y. (2024) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3708521 · Cited by 33
“…late 1990’s [8, 9], MT has been successfully used to detect real-life bugs in a wide variety of software systems from different application domains, such as compilers [41, 42], autonomous driving [21, 79], search engines [97], machine learning classifiers [27, 82], and scientific simulations [51].”
CUDAsmith: A Fuzzer for CUDA Compilers
Jiang, B., Wang, X., Chan, W. K., Tse, T. H., Li, N., Yin, Y., & Zhang, Z. (2020) · IEEE Annual International Computer Software and Applications Conference (COMPSAC) · doi:10.1109/compsac48688.2020.0-156 · Cited by 29
“This strategy is also used in previous work in EMI testing [8], [9].”
BackgroundMethodInfluentialPractical verification of peephole optimizations with Alive
Lopes, N. P., Menendez, D., Nagarakatte, S., & Regehr, J. D. (2018) · Communications of the ACM · doi:10.1145/3166064 · Cited by 39
“Random testing tools [20, 15, 7] have discovered numerous bugs in LLVM optimizations both for sequential programs and concurrent programs.”
BackgroundGuiding Greybox Fuzzing with Mutation Testing
Vikram, V., Laybourn, I., Li, A., Nair, N., OBrien, K., Sanna, R., & Padhye, R. (2023) · ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA) · doi:10.1145/3597926.3598107 · Cited by 34
“Effectively, we are pruning mutants that are equivalent modulo inputs [47].”
BackgroundAlive-FP: Automated Verification of Floating Point Based Peephole Optimizations in LLVM
Menendez, D., Nagarakatte, S., & Gupta, A. (2016) · Lecture notes in computer science · doi:10.1007/978-3-662-53413-7_16 · Cited by 30
“Among them, peephole optimizations are persistent source of compiler bugs [21, 43].”
BackgroundMT-EA4Cloud: A Methodology For testing and optimising energy-aware cloud systems
Cañizares, P. C., Núñez, A., de Lara, J., & Llana, L. (2020) · Journal of Systems and Software · doi:10.1016/j.jss.2020.110522 · Cited by 26
A Template-Based Approach to Describing Metamorphic Relations
Segura, S., Durán, A., Troya, J., & Ruiz–Cortés, A. (2017) · IEEE/ACM International Workshop on Metamorphic Testing (MET) · doi:10.1109/met.2017.3 · Cited by 26
Finding Unstable Code via Compiler-Driven Differential Testing
Li, S., & Su, Z. (2023) · International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS) · doi:10.1145/3582016.3582053 · Cited by 26
“It aims at improving fault tolerance of software by having N independent individuals or groups implementing the same specification.”
BackgroundSelf-citationLPR: Large Language Models-Aided Program Reduction
Zhang, M., Tian, Y., Xu, Z., Dong, Y., Tan, S. H., & Sun, C. P. (2024) · ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA) · doi:10.1145/3650212.3652126 · Cited by 37
“The original bug-triggering code [17, 23, 31, 49] may have thousands of lines, whereas the distilled version from program reduction tools only contains dozens of lines of code [32].”
Skeletal program enumeration for rigorous compiler testing
Zhang, Q., Sun, C. P., & Su, Z. (2017) · ACM SIGPLAN Notices · doi:10.1145/3140587.3062379 · Cited by 28
Self-citationJava decompiler diversity and its application to meta-decompilation
Harrand, N., Soto-Valero, C., Monperrus, M., & Baudry, B. (2020) · Journal of Systems and Software · doi:10.1016/j.jss.2020.110645 · Cited by 26
“[25] introduce the concept of semantic equivalence modulo inputs to validate compilers by analyzing the interplay between dynamic execution on a subset of inputs and statically compiling a program to work on all kind of inputs.”
BackgroundSkeletal approximation enumeration for SMT solver testing
Yao, P., Huang, H., Tang, W., Shi, Q., Wu, R., & Zhang, C. (2021) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3468264.3468540 · Cited by 28
“in many application domains such as bioinformatics [26], web services [24], compilers [36, 51], debuggers [53], databases [47], machine learning-based systems [31, 38], model counters [55], and SMT solvers [60].”
BackgroundCompiler Testing using Template Java Programs
Zang, Z., Wiatrek, N., Gligoric, M., & Shi, A. (2022) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1145/3551349.3556958 · Cited by 30
Pushing the Limit of 1-Minimality of Language-Agnostic Program Reduction
Xu, Z., Tian, Y., Zhang, M., Zhao, G., Jiang, Y., & Sun, C. P. (2023) · Proceedings of the ACM on Programming Languages · doi:10.1145/3586049 · Cited by 25
“This transformation is inspired by mutation-based compiler fuzzing [Aschermann et al. 2019; Donaldson et al. 2017; Le et al. 2014, 2015; Sun et al. 2016], a testing technique that randomly generates test programs by mutating existing programs and make the target compiler compile these generated…”
MethodCompiler Test-Program Generation via Memoized Configuration Search
Chen, J., Suo, C., Jiang, J., Chen, P., & Li, X. (2023) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse48619.2023.00172 · Cited by 32
“To investigate whether MCS still works on newer versions, we also applied it and compared approaches to test the latest trunk revisions of both GCC and LLVM 1 following the existing studies [21], [40].”
BackgroundMethodInfluentialLearning to accelerate compiler testing
Chen, J. (2018) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3183440.3183456 · Cited by 24
“[10,11,17]proposedto generatesomeequivalentvariantsforeachoriginalCprogramand determinewhetheracompilerhasbugsbycomparingtheresults producedbytheoriginalprogramanditsvariants.”
BackgroundMethodInfluentialMetamorphic testing 20 years later: a hands-on introduction
Segura, S., & Zhou, Z. Q. (2018) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3183440.3183468 · Cited by 28
“Also, there exists strong evidence of real bugs being detected in realworld systems such as the search engines Google and Bing [12], open-source and commercial code obfuscators as well as the popular GCC and LLVM compilers [4, 7], the machine learning system RapidMiner [9], and the Web APIs of Spotify and YouTube [11].”
Provably correct peephole optimizations with alive
Lopes, N. P., Menendez, D., Nagarakatte, S., & Regehr, J. D. (2015) · ACM SIGPLAN Notices · doi:10.1145/2813885.2737965 · Cited by 25
Detecting C++ Compiler Front-End Bugs via Grammar Mutation and Differential Testing
Tu, H., Jiang, H., Zhou, Z., Tang, Y., Ren, Z., Qiao, L., & Jiang, L. (2022) · IEEE Transactions on Reliability · doi:10.1109/tr.2022.3171220 · Cited by 26
“This is because compiler developers always fix bugs in the develop-menttrunkmorepromptlythaninstableversions[20],[21],[43].”
BackgroundMethodInfluentialWebAssembly diversification for malware evasion
Cabrera-Arteaga, J., Monperrus, M., Toady, T., & Baudry, B. (2023) · Computers & Security · doi:10.1016/j.cose.2023.103296 · Cited by 28
“wasm-mutate follows the notion of program equivalence modulo input [29], i.”
TEA-Cloud: A Formal Framework for Testing Cloud Computing Systems
Núñez, A., Cañizares, P. C., Nunez, M. A., & Hierons, R. M. (2020) · IEEE Transactions on Reliability · doi:10.1109/tr.2020.3011512 · Cited by 27
“Currently, MT has been successfully applied to test a wide variety of systems such as Web services [48], machine learning [49], and compilers [50].”
BackgroundMethodMetamorphic Testing: A Simple Method for Alleviating the Test Oracle Problem
Chen, T. Y. (2015) · doi:10.1109/ast.2015.18 · Cited by 23
“∙ Compilers [4] [5] ∙ Health and Medical Systems [6] [7] [8] ∙ Embedded applications [9] [10] ∙ Bioinformatics software [11] ∙ Feature Modelling software [12] [13] ∙ Search Engines [14] ∙ Numerical Analysis [15] [16] [17] ∙ Service Computing [18] [19] ∙ Simulation software [20] ∙ Image Processing Systems [21] ∙ Decisi…”
Translation Validation for JIT Compiler in the V8 JavaScript Engine
Kwon, S., Kwon, J., Kang, W., Lee, J., & Heo, K. (2024) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3597503.3639189 · Cited by 22
Exposing bugs in JavaScript engines through test transplantation and differential testing
Lima, I., da Silva, J. B. B., Miranda, B., Pinto, G., & d’Amorim, M. (2021) · Software Quality Journal · doi:10.1007/s11219-020-09537-8 · Cited by 27
“Le and colleagues [47] proposed “equivalence modulo inputs”, which creates variants of program which should have equivalent behavior compared to the original, but for which the compiler manifests discrepancy.”
BackgroundClozemaster: Fuzzing Rust Compiler by Harnessing Llms for Infilling Masked Real Programs
Gao, H., Yang, Y., Sun, M., Wu, J., Zhou, Y., & Xu, B. (2025) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse55347.2025.00175 · Cited by 26
“Generation-based fuzzers construct test cases using random syntax rules or templates [16]–[18], while mutation-based fuzzers generate additional test cases by creating equivalent programs or applying mutation templates and heuristics [19]–[23].”
Jiang, Y., Liu, J., Ba, J., Yap, R. H. C., Liang, Z., & Rigger, M. (2024) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3597503.3623307 · Cited by 32
Rustlantis: Randomized Differential Testing of the Rust Compiler
Wang, Q., & Jung, R. (2024) · Proceedings of the ACM on Programming Languages · doi:10.1145/3689780 · Cited by 21
“Fuzzing has been extremely effective at finding bugs in many different kinds of code [21], including compilers [7, 35, 15, 29, 24, 20].”
Software Security Analysis in 2030 and Beyond: A Research Roadmap
Böhme, M., Bodden, E., Bultan, T., Cadar, C., Liu, Y., & Scanniello, G. (2025) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3708533 · Cited by 29
“Specifications have been for long proposed as a way to write correct software, but adoption has been limited, particularly in mainstream languages.”
Liveness-Driven Random Program Generation
Barany, G. (2018) · Lecture notes in computer science · doi:10.1007/978-3-319-94460-9_7 · Cited by 26
Learning to make compiler optimizations more effective
Mammadli, R., Selakovic, M., Wolf, F., & Pradel, M. (2021) · MAPS@PLDI · doi:10.1145/3460945.3464952 · Cited by 24
“Since many compiler bugs are triggered by optimizations [14], several techniques search for optimization-related compiler bugs via differential testing [35, 56].”
CROW: Code Diversification for WebAssembly
Cabrera-Arteaga, J., Floros, O., Vera-Pérez, O., Baudry, B., & Martin, M. (2020) · Proceedings 2021 Workshop on Measurements, Attacks, and Defenses for the Web · doi:10.14722/madweb.2021.23004 · Cited by 20
Automatically testing implementations of numerical abstract domains
Bugariu, A., Wüstholz, V., Christakis, M., & Müller, P. (2018) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1145/3238147.3240464 · Cited by 29
“, CompCert [36] and Verasco [32]), there is a significant body of work on using testing techniques to detect issues in compilers [34, 35, 48, 51], and recently, in DSE engines [33].”
BackgroundAlive-Infer: data-driven precondition inference for peephole optimizations in LLVM
Menendez, D., & Nagarakatte, S. (2017) · ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI) · doi:10.1145/3062341.3062372 · Cited by 20
“They are also a persistent source of LLVM bugs [25, 30, 51].”
BackgroundVectorizing Program Ingredients for Better JVM Testing
Gao, T., Chen, J., Zhao, Y., Zhang, Y., & Zhang, L. (2023) · ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA) · doi:10.1145/3597926.3598075 · Cited by 22
“Le et al. [33] proposed Equivalence Modulo Inputs (EMI) for testing C compilers, which constructs equivalent programs under a set of inputs through program mutation.”
Liu, D., Jiang, H., Guo, S., Chen, Y., & Qiao, L. (2023) · IEEE Transactions on Reliability · doi:10.1109/tr.2023.3295009 · Cited by 20
“Restrictions apply. a few approaches to conduct semantics-preserving mutations for conventional programming languages, e.g., mutating C programs to test compilers [28].”
BackgroundA Framework for Ensuring the Quality of a Big Data Service
Ding, J., Zhang, D., & Hu, X. (2016) · IEEE International Conference on Services Computing · doi:10.1109/scc.2016.18 · Cited by 22
“It has been applied to several domains such as bioinformatics, machine learning, and online services [20][19][21][32].”
MethodSaying ‘Hi!’ is not enough: Mining inputs for effective test generation
Toffola, L. D., Staicu, C.-A., & Pradel, M. (2017) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase.2017.8115617 · Cited by 23
“The “equivalence modulo input” (EMI) approach [30] tests compilers by modifying existing tests, i.”
MethodA Survey of Modern Compiler FuzzingPreprint
Ma, H. (2023) · arXiv (Cornell University) · doi:10.48550/arxiv.2306.06884 · Cited by 25
“…Methods. e.g., i.e., e.g., e.g., Semantics-preserving Transformation. semantics-preserving transformation approaches originate from the methodology named equivalence modulo inputs (EMI) [46]. a set of inputs , but this thought requires profiling the execution of the seed program. all inputs .”
MethodConstant Optimization Driven Database System Testing
Zhang, C., & Rigger, M. (2025) · Proceedings of the ACM on Management of Data · doi:10.1145/3709674 · Cited by 27
“Metamorphic testing has been applied in testing numerous critical systems, such as compilers [22], SMT solvers [38], and DBMSs. NoREC [30], TLP [31], and DQE [35] are all metamorphic testing approaches for detecting logic bugs in DBMSs.”
Program Reconditioning: Avoiding Undefined Behaviour When Finding and Reducing Compiler Bugs
Lecoeur, B., Mohsin, H., & Donaldson, A. F. (2023) · Proceedings of the ACM on Programming Languages · doi:10.1145/3591294 · Cited by 19
“This includes the equivalence modulo inputs approach, which finds compiler bugs by identifying mismatches in programs that are equivalent by construction thanks to pruning of dead code [Le et al. 2014, 2015], or careful semantics-preserving mutation of live code [Sun et al. 2016].”
MethodYe, G., Hu, T., Tang, Z., Fan, Z., Tan, S. H., Zhang, B., Qian, W., & Wang, Z. (2023) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3611643.3616332 · Cited by 28
“EMI [48] and its subsequent works [28, 54, 56] are among the representative mutation-based fuzzers.”
BackgroundRefined Input, Degraded Output: The Counterintuitive World of Compiler Behavior
Theodoridis, T., & Su, Z. (2024) · Proceedings of the ACM on Programming Languages · doi:10.1145/3656404 · Cited by 19
“Several approaches have been proposed to improve the effectiveness of randomized testing such as EMI [16] which mutates programs in a semantic preserving way given fixed inputs.”
BackgroundSelf-citationTowards Understanding the Bugs in Solidity Compiler
Ma, H., Zhang, W., Shen, Q., Tian, Y., Chen, J., & Cheung, S.-C. (2024) · ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA) · doi:10.1145/3650212.3680362 · Cited by 19
Spectrum-based fault localization for context-free grammars
Raselimo, M., & Fischer, B. (2019) · ACM SIGPLAN International Conference on Software Language Engineering (SLE) · doi:10.1145/3357766.3359538 · Cited by 19
“Le et al. [29] describe another approach that mutates test programs such that the mutants are guaranteed to be semantically equivalent for the given test inputs (and so should produce the same outputs) but are structurally different and may so trigger different compilation paths.”
BackgroundInput Test Suites for Program Repair: A Novel Construction Method Based on Metamorphic Relations
Jiang, M., Chen, T. Y., Zhou, Z. Q., & Ding, Z. (2020) · IEEE Transactions on Reliability · doi:10.1109/tr.2020.3003313 · Cited by 21
“The success in detecting unknown faults in some of the Siemens programs, hundreds of real-life faults in popular C compilers, and in driverless cars’ onboard computer systems are examples of the effectiveness of MTGs’ fault detection [37], [43], [44], [49].”
BackgroundEven-Mendoza, K., Cadar, C., & Donaldson, A. F. (2020) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1145/3324884.3418933 · Cited by 20
New visions on metamorphic testing after a quarter of a century of inception
Chen, T. Y., & Tse, T. H. (2021) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3468264.3473136 · Cited by 20
“[2] detected more than 100 faults in existing GCC and LLVM compilers by means of the innovative “equivalence modulo inputs” technique, which is effectively MT.”
Hashimoto, A., & Ishiura, N. (2016) · IPSJ Transactions on System and LSI Design Methodology · doi:10.2197/ipsjtsldm.9.21 · Cited by 19
“Le et al. [16] proposed a method of generating variants from a test program which are equivalent with respect to the same inputs.”
MethodAPI-Driven Program Synthesis for Testing Static Typing Implementations
Sotiropoulos, T., Chaliasos, S., & Su, Z. (2024) · Proceedings of the ACM on Programming Languages · doi:10.1145/3632904 · Cited by 18
“Indeed, most of the existing compiler testing techniques target optimizing compilers [Donaldson et al. 2017; Le et al. 2014; Livinskii et al. 2020, 2023; Yang et al. 2011; Zhang et al. 2017].”
MethodSelf-citationZhou, C., Qian, B., Go, G., Zhang, Q., Li, S., & Jiang, Y. (2024) · Proceedings of the ACM on Programming Languages · doi:10.1145/3689757 · Cited by 20
“Notably, for C/C++ compiler testing, a practical technique named EMI [21] was proposed.”
Practical Validation of Bytecode to Bytecode JIT Compiler Dynamic Deoptimization.
Béra, C., Miranda, E., Denker, M., & Ducasse, S. (2016) · The Journal of Object Technology · doi:10.5381/jot.2016.15.2.a1 · Cited by 18
A Novel HDL Code Generator for Effectively Testing FPGA Logic Synthesis Compilers
Xu, Z., Guo, S., Zhao, G., Zou, P., Li, X., & Jiang, H. (2025) · IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems · doi:10.1109/tcad.2025.3565488 · Cited by 20
“In compiler testing, there are three equivalent module input (EMI)-based differential testing mutation methods, including Orion [31], Athena [32], and Hermes [33].”
Scaling Automated Database System Testing
Zhong, S., & Rigger, M. (2026) · International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS) · doi:10.1145/3779212.3790215 · Cited by 17
“Similar testing campaigns have also been conducted to evaluate the effectiveness of testing approaches for DBMSs [21, 29, 37] as well as in other contexts [25, 26, 53].”
Compilation Consistency Modulo Debug Information
Wang, T. L., Tian, Y., Dong, Y., Xu, Z., & Sun, C. P. (2023) · International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS) · doi:10.1145/3575693.3575740 · Cited by 17
“In each iteration, we first use a program generator to generate a seed, then apply Dfusor to derive a number n of variants from the seed (we set n = 10 by following [22]), and use them to test GCC and Clang.”
BackgroundMethodResultInfluentialMR-Adopt: Automatic Deduction of Input Transformation Function for Metamorphic Testing
Xu, C., Chen, S., Wu, J., Cheung, S.-C., Terragni, V., Zhu, H., & Cao, J. (2024) · Proceedings of the 39th IEEE/ACM International Conference on Automated Software Engineering · doi:10.1145/3691620.3696020 · Cited by 9
“MT has achieved success in detecting faults for various software, such as compilers [18, 38] and databases [23, 28].”
Causal Distance-Metric-Based Assistance for Debugging after Compiler Fuzzing
Holmes, J., & Groce, A. (2018) · Proceedings/Proceedings - International Symposium on Software Reliability Engineering · doi:10.1109/issre.2018.00027 · Cited by 17
The Strengths and Behavioral Quirks of Java Bytecode Decompilers
Harrand, N., Soto-Valero, C., Monperrus, M., & Baudry, B. (2019) · IEEE International Working Conference on Source Code Analysis and Manipulation (SCAM) · doi:10.1109/scam.2019.00019 · Cited by 17
“Le and colleagues [10] propose to use equivalence modulo inputs assessment as a way to test transformations that are meant to be semantic preserving (in particular compilation).”
BackgroundMethodInfluentialAutomatic Self-Validation for Code Coverage Profilers
Yang, Y., Jiang, Y., Zuo, Z., Wang, Y., Sun, H., Lu, H., Zhou, Y., & Xu, B. (2019) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase.2019.00018 · Cited by 17
“Testing via equivalence modulo inputs (EMI) [2], [34], [35] is a new testing technique proposed in recent years, being targeted at discovering the compiler optimization bugs.”
BackgroundMethodInfluentialFind bugs in static bug finders
Wang, J., Huang, Y., Wang, S., & Wang, Q. (2022) · IEEE International Conference on Program Comprehension (ICPC) · doi:10.1145/3524610.3527899 · Cited by 16
“Randomized differential testing is a widely-used black-box differential testing technique in which the inputs are randomly generated [12, 17, 31, 35, 48, 49, 57, 58, 60, 66, 68].”
MethodPutting Randomized Compiler Testing into Production (Experience Report)
Donaldson, A. F., Evrard, H., & Thomson, P. (2020) · DROPS (Schloss Dagstuhl – Leibniz Center for Informatics) · doi:10.4230/lipics.ecoop.2020.22 · Cited by 19
On the Caching Schemes to Speed Up Program Reduction
Tian, Y., Zhang, X., Dong, Y., Xu, Z., Zhang, M., Jiang, Y., Cheung, S.-C., & Sun, C. P. (2023) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3617172 · Cited by 15
“In total, our benchmark suite contains 31 C compiler bugs, which consists of programs that have the common size of automatically generated iles via fuzzing techniques such as CSmith [51] and EMI [26].”
InfluentialApplication of Domain-aware Binary Fuzzing to Aid Android Virtual Machine Testing
Kyle, S. C., Leather, H., Franke, B., Butcher, D., & Monteith, S. (2015) · ACM SIGPLAN/SIGOPS International Conference on Virtual Execution Environments (VEE) · doi:10.1145/2731186.2731198 · Cited by 16
“In [12], Vu et al. present Orion, a tool that uses Equiva-lence Modulo Inputs (EMI) to reveal more miscompilations than Csmith, which mainly highlights compiler crash defects.”
MethodValidating class integration test order generation systems with Metamorphic Testing
Zhang, M., Keung, J., Chen, T. Y., & Xiao, Y. (2020) · Information and Software Technology · doi:10.1016/j.infsof.2020.106507 · Cited by 15
SpecTest: Specification-Based Compiler Testing
Schumi, R., & Sun, J. (2021) · Lecture notes in computer science · doi:10.1007/978-3-030-71500-7_14 · Cited by 18
“For instance, the algebraic property adopted in the EMI approach [55] is that mutating unreachable code does not change the execution result.”
BackgroundInfluential
Metadata
- Authors
- Le, V., Afshari, M., & Su, Z.
- Affiliations
- University of California, Davis (US)
- ORCID
- Venue
- Proceedings of the 35th ACM SIGPLAN Conference on Programming Language Design and Implementation
- Publisher
- ACM
- Published
- 2014-06-09
- Pages
- 216-226
- ISSN
- 1531-7102 (ISSN-L)
- OpenAlex
- W2170737051
- Cited by
- 388
- References
- 28
- Citations by year
- 2026: 25 · 2025: 28 · 2024: 39 · 2023: 33 · 2022: 25 · 2021: 38 · 2020: 46 · 2019: 31 · 2018: 33 · 2017: 25 · 2016: 38 · 2015: 25 · 2014: 2
- FWCI
- 19.85
- Type
- conference paper
- Language
- en
- Open access
- closed
- Locations
- ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI) (publishedVersion)
- Funders
- National Science Foundation (0917392, 1117603, 1319187, 1349528)
- Topics
- Physical Sciences › Computer Science › Software › Software Testing and Debugging Techniques
- Physical Sciences › Computer Science › Software › Logic, programming, and type systems
- Physical Sciences › Computer Science › Hardware and Architecture › Parallel Computing and Optimization Techniques
- Keywords
- compiler validation, differential testing, optimizing compilers, test data generation, program variants, compiler correctness
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.