Compiler Optimization Correctness by Temporal Logic

Loading...
Thumbnail Image

View/Download File

Persistent link to this item

Statistics
View Statistics

Published Date

Publisher

Type

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.

Keywords

Description

Associated research group: Minnesota Extensible Language Tools

Related to

item.page.replaces

License

Series/Report Number

Funding Information

item.page.isbn

DOI identifier

Previously Published Citation

Higher-Order and Symbolic Computation, 17 (3): 173-206

Other identifiers

Suggested Citation

Lacey, David; D. Jones, Neil; Van Wyk, Eric; Christian Frederiksen, Carl. (2004). Compiler Optimization Correctness by Temporal Logic. Retrieved from the University Digital Conservancy, https://hdl.handle.net/11299/217330.

Content distributed via the University Digital Conservancy may be subject to additional license and use restrictions applied by the depositor. By using these files, users agree to the Terms of Use. Materials in the UDC may contain content that is disturbing and/or harmful. For more information, please see our statement on harmful content in digital repositories.