University of Minnesota
Software Engineering Center
/

You are here

Compiler Optimization Correctness by Temporal Logic

Date of Publication: 
September 2004
Associated Research Groups: 
Publication Files: 
Abstract: 
Rewrite rules with side conditions can elegantly express many classical compiler optimizations for imperative programming languages. In this paper, programs are written in an intermediate language and transformation-enabling side conditions are specified in a temporal logic suitable for describing program data flow. The purpose of this paper is to show how such transformations may be proven correct. Our methodology is illustrated by three familiar optimizations: dead code elimination, constant folding, and code motion. A transformation is correct if whenever it can be applied to a program, the original and transformed programs are semantically equivalent, i.e., they compute the same input-output function. The proofs of semantic equivalence inductively show that a transformation-specific bisimulation relation holds between the original and transformed program computations.
Venue: 
Higher-Order and Symbolic Computation, 17 (3): 173-206
bibtex: 
Bibtex: @article{lacey_hosc_04, author = "Lacey, D. and Jones, N. D. and Van Wyk, E. and Frederiksen, C. C.", title = "Compiler Optimization Correctness by Temporal Logic", journal = "Higher Order and Symbolic Computation", editor = "Olivier Danvy", volume = 17, number = 3, pages = "173--206", year = 2004 }