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

Characterizing minimal semantics-preserving slices of function-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. As defined in this paper, a slice of a schema is obtained from a schema by deleting some of its statements. We prove that given a schema S which is function-linear, free and liberal, and a slicing criterion defined by the final value of a given variable after execution of any program defined by S, the minimal slice of S which respects this slicing criterion contains only the 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 minimal slices for programs representable by function-linear, free, liberal schemas. We also prove a similar result with termination behaviour used as a slicing criterion. This strengthens a recent result, in which S was required to be linear, free and liberal, and termination behaviour as a slicing criterion was not considered.
机译:程序模式定义了一类程序,所有程序都具有相同的语句结构,但是其功能和谓词可能不同。因此,模式根据其符号的解释方式定义了整个程序类别。正如本文所定义的,通过删除一些语句可以从一个模式中获取一个模式的切片。我们证明,给定模式S是函数线性,自由和自由的,并且在执行由S定义的任何程序后,由给定变量的最终值定义的切片标准,遵守该切片标准的S的最小切片包含根据程序切片中使用的数据依赖性和控制依赖性关系,变量仅“需要”符号,这是Weiser静态切片算法给出的符号集。因此,该算法为函数线性,自由,自由模式表示的程序提供了最小限度的切片。我们还证明了类似的结果,将终止行为用作切片标准。这加强了最近的结果,在该结果中,要求S是线性,自由和自由的,并且不考虑将终止行为作为切片标准。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号