2 research outputs found

    Compiler Optimization Correctness by Temporal Logic

    Get PDF

    Correctness of Classical Compiler Optimizations using CTL

    Get PDF
    AbstractIn this paper, global compiler optimizations are captured by conditional rewrite rules of the form ( I β‡’ I' if Ο† ), where I and I' are program instructions and Ο† is a condition expressed in a variant of CTL, a formalism well suited to describe properties involving the control flow of a given program. The goal: to formally prove that if the condition Ο† is satisfied, then the rewrite rule I β‡’ I' can be applied to the program without changing the semantics of the program. Once a rewrite rule has been proven correct, it can be directly and automatically utilized in an optimizing compiler.The framework is based on joint work with David Lacey, Neil Jones and Eric Van Wyk [6]. The present paper presents a slightly simplified version of the framework, with emphasis on the CTL variants relation to CTL, along with a correctness proof of a transformation eliminating recomputations of available expressions
    corecore