Are There Functionally Similar Code Clones in Practice?
Verena K\"afer, Stefan Wagner, Rainer Koschke

TL;DR
This study explores whether developers encounter functionally similar code clones in practice and finds that they do, highlighting the need for improved detection tools to manage these clones effectively.
Contribution
It provides empirical evidence that functionally similar clones are common in practice and are often problematic, emphasizing the importance of developing better detection methods.
Findings
Most developers have encountered FSCs in their work.
Developers are equally inclined to remove FSCs and syntactic clones.
FSCs are prevalent and pose challenges that warrant further research.
Abstract
Having similar code fragments, also called clones, in software systems can lead to unnecessary comprehension, review and change efforts. Syntactically similar clones can often be encountered in practice. The same is not clear for only functionally similar clones (FSC). We conducted an exploratory survey among developers to investigate whether they encounter functionally similar clones in practice and whether there is a difference in their inclination to remove them to syntactically similar clones. Of the 34 developers answering the survey, 31 have experienced FSC in their professional work, and 24 have experienced problems caused by FSCs. We found no difference in the inclination and reasoning for removing FSCs and syntactically similar clones. FSCs exist in practice and should be investigated to bring clone detectors to the same quality as for syntactically similar clones, because…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
