arrow
Return

CCDive: A Deep Dive into Code Clone Detection Using Local Sequence Alignment

delete2025-03-05
delete0
PRE
AI
Y
Yasir Glani *
P
Ping Luo
S
Syed Asad Shah
K
Ke Lin
DOI:10.26599/TST.2024.9010075delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
The rapid evolution of software development has accentuated the deficiencies of prevailing code clone detection techniques. As modern applications become more complex, traditional cloning tools often struggle to detect general and large-gap clones that undergo regular modification. Such challenges pose threats to software integrity, emphasizing the critical need for improved code cloning techniques. Observing the prevailing gap, we propose an innovative code clone dive (CCDive) code cloning technique, which is designed to detect an extensive range of clones, from direct clones to the often challenging large-gap clones, thoroughly covering different categories, such as very strongly Type-III, strongly Type-III, and moderate Type-III clones. In CCDive, the fusion of a level-by-level abstraction and an innovative similarity matching algorithm ensures the recognition of clones even when nearly half the original code in the chunk has been modified. Furthermore, by integrating the Smith-Waterman local sequence alignment, the capability of CCDive to spot exact code transformation locations can be enhanced. In a comprehensive evaluation, CCDive was compared with well-known code cloning techniques. The efficacy of CCDive was measured using precision, recall, F1-score, accuracy, and efficiency. CCDive consistently surpassed other techniques in the precision, recall, F1-score, and accuracy metrics for both file-based and function-based clone detection. The robust performance of CCDive emphasizes its effectiveness, reliability, accuracy, and efficiency, making it well-suited for practical applications in the real world.
Keywords:
Measurement
Codes
Accuracy
Cloning
Benchmark testing
Software
Reliability
Software development management
clone detection
software maintenance
software security
software reuse
Method and implementation for investigating code clones in a software system
err2007-09-01
err24
PREAI
errHigo, Yoshiki; Kamiya, Toshihiro; Kusumoto, Shinji; Inoue, Katsuro
errShare
errSave
An empirical study on the maintenance of source code clones
err2009-03-25
err135
PREAI
errThummalapenta, Suresh; Cerulo, Luigi; Aversano, Lerina; Di Penta, Massimiliano
errShare
errSave
errShare
errSave
A Survey of Software Clone Detection From Security Perspective
err2021-01-01
err14
errOAAI
errZhang, Haibo; Sakurai, Kouichi
errShare
errSave
Empirical evaluation of clone detection using syntax suffix trees
err2008-07-22
err54
PREAI
errFalke, Rainiar; Frenzel, Pierre; Koschke, Rainer
errShare
errSave
Code clones and developer behavior: results of two surveys of the clone research community
err2015-08-07
err9
PREAI
errChatterji, Debarshi; Carver, Jeffrey C.; Kraft, Nicholas A.
errShare
errSave

Journal

T
Tsinghua Science and Technology
IF:
3.5
Papers:
987
Citations:
3.0K

Organization

I
ihsan dogramaci bilkent university
Scholars:
3.6K
Papers: 3.6K
Citations: 3.8K
Tsinghua University cover
Tsinghua University
Scholars:
1.2W
Papers: 4.2K
Citations: 9.9W
Cited Papers

Cited Papers

No cited papers available