...
首页> 外文期刊>The Journal of Systems and Software >Observation-based approximate dependency modeling and its use for program slicing
【24h】

Observation-based approximate dependency modeling and its use for program slicing

机译:基于观测的近似依赖性建模及其对程序切片的用途

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

摘要

While dependency analysis is foundational to much program analysis, many techniques have limited scalability and handle only monolingual systems. We present a novel dependency analysis technique that aims to approximate program dependency from a relatively small number of perturbed executions. Our technique, MOAD (Modeling Observation-based Approximate Dependency), reformulates program dependency as the likelihood that one program element is dependent on another (instead of a Boolean relationship). MOAD generates program variants by deleting parts of the source code and executing them while observing the impact. MOAD thus infers a model of program dependency that captures the relationship between the modification and observation points. We evaluate MOAD using program slices obtained from the resulting probabilistic dependency models. Compared to the existing observation-based backward slicing technique, ORBS, MOAD requires only 18.6% of the observations, while the resulting slices are only 12% larger on average. Furthermore, we introduce the notion of the observation-based forward slices. Unlike ORBS, which inherently computes backward slices, MOAD's model's dependences can be traversed in either direction allowing us to easily compute forward slices. In comparison to the static forward slice, MOAD only misses deleting 0-6 lines (median 0), while excessively deleting 0-37 lines (median 8) from the slice.
机译:虽然依赖性分析是基础的,但是许多技术具有有限的可扩展性和仅处理单声道系统。我们提出了一种新的依赖性分析技术,其旨在从相对少量的扰动执行中近似程序依赖。我们的技术,Moad(基于观察的近似依赖性),重新重新编程依赖性作为一个程序元素依赖于另一个程序元素的可能性(而不是布尔关系)。 Moad通过删除源代码的部分并在观察影响时执行程序变体。因此,Moad Infers是一种程序依赖性模型,可以捕获修改和观察点之间的关系。我们使用从产生的概率依赖模型获得的程序切片评估Moad。与现有的基于观察的后向切片技术相比,ORBS,Moad仅需要18.6%的观察,而所得切片平均仅为12%。此外,我们介绍了观察到的前向切片的概念。与Orbs不同,它固有地计算后向切片,Moad的模型的依赖可以在任一方向上遍历,允许我们轻松计算前向切片。与静态前向切片相比,MoOD仅删除0-6行(中位数0),同时过度删除切片的0-37行(中位数8)。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号