Towards Modularly Comparing Programs Using Automated Theorem Provers
Towards Modularly Comparing Programs Using Automated Theorem Provers
复制标题
使用自动定理证明器对程序进行模块化比较
DOI:
--
复制
发表时间:
2013
期刊:
影响因子:
--
通讯作者:
Henrique Rebêlo
中科院分区:
文献类型:
--
作者:
C. Hawblitzel;Ming Kawaguchi;Shuvendu K. Lahiri;Henrique Rebêlo
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.