首页> 外文期刊>Journal of Logic and Algebraic Programming >Decidability of strong equivalence for subschemas of a class of linear, free,near-liberal program schemas
【24h】

Decidability of strong equivalence for subschemas of a class of linear, free,near-liberal program schemas

机译:一类线性,自由,近自由程序方案的子方案的强等价性的判定

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

摘要

A program schema defines a class of programs, all of which have identical statement structure, but whose functions and predicates may differ. A schema thus defines an entire class of programs according to how its symbols are interpreted. Two schemas are strongly equivalent if they always define the same function from initial states to final states for every interpretation. A subschema of a schema is obtained from a schema by deleting some of its statements. A schema S is liberal if there exists an initial state in the Herbrand domain such that the same term is not generated more than once along any executable path through S. In this paper, we introduce near-liberal schemas, in which this non-repeating condition applies only to terms not having the form g() for a constant function symbol g. Given a schema S that is linear (no function or predicate symbol occurs more than once in S) and a variable v, we compute a set of function and predicate symbols in S which is a subset of those defined by Weiser's slicing algorithm and prove that if for every while predicate q in S and every constant assignment w :=g(); lying in the body of q, no other assignment to w also lies in the body of q, our smaller symbol set defines a correct subschema of S with respect to the final value of v after execution. We also prove that if S is also free (every path through S is executable) and near-liberal, it is decidabie which of its subschemas are strongly equivalent to S. For the class of pairs of schemas in which one schema is a subschema of the other, this generalises a recent result in which S was required to be linear, free and liberal.
机译:程序模式定义了一类程序,所有程序都具有相同的语句结构,但是其功能和谓词可能不同。因此,模式根据其符号的解释方式定义了整个程序类别。如果两个方案始终为每种解释从初始状态到最终状态定义相同的功能,则它们是高度等效的。通过删除模式的某些语句,可以从模式获得模式的子模式。如果在Herbrand域中存在初始状态,那么沿S的任何可执行路径不会多次产生相同的术语,则模式S是自由的。在本文中,我们介绍了近似自由的模式,其中该非重复模式条件仅适用于常数函数符号g的形式不为g()的术语。给定一个线性模式S(在S中没有函数或谓词出现多次)和一个变量v,我们计算出S中的一组函数和谓词,这是Weiser切片算法定义的子集,并证明如果对于S中的每一个谓词q和每个常数赋值w:= g();位于q的主体中,没有其他对w的赋值也位于q的主体中,我们较小的符号集相对于执行后v的最终值定义了S的正确子模式。我们还证明,如果S也是自由的(通过S的每条路径都是可执行的)并且接近自由,则可以决定哪个子方案与S完全等价。另一方面,这概括了最近的结果,其中要求S是线性的,自由的和自由的。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号