A Systematic Review on Code Clone Detection
Top Cited Papers
Open Access
- 22 May 2019
- journal article
- review article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Access
- Vol. 7, 86121-86144
Abstract
Code cloning refers to the duplication of source code. It is the most common way of reusing source code in software development. If a bug is identified in one segment of code, all the similar segments need to be checked for the same bug. Consequently, this cloning process may lead to bug propagation that significantly affects the maintenance cost. By considering this problem, code clone detection (CCD) appears as an active area of research. Consequently, there is a strong need to investigate the latest techniques, trends, and tools in the domain of CCD. Therefore, in this paper, we comprehensively inspect the latest tools and techniques utilized for the detection of code clones. Particularly, a systematic literature review (SLR) is performed to select and investigate 54 studies pertaining to CCD. Consequently, six categories are defined to incorporate the selected studies as per relevance, i.e., textual approaches (12), lexical approaches (8), tree-based approaches (3), metric-based approaches (7), semantic approaches (7), and hybrid approaches (17). We identified and analyzed 26 CCD tools, i.e., 13 existing and 13 proposed/developed. Moreover, 62 open-source subject systems whose source code is utilized for the CCD are presented. It is concluded that there exist several studies to detect type1, type2, type3, and type4 clones individually. However, there is a need to develop novel approaches with complete tool support in order to detect all four types of clones collectively. Furthermore, it is also required to introduce more approaches to simplify the development of a program dependency graph (PDG) while dealing with the detection of the type4 clones.Keywords
This publication has 68 references indexed in Scilit:
- Scalable code clone search for malware analysisDigital Investigation, 2015
- Detection of File Level Clone for High Level CloningProcedia Computer Science, 2015
- Structural Similarity Detection Using Structure of Control StatementsProcedia Computer Science, 2015
- AnDarwin: Scalable Detection of Android Application Clones Based on SemanticsIEEE Transactions on Mobile Computing, 2014
- Method-level code clone detection through LWH (Light Weight Hybrid) approachJournal of Software Engineering Research and Development, 2014
- Software clone detection: A systematic reviewInformation and Software Technology, 2013
- Comparison and evaluation of code clone detection techniques and tools: A qualitative approachScience of Computer Programming, 2009
- Lessons from applying the systematic literature review process within the software engineering domainJournal of Systems and Software, 2007
- On Software Maintenance Process Improvement Based on Code Clone Analysis2002
- Using Slicing to Identify Duplication in Source Code2001