Lacey, DavidD. Jones, NeilVan Wyk, EricChristian Frederiksen, Carl2020-12-102020-12-102002In Proc. of ACM POPLhttps://hdl.handle.net/11299/217345Associated research group: Minnesota Extensible Language ToolsMany classical compiler optimizations can be elegantly expressed using rewrite rules of form: I ⇒ I' if φ, where I, I' are intermediate language instructions and φ is a property expressed in a temporal logic suitable for describing program data flow. Its reading: If the current program π contains an instruction of form I at some control point p, and if flow condition φ is satisfied at p, then replace I by I'. 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. The meaning of correctness is that for any program π, if Rewrite ( π, π', p, I ⇒ I' φ ) then [[ π ]] ≡ [[ π' ]], i.e. π and π' have exactly the same semantics.Proving Correctness of Compiler Optimizations by Temporal LogicReport