2009 · 62 citations · 19 references
ComputingComputer EngineeringComputer ScienceAlgorithmsCompilersFormal MethodsCompiler ConstructionControl-flow AnalysisData-flow AnalysisDeductive VerificationProof AssistantsCode MotionCode VerificationCompiler Optimization ValidationCoqCorrectness CheckingProgram TransformationProgram Verification
Translation validation establishes a posteriori the correctness of a run of a compilation pass or other program transformation. In this paper, we develop an efficient translation validation algorithm for the Lazy Code Motion (LCM) optimization. LCM is an interesting challenge for validation because it is a global optimization that moves code across loops. Consequently, care must be taken not to move computations that may fail before loops that may not terminate. Our validator includes a specific check for anticipability to rule out such incorrect moves. We present a mechanically-checked proof of correctness of the validation algorithm, using the Coq proof assistant. Combining our validator with an unverified implementation of LCM, we obtain a LCM pass that is provably semantics-preserving and was integrated in the CompCert formally verified compiler.
19
Formal certification of a compiler back-end or
Xavier Leroy · 2006 · 652 citations
Translation validation for an optimizing compiler
George C. Necula · 2000 · 487 citations
Global optimization by suppression of partial redundancies
E. H. Morel, C. Renvoise · Communications of the ACM · 1979 · 377 citations · Full text
Jens Knoop, Oliver Rüthing, Bernhard Steffen · 1992 · 261 citations · Full text