首页> 外文期刊>Journal of Logic and Algebraic Programming >Characterizing minimal semantics-preserving slices of predicate-linear, free, liberal program schemas
【24h】

Characterizing minimal semantics-preserving slices of predicate-linear, free, 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, A subschema of a schema is obtained from a schema by deleting some of its statements. We prove that given a schema S which is predicate-linear, free and liberal, such that the true and false parts of every if predicate satisfy a simple additional condition, and a slicing criterion defined by the final value of a given variable after execution of any program defined by S, the minimal subschema of S which respects this slicing criterion contains all the function and predicate symbols 'needed' by the variable according to the data dependence and control dependence relations used in program slicing, which is the symbol set given by Weiser's static slicing algorithm. Thus this algorithm gives predicate-minimal slices for classes of programs represented by schemas satisfying our set of conditions. We also give an example to show that the corresponding result with respect to the slicing criterion defined by termination behaviour is incorrect. This complements a result by the authors in which S was required to be function-linear, instead of predicate-linear.
机译:程序模式定义了一类程序,所有程序都具有相同的语句结构,但是其功能和谓词可能不同。因此,模式根据其符号的解释方式定义了整个程序类别。通过删除其某些语句,可以从模式中获得模式的子模式。我们证明给定一个模式S,它是谓词线性的,自由的和自由的,使得每个if谓词的真假部分都满足一个简单的附加条件,以及由执行后给定变量的最终值定义的切片标准由S定义的任何程序,根据该切片标准的S的最小子模式都包含变量“根据”程序切片中使用的数据依赖关系和控制依赖关系而“需要”的所有函数和谓词符号,这是由S给出的符号集Weiser的静态切片算法。因此,该算法为满足我们的条件集的模式表示的程序类提供了谓词最小切片。我们还举一个例子来说明,关于终止行为定义的切片标准的相应结果是不正确的。这补充了作者要求S是函数线性而不是谓词线性的结果。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号