Challenges of the Dynamic Detection of Functionally Similar Code Fragments

Challenges of the Dynamic Detection of Functionally Similar Code Fragments
复制标题

功能相似代码片段动态检测的挑战

DOI:
10.1109/csmr.2012.38
复制
发表时间:
2012
期刊:
2012 16th European Conference on Software Maintenance and Reengineering
影响因子:
--
通讯作者:
S. Wagner
S. Wagner
中科院分区:
--
文献类型:
--
作者:
F. Deißenböck;L. Heinemann;B. Hummel;S. Wagner

文献摘要

被引文献

相似文献

经典的克隆检测方法几乎不能发现已经独立开发的冗余代码,即,不是复制和粘贴的结果。为了自动检测这种独立起源的功能相似的代码,我们尝试了一种动态检测方法,该方法将随机测试应用于选定的代码块,类似于Jiang&Su的方法。我们发现,这种方法在应用于不同的Java系统时面临着一些限制。本文详细介绍了我们的见解,这些挑战的动态检测功能相似的代码片段。我们的研究结果支持了一个充实的讨论检测方法,并作为未来研究的起点。
Classic clone detection approaches are hardly capable of finding redundant code that has been developed independently, i.e., is not the result of copy&paste. To automatically detect such functionally similar code of independent origin, we experimented with a dynamic detection approach that applies random testing to selected chunks of code similar to Jiang&Su's approach. We found that such an approach faces several limitations in its application to diverse Java systems. This paper details on our insights regarding these challenges of dynamic detection of functionally similar code fragments. Our findings support a substantiated discussion on detection approaches and serve as a starting point for future research.