Proceedings of the ACM on Programming Languages · 2023 · 13 citations · 34 references
ComputingComputer EngineeringComputer ScienceCompilersComputer ArchitectureSchedulingCompiler ConstructionControl-flow AnalysisData-flow AnalysisDeductive VerificationInstruction SchedulingCode MotionCompiler DesignCompiler Optimization ValidationConstant PropagationCorrectness CheckingDead Code EliminationPeephole OptimizationStrength Reduction
CompCert (ACM Software System Award 2021) is the first industrial-strength compiler with a mechanically checked proof of correctness. Yet, CompCert remains a moderately optimizing C compiler. Indeed, some optimizations of “gcc -O1” such as Lazy Code Motion (LCM) or Strength Reduction (SR) were still missing: developing these efficient optimizations together with their formal proofs remained a challenge. Cyril Six et al. have developed efficient formally verified translation validators for certifying the results of superblock schedulers and peephole optimizations. We revisit and generalize their approach into a framework (integrated into CompCert) able to validate many more optimizations: an enhanced superblock scheduler, but also Dead Code Elimination (DCE), Constant Propagation (CP), and more noticeably, LCM and SR. In contrast to other approaches to translation validation, we co-design our untrusted optimizations and their validators. Our optimizations provide hints, in the forms of invariants or CFG morphisms , that help keep the formally verified validators both simple and efficient. Such designs seem applicable beyond CompCert.
34
Symbolic execution and program testing
James C. King · Communications of the ACM · 1976 · 3K citations · Full text
MiBench: A free, commercially representative embedded benchmark suite
Matthew R. Guthaus, Jeffrey Ringenberg, Daniel Ernst et al. · 2005 · 1.6K citations
Formal verification of a realistic compiler
Xavier Leroy · Communications of the ACM · 2009 · 1.1K citations
The existence of refinement mappings
Martı́n Abadi, Leslie Lamport · Theoretical Computer Science · 1991 · 734 citations
Finding and understanding bugs in C compilers
Xuejun Yang, Yang Chen, Eric Eide et al. · 2011 · 733 citations