• Home
  • Search
  • Rule-directed code clone synchronization
  • Cite Icon12
  • https://doi.org/10.1109/icpc.2016.7503722Copy DOI Icon

Rule-directed code clone synchronization

  • May 1, 2016
  • Xiao Cheng +4 more
Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Code clones are prevalent in software systems due to many factors in software development. Detecting code clones and managing consistency between them along code evolution can be very useful for reducing clone-related bugs and maintenance costs. Despite some early attempts at detecting code clones and managing the consistency between them, the state-of-the-art tool can only handle simple code clones whose structures are identical or quite similar. However, existing empirical studies show that clones can have quite different structures with their evolution, which can easily go beyond the capability of the state-of-the-art tool. In this paper, we propose CCSync, a novel, rule-directed approach, which paves the structure differences between the code clones and synchronizes them even when code clones become quite different in their structures. The key steps of this approach are, given two code clones, to (1) extract a synchronization rule from the relationship between the clones, and (2) once one code fragment is updated, propagate the modifications to the other following the synchronization rule. We have implemented a tool for CCSync and evaluated its effectiveness on five Java projects. Our results shows that there are many code clones suitable for synchronization, and our tool achieves precisions of up to 92% and recalls of up to 84%. In particular, more than 76% of our generated revisions are identical with manual revisions.

Similar Papers
  • Conference Article
  • Citations351

VUDDY: A Scalable Approach for Vulnerable Code Clone Discovery

  • May 01, 2017
  • Seulbae Kim +3
  • Conference Article
  • Citations61

Incremental Code Clone Detection: A PDG-based Approach

  • Oct 01, 2011
  • Yoshiki Higo +3
  • Conference Article
  • Citations1

Research on the Model of Legacy Software Reuse Based on Code Clone Detection

  • Sep 01, 2013
  • Meng Fanqi +1
  • Conference Article
  • Citations9

Rearranging the order of program statements for code clone detection

  • Feb 21, 2017
  • Yusuke Sabi +2
  • Research Article

Code Clone Detection Model: A SWOT Analysis Perspective

  • Oct 01, 2018
  • Advanced Science Letters
  • Al-Fahim Mubarak-Ali +2
  • PDF
  • Research Article
  • Citations6

TCCCD: Triplet-Based Cross-Language Code Clone Detection

  • Nov 06, 2023
  • Applied Sciences
  • Yong Fang +3
  • Conference Article

Code Clone Detection via Software Visualization Representation Learning

  • Jul 01, 2023
  • Proceedings/Proceedings of the ... International Conference on Software Engineering and Knowledge Engineering
  • Shaojian Qiu +4
  • Conference Article
  • Citations4

A Model-driven Approach for Token Based Code Clone Detection Techniques - An Introduction to UMLCCD

  • Mar 02, 2019
  • Qurat Ul Ain +3
  • Conference Article
  • Citations3

Supporting clone analysis with tag cloud visualization

  • Nov 16, 2014
  • Manamu Sano +4
  • Conference Article
  • Citations6

A novel detection approach for statement clones

  • May 01, 2013
  • Qing Qing Shi +3
  • PDF
  • Research Article
  • Citations1

Improve Representation for Cross-Language Clone Detection by Pretrain Using Tree Autoencoder

  • Jan 01, 2022
  • Intelligent Automation & Soft Computing
  • Huading Ling +4
  • Research Article

An Empirical Study on the Characteristics of Reusable Code Clones

  • Jan 23, 2026
  • ACM Transactions on Software Engineering and Methodology
  • Chunli Yu +3
  • Book Chapter
  • Citations25

Code Clone Detection—A Systematic Review

  • Jan 01, 2021
  • G Shobha +3
  • Conference Article

Towards Informative Tagging of Code Fragments to Support the Investigation of Code Clones

  • Oct 01, 2021
  • Daisuke Nishioka +1
  • Research Article
  • Citations2

Proposing and Evaluating Clone Detection Approaches with Preprocessing Input Source Files

  • Jan 01, 2015
  • IEICE Transactions on Information and Systems
  • Eunjong Choi +3
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.