首页> 外文会议>IEEE International Working Conference on Source Code Analysis and Manipulation >Tree-Oriented vs. Line-Oriented Observation-Based Slicing
【24h】

Tree-Oriented vs. Line-Oriented Observation-Based Slicing

机译:面向树与基于行的基于观察的切片

获取原文

摘要

Observation-based slicing is a recently-introduced, language-independent slicing technique based on the dependencies observable from program behavior. The original algorithm processed traditional source code at the line-of-text level. A recent variation was developed to slice the tree-based XML representation of executable models. We ported the model slicer to source code using srcML to construct a tree-based representation of traditional source code. We present the results of a comparison of the two slicers using four experiments involving seventeen different programs, including classic benchmarks and larger production systems. The resulting slices had essentially the same size and quite often the same content. Where they differ, the use of tree structure traded an ability to remove unnecessary parts of a statement for the requirement of maintaining aspect of the code structure. Comparing the slicers finds that each has its advantages. For example, when the tree representation facilitates the deletion of large chunks of code, the tree slicer was over eight times faster. In contrast, when slicing C++ code it was over nine times slower because of the multitude of small trees created to support C++ syntax. Given the pros and cons of the two, the results suggest the value of their hybrid combination.
机译:基于观察的切片是一种新近引入的,基于语言的切片技术,它基于可从程序行为中观察到的依存关系。原始算法在文本行级别处理传统的源代码。开发了一种最新变体,以对可执行模型的基于树的XML表示进行切片。我们使用srcML将模型切片器移植到源代码,以构造传统源代码的基于树的表示形式。我们使用两个涉及十七种不同程序(包括经典基准测试和大型生产系统)的实验,介绍了两种切片机的比较结果。所得的切片基本上具有相同的大小,并且通常具有相同的内容。它们之间的区别在于,使用树形结构交换了删除语句中不必要部分的能力,以维护代码结构的某些方面。比较切片器发现每个切片器都有其优点。例如,当树表示便于删除大块代码时,树切片器的速度提高了八倍以上。相反,在切片C ++代码时,由于创建了许多支持C ++语法的小树,因此切片速度要慢9倍以上。考虑到两者的优缺点,结果表明了它们的混合组合的价值。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号