Skip to main content
QUICK REVIEW

[Paper Review] A Literature Review of Code Clone Analysis to Improve Software Maintenance Process

Md. Monzur Morshed, Md Arifur Rahman|arXiv (Cornell University)|May 25, 2012
Software Engineering ResearchComputer Science44 references7 citations
TL;DR

This literature review examines code clone analysis as a means to enhance software maintenance, synthesizing research on clone detection techniques, tools, and their impact on maintenance effort. It identifies conflicting views on clones—some argue they increase maintenance burden, while others claim they improve stability—offering a comprehensive synthesis for researchers and practitioners aiming to optimize software evolution processes.

ABSTRACT

Software systems are getting more complex as the system grows where maintaining such system is a primary concern for the industry. Code clone is one of the factors making software maintenance more difficult. It is a process of replicating code blocks by copy-and-paste that is common in software development. In the beginning stage of the project, developers find it easy and time consuming though it has crucial drawbacks in the long run. There are two types of researchers where some researchers think clones lead to additional changes during maintenance phase, in later stage increase the overall maintenance effort. On the other hand, some researchers think that cloned codes are more stable than non cloned codes. In this study, we discussed Code Clones and different ideas, methods, clone detection tools, related research on code clone, case study.

Motivation & Objective

  • To analyze the role of code clones in software maintenance and their impact on development effort.
  • To evaluate existing code clone detection techniques, tools, and methodologies.
  • To investigate the conflicting perspectives on whether clones increase or reduce maintenance complexity.
  • To provide a synthesized overview of research trends, case studies, and open challenges in code clone analysis.
  • To support software engineering practitioners and researchers in improving software maintenance through clone-aware development practices.

Proposed method

  • Systematic review of academic literature on code clone detection and analysis from 2000 to 2012.
  • Categorization of clone detection tools based on their underlying algorithms and detection strategies.
  • Analysis of case studies demonstrating real-world applications of clone detection in industrial and open-source projects.
  • Synthesis of findings on the relationship between code clones and maintenance effort, including both negative and positive perspectives.
  • Classification of clone types (e.g., token-based, AST-based) and evaluation of their detection accuracy and scalability.
  • Comparison of detection techniques across different programming languages and software development lifecycles.

Experimental results

Research questions

  • RQ1How do code clones affect the overall maintenance effort in software systems?
  • RQ2What are the most effective techniques and tools for detecting code clones in practice?
  • RQ3Why do some researchers argue that clones increase maintenance costs while others claim they enhance code stability?
  • RQ4What are the key challenges and limitations in current code clone detection research and tools?
  • RQ5How can code clone analysis be integrated into software maintenance processes to improve software quality and maintainability?

Key findings

  • Code clones are commonly introduced via copy-and-paste, especially in early development stages, due to perceived time savings.
  • There is a significant debate in the literature: some studies show clones increase maintenance effort due to propagation of changes, while others suggest cloned code is more stable and less error-prone.
  • Clone detection tools vary in accuracy and scalability, with token-based and AST-based approaches being the most widely used.
  • Case studies indicate that clone detection can identify redundant code and improve maintainability when integrated into development workflows.
  • The literature highlights a need for standardized evaluation frameworks and tool integration in software engineering practices.
  • Despite their benefits, many clone detection tools face challenges in scalability and false positive rates, especially in large-scale systems.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.