【24h】

Evaluating explicitly context-sensitive program slicing

机译:显式评估上下文相关程序切片

获取原文

摘要

One of the important issues in constructing interprocedural program slices is maintaining context-sensitivity or preserving calling context when a procedure is called at multiple call sites. Though a number of context-sensitive techniques have been presented in the last decade, the following important questions remain unanswered: 1) What is the level of precision lost if context-sensitivity is not maintained ? 2) What are the additional costs for achieving context-sensitivity?

In this paper, we evaluate a PDG based explicitly context-sensitive interprocedural program slicing technique for accuracy and efficiency. We compare this technique against a context-insensitive technique using a program slicing framework we have developed for Java programs for which only the byte-code sequences are available.

Our results show that the context-sensitive technique, in spite of its worst case exponential complexity, can be very efficient in practice. The execution time for our set of benchmarks is, on the average, only twice as much as the execution time for the context-insensitive technique. The results on the accuracy for the context-insensitive technique are mixed. For 53% of the 2464 slicing criteria used in our experiments, the context-insensitive technique does not loose accuracy. However, in some cases, it can also lead to slices with 35 times more vertices. On the average, the slices constructed from the context-insensitive technique are twice as large as the one from the context-sensitive technique.

机译:

构造过程间程序片时的重要问题之一是在多个调用站点处调用过程时,保持上下文敏感性或保留调用上下文。尽管在过去的十年中已经提出了许多上下文相关的技术,但以下重要问题仍未得到解答:1)如果不保持上下文相关性,则会损失多少精度? 2)实现上下文敏感需要额外的费用吗?

在本文中,我们评估了基于PDG的显式上下文敏感过程间程序切片技术,以提高准确性和效率。我们使用针对Java程序开发的程序切片框架,将该技术与上下文无关的技术进行了比较,该程序切片框架仅针对字节码序列可用。

我们的结果表明,尽管上下文敏感技术的指数复杂度最差,但在实践中仍然非常有效。平均而言,我们的一组基准测试的执行时间仅是上下文无关技术的执行时间的两倍。上下文无关技术的准确性结果是混合的。对于我们实验中使用的2464个切片标准中的53%,上下文无关技术不会降低准确性。但是,在某些情况下,它还会导致顶点多35倍的切片。平均而言,使用上下文无关技术构建的切片是使用上下文敏感技术构建的切片的两倍。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号