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 825 · 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
Machine Learning Testing: Survey, Landscapes and Horizons
Zhang, J. M., Harman, M., Ma, L., & Liu, Y. (2022) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2019.2962027 · Cited by 897
Metamorphic Testing: A Review of Challenges and Opportunities
Chen, T. Y., Kuo, F.-C., Liu, H., Poon, P.-L., Towey, D., Tse, T. H., & Zhou, Z. Q. (2019) · ACM Computing Surveys · doi:10.1145/3143561 · Cited by 665
“detect hundreds of real-life bugs in two popular compilers [50] is strong evidence that identication of good MRs may not be dicult at all.”
InfluentialA Survey on Metamorphic Testing
Segura, S., Fraser, G., Sanchez, A. B., & Ruiz-Cortes, A. (2016) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2016.2532875 · Cited by 563
“A closely related idea was presented by Le et al. [119].”
BackgroundDeng, Y., Xia, C. S., Peng, H., Yang, C., & Zhang, L. (2023) · Proceedings of the 32nd ACM SIGSOFT International Symposium on Software Testing and Analysis · doi:10.1145/3597926.3598067 · Cited by 326
“Additionally, TitanFuzz is the rst work to demonstrate that LLMs can perform both generation-based [30, 80] and mutation-based [39, 50] fuzzing studied for decades [84], while being fully automated, generalizable, and applicable to domains challenging for traditional approaches (such as DL systems).”
BackgroundMethodVerdi: a framework for implementing and formally verifying distributed systems
Wilcox, J. R., Woos, D., Panchekha, P., Tatlock, Z., Wang, X., Ernst, M. D., & Anderson, T. (2015) · Proceedings of the 36th ACM SIGPLAN Conference on Programming Language Design and Implementation · doi:10.1145/2737924.2737958 · Cited by 270
“The CompCert C compiler [22] was verified in Coq and repeatedly shown to be more reliable than traditionally developed compilers [21, 41].”
MethodSuperion: Grammar-Aware Greybox Fuzzing
Wang, J., Chen, B., Wei, L., & Liu, Y. (2019) · 2019 IEEE/ACM 41st International Conference on Software Engineering (ICSE) · doi:10.1109/icse.2019.00081 · Cited by 260
“It is worth mentioning that application-specific fuzzers have been attracting great interests, e.g., compiler fuzzing [16, 18, 39, 40, 44, 60], kernel fuzzing [17, 31, 58], IoT (Internet of Things) fuzzing [14], OS fuzzing [49] and smart contract fuzzing [36].”
TASO: optimizing deep learning computation with automatic generation of graph substitutions
Jia, Z., Padon, O., Thomas, J., Warszawski, T., Zaharia, M., & Aiken, A. (2019) · Proceedings of the 27th ACM Symposium on Operating Systems Principles · doi:10.1145/3341301.3359630 · Cited by 261
“In the compiler literature, significant effort has been devoted to formally verifying optimizations [7, 11, 13, 23, 29, 30, 33, 35].”
BackgroundLearning to Fuzz from Symbolic Execution with Application to Smart Contracts
He, J., Balunović, M., Ambroladze, N., Tsankov, P., & Vechev, M. (2019) · Proceedings of the 2019 ACM SIGSAC Conference on Computer and Communications Security · doi:10.1145/3319535.3363230 · Cited by 269
“Because of its simplicity and practical effectiveness, fuzzing has become one of the main approaches for software testing [21, 30, 38, 68].”
Chen, J., Patra, J., Pradel, M., Xiong, Y., Zhang, H., Hao, D., & Zhang, L. (2021) · ACM Computing Surveys · doi:10.1145/3363562 · Cited by 215
“Even though considerable efforts have been made to improve the quality of compilers, similar to all other software, compilers still contain bugs [72, 103, 123].”
BackgroundMethodInfluentialCRADLE: Cross-Backend Validation to Detect and Localize Bugs in Deep Learning Libraries
Pham, H. V., Lutellier, T., Qi, W., & Tan, L. (2019) · 2019 IEEE/ACM 41st International Conference on Software Engineering (ICSE) · doi:10.1109/icse.2019.00107 · Cited by 190
Metamorphic testing of driverless cars
Zhou, Z. Q., & Sun, L. (2019) · Communications of the ACM · doi:10.1145/3241979 · Cited by 200
“The increasing interest in MT is not only because it can alleviate the oracle problem and automate test generation, but also because the perspective of MT has seldom been used in previous testing strategies and, as a result, MT has detected a large number of previously unknown faults in many mature systems such as the…”
BackgroundCoverage-directed differential testing of JVM implementations
Chen, Y., Su, T., Sun, C., Su, Z., & Zhao, J. (2016) · Proceedings of the 37th ACM SIGPLAN Conference on Programming Language Design and Implementation · doi:10.1145/2908080.2908095 · Cited by 169
“Fuzz testing has also been employed to find issues re-lated to system calls [14, 40], security protocols [11, 36], language compilers [22] and interpreters [19, 32].”
BackgroundMethodSelf-citationFinding compiler bugs via live code mutation
Sun, C., Le, V., & Su, Z. (2016) · Proceedings of the 2016 ACM SIGPLAN International Conference on Object-Oriented Programming, Systems, Languages, and Applications · doi:10.1145/2983990.2984038 · Cited by 168
“The main compiler validation techniques include formal verification [12, 13], translation validation [22, 24], and random testing [4, 9–11 , 35].”
BackgroundMethodInfluentialSelf-citationRandom testing for C and C++ compilers with YARPGen
Livinskii, V., Babokin, D., & Regehr, J. D. (2020) · Proceedings of the ACM on Programming Languages · doi:10.1145/3428264 · Cited by 171
“Although random test-case generation is an effective way to discover compiler bugs [Eide and Regehr 2008; Le et al. 2014, 2015; Nagai et al. 2012, 2013, 2014; Sun et al. 2016; Yang et al. 2011], experience shows that any given random test-case generator, testing a particular compiler, will…”
BackgroundResultInfluentialAlive2: bounded translation validation for LLVM
Lopes, N. P., Lee, J., Hur, C.-K., Liu, Z., & Regehr, J. D. (2021) · ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI) · doi:10.1145/3453483.3454030 · Cited by 168
“Tools like Csmith [48], EMI [20], and SPE [50] have found hundreds of bugs in commercial compilers, including GCC, LLVM, and MSVC.”
MethodCompiler fuzzing through deep learning
Cummins, C., Petoumenos, P., Murray, A., & Leather, H. (2018) · Proceedings of the 27th ACM SIGSOFT International Symposium on Software Testing and Analysis · doi:10.1145/3213846.3213848 · Cited by 147
“Equivalence Modulo Inputs (EMI) testing [19, 29] follows a different approach to test case generation.”
MethodMetamorphic testing for software quality assessment: A study of search engines
Zhou, Z. Q., Xiang, S., & Chen, T. Y. (2016) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2015.2478001 · Cited by 163
“MT has been used to check the functional correctness of various applications [6], [7], [8], [9], [10], [11], [12], [13], [14] and has also been applied to program proving and debugging [15], [16].”
MethodLidbury, C., Lascu, A., Chong, N., & Donaldson, A. F. (2015) · Proceedings of the 36th ACM SIGPLAN Conference on Programming Language Design and Implementation · doi:10.1145/2737924.2737986 · Cited by 143
“This benchmark suite is comparable in size to the 11 real-world benchmarks (9 SPECINT, Mathomatic and tcc) used to evaluate EMI testing for C compilers [12].”
BackgroundMethodInfluentialFinding deep compiler bugs via guided stochastic program mutation
Le, V., Sun, C. P., & Su, Z. (2015) · Conference on Object-Oriented Programming Systems, Languages, and Applications · doi:10.1145/2814270.2814319 · Cited by 152
“However, it is challenging to reduce bugs triggered by these projects because the projects typically involve multiple directories and multiple files [9].”
BackgroundMethodInfluentialSelf-citationA comprehensive study of deep learning compiler bugs
Shen, Q., Ma, H., Chen, J., Tian, Y., Cheung, S.-C., & Chen, X. (2021) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3468264.3468591 · Cited by 181
“It di � ers from the prior � ndings [11, 14, 44, 60] that front-end bugs are rare in traditional compilers (e.g., GCC and LLVM).”
BackgroundMethodToward understanding compiler bugs in GCC and LLVM
Sun, C. P., Le, V., Zhang, Q., & Su, Z. (2016) · International Symposium on Software Testing and Analysis · doi:10.1145/2931037.2931074 · Cited by 151
“It is surprising that most of the research and engineering efforts have been devoted to testing or validating C compilers [3, 11, 12, 13, 14, 23, 29, 34, 35] but little on C++, although C++ is one of the most popular programming languages in industry (among top three according to the TIOBE index [33]).”
BackgroundMethodInfluentialSelf-citationProvably correct peephole optimizations with alive
Lopes, N. P., Menendez, D., Nagarakatte, S., & Regehr, J. D. (2015) · ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI) · doi:10.1145/2737924.2737965 · Cited by 150
“…and Subject Descriptors D.2.4 [Programming Languages]: Software/Program Verification; D.3.4 [Programming Languages]: Processors—Compilers; F.3.1 [Logics and Meanings of Programs]: Specifying and Verifying and Reasoning about Programs Keywords Compiler Verification, Peephole Optimization, Alive”
BackgroundInfluentialFinding bugs in database systems via query partitioning
Rigger, M., & Su, Z. (2020) · Proceedings of the ACM on Programming Languages · doi:10.1145/3428279 · Cited by 176
“This technique has been applied successfully in various domains [Chen et al. 2018; Donaldson et al. 2017; He et al. 2020; Le et al. 2014; Segura and Zhou 2018; Winterer et al. 2020].”
MethodSelf-citationMetamorphic Testing of RESTful Web APIs
Segura, S., Parejo, J. A., Troya, J., & Ruiz–Cortés, A. (2017) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2017.2764464 · Cited by 160
“…then, as reported in a recent survey [11], the literature on metamorphic testing has flourished and applications of the technique have been reported in numerous domains including Web services and applications [18], computer graphics [21], compilers [22], bioinformatics [23], and cybersecurity [24].”
BackgroundPerses: syntax-guided program reduction
Sun, C. P., Li, Y., Zhang, Q., Gu, T., & Su, Z. (2018) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3180155.3180236 · Cited by 135
“Le et al. introduce a meta-reducer by combining Berkeley Delta [15] and C-Reduce in their EMI testing project [9–11 , 20].”
BackgroundMethodSelf-citationDetecting optimization bugs in database engines via non-optimizing reference engine construction
Rigger, M., & Su, Z. (2020) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3368089.3409710 · Cited by 134
“Similarly to metamorphic testing, differential testing has proven to be effective in many domains [6, 16, 31, 33, 36, 61].”
BackgroundMethodSelf-citationMetamorphic Testing: Testing the Untestable
Segura, S., Towey, D., Zhou, Z. Q., & Chen, T. Y. (2018) · IEEE Software · doi:10.1109/ms.2018.2875968 · Cited by 133
“Several researchers have proposed using MT to find failures in compilers based on the following idea: removing dead source code from a program should not alter the functionality of the compiler-generated code [6].”
BackgroundMetamorphic Relations for Enhancing System Understanding and Use
Zhou, Z. Q., Sun, L., Chen, T. Y., & Towey, D. (2018) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2018.2876433 · Cited by 148
“There is a growing interest in test oracles from the research community, as reflected by an increasing number of research activities involving this topic in recent years [1], [2], [3],”
BackgroundMethodAn empirical comparison of compiler testing techniques
Chen, J., Hu, W., Hao, D., Xiong, Y., Zhang, H., Zhang, L., & Xie, B. (2016) · Proceedings of the 38th International Conference on Software Engineering · doi:10.1145/2884781.2884878 · Cited by 107
“The number of variants is recommended by their paper [13].”
BackgroundMethodInfluentialMetamorphic object insertion for testing object detection systems
Wang, S., & Su, Z. (2020) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1145/3324884.3416584 · Cited by 144
Self-citationDeep Differential Testing of JVM Implementations
Chen, Y., Su, T., & Su, Z. (2019) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse.2019.00127 · Cited by 114
“introduce the concept of equivalence modulo inputs (EMI) for testing C compilers [43].”
BackgroundSelf-citationSystematic execution of Android test suites in adverse conditions
Adamsen, C. Q., Mezzetti, G., & Møller, A. (2015) · International Symposium on Software Testing and Analysis · doi:10.1145/2771783.2771786 · Cited by 111
“Orion [18] performs semantics preserving mutations of a program to test the correctness of optimizing compilers.”
BackgroundFuzzing JavaScript Engines with Aspect-preserving Mutation
Park, S., Xu, W. X., Yun, I., Jang, D., & Kim, T. (2020) · IEEE Symposium on Security and Privacy (S&P) · doi:10.1109/sp40000.2020.00067 · Cited by 111
“For example, Equivalence Modulo Inputs (EMI) [23, 24] is proposed to validate optimizing compilers for differential testing.”
MethodBugs in Quantum computing platforms: an empirical study
Paltenghi, M., & Pradel, M. (2022) · Proceedings of the ACM on Programming Languages · doi:10.1145/3527330 · Cited by 127
“…platforms, other widely used platforms are subject to testing and verification approaches, e.g., in the form of compiler testing [Chen et al. 2020; Le et al. 2014, 2015; Yang et al. 2011; Zhang et al. 2017], compiler verification [Leroy 2009], or automated testing of deep learning libraries [Pham…”
MethodDeepFuzz: Automatic Generation of Syntax Valid C Programs for Fuzz Testing
Liu, X., Li, X., Prajapati, R., & Wu, D. (2019) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v33i01.33011044 · Cited by 95
“Mainstream research focuses on formal verification (Leroy and Grall 2009), translation validation (Necula 2000), and random testing (Lidbury et al. 2015; Le, Afshari, and Su 2014; Le, Sun, and Su 2015).”
BackgroundKanewala, U., Bieman, J. M., & Ben‐Hur, A. (2015) · Software Testing Verification and Reliability · doi:10.1002/stvr.1594 · Cited by 126
“Recently, metamorphic testing has been used to validate compilers [25] and cloud models[26].”
MethodSkeletal program enumeration for rigorous compiler testing
Zhang, Q., Sun, C. P., & Su, Z. (2017) · ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI) · doi:10.1145/3062341.3062379 · Cited by 126
Self-citationPilsner: a compositionally verified compiler for a higher-order imperative language
Neis, G., Hur, C.-K., Kaiser, J.-O., McLaughlin, C. A., Dreyer, D. R., & Vafeiadis, V. (2015) · ACM SIGPLAN International Conference on Functional Programming (ICFP) · doi:10.1145/2784731.2784764 · Cited by 100
“For instance, recent work of Le et al. [14] identified 147 confirmed bugs in the industrial-strength GCC and LLVM compilers, of which 95 were violations of semantics preservation.”
BackgroundResultFinding deep compiler bugs via guided stochastic program mutation
Le, V., Sun, C. P., & Su, Z. (2015) · ACM SIGPLAN Notices · doi:10.1145/2858965.2814319 · Cited by 96
Self-citationStructure-invariant testing for machine translation
He, P., Meister, C., & Su, Z. (2020) · Proceedings of the ACM/IEEE 42nd International Conference on Software Engineering · doi:10.1145/3377811.3380339 · Cited by 82
“Metamorphic testing has been applied for testing various traditional software, such as compilers [Le et al. 2014; Lidbury et al. 2015], scientific libraries [Zhang et al.”
MethodSelf-citationLearning to Prioritize Test Programs for Compiler Testing
Chen, J., Bai, Y., Hao, D., Xiong, Y., Zhang, H., & Xie, B. (2017) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse.2017.70 · Cited by 102
“EMI is first proposed by Le et al. [1], which generates some equivalent variants for any given test program and determines whether a compiler contains bugs by comparing the results produced by the original test program and its variants 4 .”
BackgroundMethodResultInfluentialGrayC: Greybox Fuzzing of Compilers and Analysers for C
Even-Mendoza, K., Sharma, A., Donaldson, A. F., & Cadar, C. (2023) · ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA) · doi:10.1145/3597926.3598130 · Cited by 87
“In contrast, most compiler and code analyser fuzzers either generate programs from scratch (e.g. [16, 68, 105]) or transform existing programs (e.g. [17, 65]).”
InfluentialMETRIC: METamorphic Relation Identification based on the Category-choice framework
Chen, T. Y., Poon, P., & Xie, X. (2015) · Journal of Systems and Software · doi:10.1016/j.jss.2015.07.037 · Cited by 95
Metamorphic Testing for Cybersecurity
Chen, T. Y., Kuo, F., Ma, W., Susilo, W., Towey, D., Voas, J. M., & Zhou, Z. Q. (2016) · Computer · doi:10.1109/mc.2016.176 · Cited by 98
“generated “147 confirmed, unique bug reports for GCC and LLVM alone,” of which “more than 100 have already been fixed” [12].”
BackgroundValidating SMT solvers via semantic fusion
Winterer, D., Zhang, C., & Su, Z. (2020) · Proceedings of the 41st ACM SIGPLAN Conference on Programming Language Design and Implementation · doi:10.1145/3385412.3385985 · Cited by 82
Self-citationFinding and analyzing compiler warning defects
Sun, C. P., Le, V., & Su, Z. (2016) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/2884781.2884879 · Cited by 81
“Among them, two notable efforts are Csmith [13,33,37] and Orion [21].”
BackgroundMethodInfluentialSelf-citationFuzzing the Rust Typechecker Using CLP (T)
Dewey, K. T., Roesch, J., & Hardekopf, B. (2015) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase.2015.65 · Cited by 91
“Equivalence Modulo Inputs (EMI) is a compiler optimization and code generation testing technique wherein programs are generated which should behave in semantically identical ways given identical inputs [28].”
Metamorphic testing of RESTful web APIs
Segura, S., Parejo, J. A., Troya, J., & Ruiz–Cortés, A. (2018) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3180155.3182528 · Cited by 86
“phic testing in real-world tools such as the search engine Google [18], the compiler GCC [22], the machine learning system RapidMiner [25] and the NASA Data Access”
BackgroundMethodHow far we have come: testing decompilation correctness of C decompilers
Liu, Z., & Wang, S. (2020) · ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA) · doi:10.1145/3395363.3397370 · Cited by 78
“Additionally, instead of the blind mutation strategy (i.e., randomly selecting some statements for mutation) proposed in the first EMI paper [40], we reimplement an advanced EMI mutation strategy guided by the Markov Chain Monte Carlo (MCMC) optimization procedure to explore the search space [41].”
BackgroundMethodInfluentialAutomated conformance testing for JavaScript engines via deep compiler fuzzing
Ye, G., Tang, Z., Tan, S. H., Huang, S., Fang, D., Sun, X., Bian, L., Wang, H., & Wang, Z. (2021) · Proceedings of the 42nd ACM SIGPLAN International Conference on Programming Language Design and Implementation · doi:10.1145/3453483.3454054 · Cited by 77
“Existing compiler fuzzers use a random input generation strategy by relying on the typing information of a variable [14, 31] to generate kernel or function parameters.”
BackgroundMethodMetamorphic Testing of Deep Learning Compilers
Xiao, D., Liu, Z., Yuan, Y., Pang, Q., & Wang, S. (2022) · Proceedings of the ACM on Measurement and Analysis of Computing Systems · doi:10.1145/3508035 · Cited by 94
“To date, metamorphic testing has achieved major success in detecting bugs in traditional software [38, 39, 41, 65, 73] as well as AI models [44, 71, 79, 87].”
MethodVerdi: a framework for implementing and formally verifying distributed systems
Wilcox, J. R., Woos, D., Panchekha, P., Tatlock, Z., Wang, X., Ernst, M. D., & Anderson, T. E. (2015) · ACM SIGPLAN Notices · doi:10.1145/2813885.2737958 · Cited by 70
Lidbury, C., Lascu, A., Chong, N., & Donaldson, A. F. (2015) · ACM SIGPLAN Notices · doi:10.1145/2813885.2737986 · Cited by 70
An empirical study of optimization bugs in GCC and LLVM
Zhou, Z., Ren, Z., Gao, G., & Jiang, H. (2020) · Journal of Systems and Software · doi:10.1016/j.jss.2020.110884 · Cited by 69
Towards Robustness of Deep Program Processing Models—Detection, Estimation, and Enhancement
Zhang, H., Fu, Z., Li, G., Ma, L., Zhao, Z., Yang, H., Sun, Y., Liu, Y., & Jin, Z. G. (2022) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3511887 · Cited by 89
“The statement-level operations are inspired by EMI [50], which generates semantically equivalent code snippets for compiler testing by inserting or deleting dead code.”
Silent bugs in deep learning frameworks: an empirical study of Keras and TensorFlow
Tambon, F., Nikanjam, A., An, L., Khomh, F., & Antoniol, G. (2023) · Empirical Software Engineering · doi:10.1007/s10664-023-10389-6 · Cited by 90
“Similarly, the problem of miscompilation in compilers was tackled [40, 51] with Equivalent Modulo Input, which proved effective at finding such silent defects.”
BackgroundDifferential regression testing for REST APIs
Godefroid, P., Lehmann, D., & Polishchuk, M. (2020) · ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA) · doi:10.1145/3395363.3397374 · Cited by 85
Fully automated functional fuzzing of Android apps for detecting non-crashing logic bugs
Su, T., Yan, Y., Wang, J., Sun, J., Xiong, Y., Pu, G., Wang, K., & Su, Z. (2021) · Proceedings of the ACM on Programming Languages · doi:10.1145/3485533 · Cited by 60
“It has been widely used in testing many other specification-less software systems, e.g. , compilers [Le et al. 2014; Sun et al. 2016], debuggers [Tolksdorf et al. 2019], and machine learning-based systems [Tian et al. 2018; Xie et al. 2011].”
Self-citationHistory-driven test program synthesis for JVM testing
Zhao, Y., Wang, Z., Chen, J., Liu, M., Wu, M., Zhang, Y., & Zhang, L. (2022) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3510003.3510059 · Cited by 79
“[37] proposed EMI, which generates a program variant equivalent to the original test program under the given test inputs, and then uses these program pairs to test compilers.”
MethodOn the unusual effectiveness of type-aware operator mutations for testing SMT solvers
Winterer, D., Zhang, C., & Su, Z. (2020) · Proceedings of the ACM on Programming Languages · doi:10.1145/3428261 · Cited by 85
“, for testing compilers [Cummins et al. 2018; Le et al. 2014; Lidbury et al. 2015; Yang et al. 2011; Zhang et al. 2017], testing database management systems [Jung et al.”
MethodSelf-citationLearning to Explore Paths for Symbolic Execution
He, J., Sivanrupan, G., Tsankov, P., & Vechev, M. (2021) · ACM SIGSAC Conference on Computer and Communications Security (CCS) · doi:10.1145/3460120.3484813 · Cited by 64
“Fuzzing is a technique that concretely executes the program and generates concrete inputs based on input specifications [11, 40, 47] or mutations from existing inputs [1, 7, 12, 26, 30, 31, 41, 42, 45, 65, 72].”
BackgroundTest Case Prioritization for Compilers: A Text-Vector Based Approach
Chen, J., Bai, Y., Hao, D., Xiong, Y., Zhang, H., Zhang, L., & Xie, B. (2016) · IEEE International Conference on Software Testing, Verification and Validation (ICST) · doi:10.1109/icst.2016.19 · Cited by 64
“The two subjects cover all C compilers used in the literature of C compiler testing [20], [21], [22].”
BackgroundMethodResultInfluentialHistory-Guided Configuration Diversification for Compiler Test-Program Generation
Chen, J., Wang, G., Hao, D., Xiong, Y., Zhang, H., & Zhang, L. (2019) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase.2019.00037 · Cited by 64
“EMI has three instantiations, including Orion [2], Athena [14], and Hermes [29].”
BackgroundMethodInfluentialGao, X. Y., Mechtaev, S., & Roychoudhury, A. (2019) · ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA) · doi:10.1145/3293882.3330558 · Cited by 81
“Test-equivalence analysis [5, 31, 32] can significantly optimize this process.”
MethodCompiler bug isolation via effective witness test program generation
Chen, J., Han, J., Sun, P., Zhang, L., Hao, D., & Zhang, L. (2019) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3338906.3338957 · Cited by 63
“We used GCC and LLVM as subjects, which cover almost all popular C compilers used in the existing work [15, 17, 43, 44, 82].”
BackgroundMethodFinding missed optimizations through the lens of dead code elimination
Theodoridis, T., Rigger, M., & Su, Z. (2022) · International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS) · doi:10.1145/3503222.3507764 · Cited by 58
“Examples include among others the development of Csmith which heavily is used for differential testing on compilers [37], and EMI is an approach that derives programs that are equivalent given a certain input used for compiler testing [19, 20].”
BackgroundMethodSelf-citationRandomized stress-testing of link-time optimizers
Le, V., Sun, C. P., & Su, Z. (2015) · International Symposium on Software Testing and Analysis · doi:10.1145/2771783.2771785 · Cited by 57
“Orion introduces an alternate view on differential testing [8].”
BackgroundInfluentialSelf-citationTesting Machine Translation via Referential Transparency
He, P., Meister, C., & Su, Z. (2021) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse43902.2021.00047 · Cited by 67
Self-citationLLM4VV: Developing LLM-driven testsuite for compiler validation
Munley, C., Jarmusch, A., & Chandrasekaran, S. (2024) · Future Generation Computer Systems · doi:10.1016/j.future.2024.05.034 · Cited by 68
Testing probabilistic programming systems
Dutta, S., Legunsen, O., Huang, Z., & Misailovic, S. (2018) · Proceedings of the 2018 26th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering · doi:10.1145/3236024.3236057 · Cited by 49
Metamorphic testing for (graphics) compilers
Donaldson, A. F., & Lascu, A. (2016) · IEEE/ACM International Workshop on Metamorphic Testing (MET) · doi:10.1145/2896971.2896978 · Cited by 53
“A benefit of our proposed metamorphic approach, also associated with the EMI testing method that inspired our work [4] (but not with an approach that generates equivalent random programs [7]), is that it starts with an existing program and produces a minimal change to the program that exposes an erroneous behavioural…”
BackgroundMethodCompiler testing: a systematic literature analysis
Tang, Y., Ren, Z., Kong, W., & Jiang, H. (2019) · Frontiers of Computer Science · doi:10.1007/s11704-019-8231-0 · Cited by 58
“searchers have proposed different approaches for addressing the above issues. Some successful random test case generators have been implemented to facilitate compiler testing [16,20,21], such as Orion [5], Csmith [9,10,28], Quest [11,12], randprog [13], and JTT [15]. All of them can automatically generate abundant test…”
METRIC+: A Metamorphic Relation Identification Technique Based on Input plus Output Domains
Sun, C., Fu, A., Poon, P., Xie, X., Liu, H., & Chen, T. Y. (2019) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2019.2934848 · Cited by 53
“To determine whether or not this type of MRs (that is, those which are infeasible to be decomposed into an input sub-relation and an output sub-relation that are independent of each other) commonly occurs, we manually analyzed 153 MRs reported in 20 different studies [12], [15], [16], [17], [18], [22], [23], [34], [46…”
BackgroundMethodCompiler fuzzing: how much does it matter?
Marcozzi, M., Tang, Q., Donaldson, A. F., & Cadar, C. (2019) · Proceedings of the ACM on Programming Languages · doi:10.1145/3360581 · Cited by 53
“…and Posypkin 2005; Purdom 1972; Sauder 1962; Wichmann 1998]), and recent years have seen the development of several compiler fuzzing tools that employ randomised testing to search for bugs in (primarily C) compilers [Le et al. 2014; Nakamura and Ishiura 2016; Yang et al. 2011; Yarpgen 2018].”
BackgroundMethodInfluentialTest-case reduction and deduplication almost for free with transformation-based compiler testing
Donaldson, A. F., Thomson, P., Teliman, V., Milizia, S., Maselco, A. P., & Karpiński, A. (2021) · ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI) · doi:10.1145/3453483.3454092 · Cited by 52
“As two examples, the Orion tool [22] transforms a C program by randomly deleting statements that have been shown to be dynamically unreachable, while the glsl-fuzz tool (originally called GLFuzz) [7] randomly transforms an OpenGL shader program using more general semantics-preserving transformations, such as wrapping…”
BackgroundMethodAutomatic testing of symbolic execution engines via program generation and differential testing
Kapus, T., & Cadar, C. (2017) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase.2017.8115669 · Cited by 52
“Our approach takes advantage of the recent work on testing compilers [22], [23], [34], especially the work of Regehr et al.”
MethodCoverage Prediction for Accelerating Compiler Testing
Chen, J., Wang, G., Hao, D., Xiong, Y., Zhang, H., Zhang, L., & Xie, B. (2018) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2018.2889771 · Cited by 52
“Besides, we adopt the same tools as the existing work [4] to implement EMI, including LibTooling Library of Clang(10) and Gcov.”
BackgroundMethodResultInfluentialTesting multiple linear regression systems with metamorphic testing
Luu, Q.-H., Lau, M. F., Ng, S., & Chen, T. Y. (2021) · Journal of Systems and Software · doi:10.1016/j.jss.2021.111062 · Cited by 52
“…et al., 2018a), feature models (Segura et al., 2010, 2011), scientific software (Ding et al., 2016; Lin et al., 2018), programming language compilers (Le et al., 2014), graphics shader compilers (Donaldson et al., 2017), context-sensitive middleware-based applications (Chan et al., 2005), object…”
BackgroundA design and verification methodology for secure isolated regions
Sinha, R., Costa, M., Lal, A., Lopes, N. P., Rajamani, S. K., Seshia, S. A., & Vaswani, K. (2016) · ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI) · doi:10.1145/2908080.2908113 · Cited by 58
“However, compilers are large code bases and have been shown to have bugs and produce wrong code at times [6, 23, 26, 29, 46].”
BackgroundMetamorphic Testing for Machine Translations: MT4MT
Sun, L., & Zhou, Z. Q. (2018) · Australasian Software Engineering Conference (ASWEC) · doi:10.1109/aswec.2018.00021 · Cited by 59
“various compilers [18]–[20], commercial obfuscators [21] and, more recently, self-driving cars [22].”
BackgroundJITfuzz: Coverage-guided Fuzzing for JVM Just-in-Time Compilers
Wu, M., Lu, M., Cui, H., Chen, J., Zhang, Y., & Zhang, L. (2023) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse48619.2023.00017 · Cited by 58
“[90] introduced equivalence modulo inputs (EMI) to mutate seed programs and validate the quality of compilers.”
BackgroundAutomatically reducing tree-structured test inputs
Herfert, S., Patra, J., & Pradel, M. (2017) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase.2017.8115697 · Cited by 49
“It has been successfully applied to various kinds of input formats, including program code to test compilers and runtime engines [22, 23, 24, 25, 26], program code to test refactoring engines [27], document formats to test word processors [28], and structured text formats for security testing [29, 30].”
MethodEnhanced compiler bug isolation via memoized search
Chen, J., Ma, H., & Zhang, L. (2020) · Proceedings of the 35th IEEE/ACM International Conference on Automated Software Engineering · doi:10.1145/3324884.3416570 · Cited by 37
“In the study, we used both GCC and LLVM as subjects to investigate the effectiveness of RecBi, covering almost all popular open-source C compilers used in the existing work [13, 16, 21, 41, 70].”
MethodFuzzing Deep Learning Compilers with HirGen
Ma, H., Shen, Q., Tian, Y., Chen, J., & Cheung, S.-C. (2023) · ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA) · doi:10.1145/3597926.3598053 · Cited by 59
“Various semantics-preserving mutations have been proposed to generate equivalent programs for compiler testing [18, 21, 22, 32, 36].”
BackgroundMethodAutomatically finding bugs in a commercial cyber-physical system development tool chain with SLforge
Chowdhury, S. A., Mohian, S., Mehra, S., Gawsane, S., Johnson, T. T., & Csallner, C. (2018) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3180155.3180231 · Cited by 48
“Recent studies identified expressive test-input generation as a success-factor for compiler validation ([30, 58]).”
BackgroundMethodInfluentialEAGLE: creating equivalent graphs to test deep learning libraries
Wang, J., Lutellier, T., Qian, S., Pham, H. V., & Tan, L. (2022) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3510003.3510165 · Cited by 65
“Differential testing for compilers: Differential testing has been used for testing compilers [20, 21, 35].”
BackgroundMethodA Machine Learning Based Framework for Verification and Validation of Massive Scale Image Data
Ding, J., Hu, X., & Gudivada, V. N. (2017) · IEEE Transactions on Big Data · doi:10.1109/tbdata.2017.2680460 · Cited by 50
“A recent application of metamorphic testing to validate compliers has found several hundred bugs in widely used C/C++ compilers [52].”
MethodAutomated model repair for Alloy
Wang, K., Sullivan, A., & Khurshid, S. (2018) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1145/3238147.3238162 · Cited by 57
“(1) The expression generator prunes equivalent expressions based on equivalence pruning rules [75] and modulo test inputs [32].”
BackgroundVerified peephole optimizations for CompCert
Mullen, E., Zuniga, D., Tatlock, Z., & Grossman, D. (2016) · ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI) · doi:10.1145/2908080.2908109 · Cited by 46
“Previous work [9, 29] has repeatedly shown that CompCert is empirically more reliable than traditionally developed compilers, with multiple CPU-years of compiler fuzzing resulting in zero bugs discovered within the verified portions of CompCert.”
BackgroundDifferentially testing soundness and precision of program analyzers
Klinger, C., Christakis, M., & Wüstholz, V. (2019) · ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA) · doi:10.1145/3293882.3330553 · Cited by 59
“Existing work [57], [58], [59], [60], [61] has proposed several techniques for detecting bugs in compilers, and indirectly, in their analyses.”
BackgroundRustSmith: Random Differential Compiler Testing for Rust
Sharma, M., Yu, P., & Donaldson, A. F. (2023) · ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA) · doi:10.1145/3597926.3604919 · Cited by 44
“Several other successful approaches to randomised compiler testing are based on metamorphic testing [6], e.g. via equivalence modulo inputs testing [11], or semantics-preserving transformations [8].”
Test-Equivalence Analysis for Automatic Patch Generation
Mechtaev, S., Gao, X., Tan, S. H., & Roychoudhury, A. (2018) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3241980 · Cited by 50
“Traditionally, many problems in software testing which involve exploring huge search spaces, such as mutation testing, have been shown to benefit from test equivalence [8, 9].”
BackgroundMethodChaliasos, S., Sotiropoulos, T., Spinellis, D. D., Gervais, A., Livshits, B., & Mitropoulos, D. (2022) · ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI) · doi:10.1145/3519939.3523427 · Cited by 43
“Indeed, optimizations is a source of problems that justifiably keeps researchers preoccupied with verifying and testing the implementation of optimizations [21, 24, 25, 29, 30, 47, 48].”
BackgroundMethodResultInfluentialBoosting Compiler Testing by Injecting Real-World Code
Li, S., Theodoridis, T., & Su, Z. (2024) · Proceedings of the ACM on Programming Languages · doi:10.1145/3656386 · Cited by 42
Self-citationAutomated inference of likely metamorphic relations for model transformations
Troya, J., Segura, S., & Ruiz–Cortés, A. (2017) · Journal of Systems and Software · doi:10.1016/j.jss.2017.05.043 · Cited by 49
“[25] reviewed about 120 papers on metamorphic testing and identified successful applications of the technique in a variety of domains including Web services and applications [57, 58, 59, 60], embedded systems [61, 62], computer graphics [63, 64], compilers [65, 66], simulation [67, 68], machine learning [69, 70] and b…”
BackgroundTesting Database Engines via Pivoted Query SynthesisPreprint
Rigger, M., & Su, Z. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2001.04174 · Cited by 42
“…[8], where the program is transformed so that the same result as for the original program is expected, has been applied to various systems; for example, equivalence modulo inputs is a metamorphic-testing-based approach that has been used to find over one thousand bugs in widely-used compilers [21].”
Self-citationLearning a Static Analyzer from Data
Bielik, P., Raychev, V., & Vechev, M. (2017) · Lecture notes in computer science · doi:10.1007/978-3-319-63387-9_12 · Cited by 52
“We address this challenge by prioritizing the search to first check certain programs based on ideas inspired by state-of-the-art testing techniques [11,21].”
BackgroundMethodDetecting Logic Bugs of Join Optimizations in DBMS
Tang, X., Wu, S., Zhang, D., Li, F., & Chen, G. (2023) · Proceedings of the ACM on Management of Data · doi:10.1145/3588909 · Cited by 40
“Differential testing has been shown to be effective in many areas [12, 16, 30, 33, 38, 59].”
Chowdhury, S. A., Shrestha, S. L., Johnson, T. T., & Csallner, C. (2020) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3377811.3380381 · Cited by 40
CTOS: Compiler Testing for Optimization Sequences of LLVM
Jiang, H., Zhou, Z., Ren, Z., Zhang, J., & Li, X. (2021) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2021.3058671 · Cited by 40
“In contrast, DOL and EMI only require one compiler.”
BackgroundMethodInfluential
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.