首页> 外文会议>IEEE International Conference on Software Maintenance >LHDiff: A Language-Independent Hybrid Approach for Tracking Source Code Lines
【24h】

LHDiff: A Language-Independent Hybrid Approach for Tracking Source Code Lines

机译:lhdiff:一种独立于语言的跟踪源代码线的混合方法

获取原文

摘要

Tracking source code lines between two different versions of a file is a fundamental step for solving a number of important problems in software maintenance such as locating bug introducing changes, tracking code fragments or defects across versions, merging file versions, and software evolution analysis. Although a number of such approaches are available in the literature, their performance is sensitive to the kind and degree of source code changes. There is also a marked lack of study on the effect of change types on source location tracking techniques. In this paper, we propose a language-independent technique, LHDiff, for tracking source code lines across versions that leverages simhash technique together with heuristics to improve accuracy. We evaluate our approach against state-of-the-art techniques using benchmarks containing different degrees of changes where files are selected from real world applications. We further evaluate LHDiff with other techniques using a mutation based analysis to understand how different types of changes affect their performance. The results reveal that our technique is more effective than language-independent approaches and no worse than some language-dependent techniques. In our study LHDiff even shows better performance than a state-of-the-art language-dependent approach. In addition, we also discuss limitations of different line tracking techniques including ours and propose future research directions.
机译:跟踪两个不同版本的文件之间的源代码线是解决软件维护中许多重要问题的基本步骤,例如定位错误引入更改,跟踪代码片段或缺陷跨版本,合并文件版本和软件演进分析。虽然文献中有许多这样的方法可用,但它们的性能对源代码的种类和程度敏感。还有对源定位跟踪技术的变化类型的影响也有明显缺乏研究。在本文中,我们提出了一种独立于语言的技术LHDIFF,用于跟踪源代码线的版本,这些版本与启发式利用Simhash技术,以提高精度。我们使用包含不同变化程度的基准来评估我们对最先进的技术的方法,其中文件是从真实世界应用程序中选择的。我们通过基于突变分析进一步使用其他技术进行评估,以了解不同类型的变化如何影响其性能。结果表明,我们的技术比语言无关的方法更有效,并且不比某些语言相关技术更差。在我们的研究中,Lhdiff甚至表现出比最先进的语言依赖性方法更好的性能。此外,我们还讨论了不同线路跟踪技术的局限,包括我们的和建议未来的研究方向。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号