首页> 外文期刊>Fundamenta Informaticae >An Efficient Equivalence-checking Algorithm for a Model of Programs with Commutative and Absorptive Statements
【24h】

An Efficient Equivalence-checking Algorithm for a Model of Programs with Commutative and Absorptive Statements

机译:具有可交换性和吸收性语句的程序模型的有效等效检查算法

获取原文
获取原文并翻译 | 示例
           

摘要

For many program analysis problems it is useful to have means to efficiently prove that given programs have similar (equivalent) behaviors. Unfortunately, in most cases to prove the behavioral equivalence is an undecidable problem. A common way to overcome such undecidability is to consider a model of programs with an abstract semantics based on the real one, in which only some simple properties are captured, and to provide an efficient equivalence-checking algorithm for the model. We focus on two kinds of properties of data-modifying statements of imperative programs. Statements a and b are commutative, if the execution of sequences a b and b a lead to the same result. A statement b is (left-) absorptive for a statement a, if the execution of sequences a b and b lead to the same result. We consider propositional program models in which commutativity and absorption properties are caprtured (CA-models). Formally, data states for a CA-model are elements of a monoid over the set of statement symbols, defined by an arbitrary set of relations of the form ab = ba (for commutativity) and ab = b (for absorption). We propose an equivalence-checking algorithm for CA-models based on (what we call) progressive monoids. The algorithm terminates in time polynomial in size of programs. As a consequence, we prove a polynomial-time decidability for the equivalence problem in such CA-models.
机译:对于许多程序分析问题,有用的方法是有效地证明给定程序具有类似(等效)的行为。不幸的是,在大多数情况下,证明行为等效是无法确定的问题。克服这种不确定性的一种常见方法是,基于真实的程序来考虑具有抽象语义的程序模型,在该程序模型中仅捕获一些简单的属性,并为该模型提供有效的等效性检查算法。我们关注命令式程序的数据修改语句的两种属性。如果序列a b和b a的执行导致相同的结果,则语句a和b是可交换的。如果序列a b和b的执行导致相同的结果,则语句b对于语句a是(左)吸收性。我们考虑命题方案模型,其中交换性和吸收特性受到限制(CA模型)。形式上,CA模型的数据状态是语句符号集上的一个等式的元素,由一组任意关系定义,形式为ab = ba(用于可交换性)和ab = b(用于吸收)。我们提出了一种基于(称为)渐进半定式的CA模型等效检查算法。该算法终止于程序大小的时间多项式。结果,我们证明了这种CA模型中等价问题的多项式时间可判定性。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号