Finding typing compiler bugs
Stefanos Chaliasos, Thodoris Sotiropoulos, Diomidis D. Spinellis et al. · 2022
We propose a testing framework for validating static typing procedures in compilers. Our core component is a program generator suitably crafted for producing programs that are likely to trigger typing compiler bugs. One of our main contributions is that our program generator gives rise to transformation-based compiler testing for finding typing bugs. We present two novel approaches (type erasure mutation and type overwriting mutation) that apply targeted transformations to an input program to reveal type inference and soundness compiler bugs respectively. Both approaches are guided by an intra-procedural type inference analysis used to capture type information flow.
Cited by 36 works. doi:10.1145/3519939.3523427
Authors
- Stefanos Chaliasos
- Thodoris Sotiropoulos
- Diomidis D. Spinellis
- Arthur Gervais
- Benjamin Livshits
- Dimitris Mitropoulos
References
- A theory of type polymorphism in programming
- Making the future safe for the past
- Formal certification of a compiler back-end or
- Finding and understanding bugs in C compilers
- Differential Testing for Software.
- Compiler validation via equivalence modulo inputs
- Test-case reduction for C compiler bugs
- Coverage-directed differential testing of JVM implementations
- A Survey of Compiler Testing
- Many-core compiler fuzzing