Towards modularly comparing programs using automated theorem provers

  • Authors:
  • Chris Hawblitzel;Ming Kawaguchi;Shuvendu K. Lahiri;Henrique Rebêlo

  • Affiliations:
  • Microsoft Research, Redmond, WA;University of California, San Diego;Microsoft Research, Redmond, WA;Federal University of Pernambuco, Brazil

  • Venue:
  • CADE'13 Proceedings of the 24th international conference on Automated Deduction
  • Year:
  • 2013

Quantified Score

Hi-index 0.00

Visualization

Abstract

In this paper, we present a general framework for modularly comparing two (imperative) programs that can leverage single-program verifiers based on automated theorem provers. We formalize (i) mutual summaries for comparing the summaries of two programs, and (ii) relative termination to describe conditions under which two programs relatively terminate. The two rules together allow for checking correctness of interprocedural transformations. We also provide a general framework for dealing with unstructured control flow (including loops) in this framework. We demonstrate the usefulness and limitations of the framework for verifying equivalence, compiler optimizations, and interprocedural transformations.