arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1909.04238cs.SE
收藏

LVMapper:一种基于序列比对的大方差克隆检测器

LVMapper: A Large-variance Clone Detector Using Sequencing Alignment Approach

Ming Wu, Pengcheng Wang, Kangqi Yin, Haoyu Cheng, Yun Xu, Chanchal K. Roy

摘要:

在大规模代码库中检测大差异代码克隆(即具有相对更多差异的克隆)是困难的,因为大多数当前工具只能检测几乎相同或非常相似的克隆。它将对一些软件应用如bug检测、代码补全、软件分析等进行推广和改变。最近,CCAligner尝试检测修改相对集中的克隆,称为大缺口克隆。我们的贡献是开发一种新的和有效的检测方法的大方差克隆更一般的情况下,不仅集中的代码修改,但也分散的代码修改。借鉴和改变了生物信息学中的序列比对方法,提出了一种检测器LVMapper,它可以发现两个相似但差异较大的序列。在自合成数据集和真实案例上测试了LVMapper的能力,结果表明,与包括CCAligner在内的其他最先进的工具相比,LVMapper在检测大方差克隆方面有了实质性的改进。此外,我们的新工具还在广泛使用的基准数据集BigCloneBench上为一般Type-1,Type-2和Type-3克隆提供了良好的召回率和精度。

英文摘要:

To detect large-variance code clones (i.e. clones with relatively more differences) in large-scale code repositories is difficult because most current tools can only detect almost identical or very similar clones. It will make promotion and changes to some software applications such as bug detection, code completion, software analysis, etc. Recently, CCAligner made an attempt to detect clones with relatively concentrated modifications called large-gap clones. Our contribution is to develop a novel and effective detection approach of large-variance clones to more general cases for not only the concentrated code modifications but also the scattered code modifications. A detector named LVMapper is proposed, borrowing and changing the approach of sequencing alignment in bioinformatics which can find two similar sequences with more differences. The ability of LVMapper was tested on both self-synthetic datasets and real cases, and the results show substantial improvement in detecting large-variance clones compared with other state-of-the-art tools including CCAligner. Furthermore, our new tool also presents good recall and precision for general Type-1, Type-2 and Type-3 clones on the widely used benchmarking dataset, BigCloneBench.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑