Viewing simple clones from structural clones' perspective

H. Basit, Usman Ali, S. Jarzabek
{"title":"Viewing simple clones from structural clones' perspective","authors":"H. Basit, Usman Ali, S. Jarzabek","doi":"10.1145/1985404.1985406","DOIUrl":null,"url":null,"abstract":"In previous work, we described a technique for detecting designlevel similar program structures that we called structural clones. Structural clones are recurring configurations of simple clones (i.e., similar code fragments). In this paper, we show how structural clone analysis extends the benefits of analysis based on simple clones only. First, we present experimental results showing that in many cases simple clones participated in structural clones. In such cases, structural clones being larger than simple clones but smaller in number, allow analysts to see the \"forest from the trees\", as far as the similarity situation is concerned. We provide arguments and examples to show how the knowledge of structural clones - their location and exact similarities and differences - helps in program understanding, design recovery, maintenance, and refactoring.","PeriodicalId":374295,"journal":{"name":"International Workshop on Software Clones","volume":"37 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2011-05-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"19","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"International Workshop on Software Clones","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/1985404.1985406","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 19

Abstract

In previous work, we described a technique for detecting designlevel similar program structures that we called structural clones. Structural clones are recurring configurations of simple clones (i.e., similar code fragments). In this paper, we show how structural clone analysis extends the benefits of analysis based on simple clones only. First, we present experimental results showing that in many cases simple clones participated in structural clones. In such cases, structural clones being larger than simple clones but smaller in number, allow analysts to see the "forest from the trees", as far as the similarity situation is concerned. We provide arguments and examples to show how the knowledge of structural clones - their location and exact similarities and differences - helps in program understanding, design recovery, maintenance, and refactoring.
从结构克隆的角度来看简单克隆
在之前的工作中,我们描述了一种检测设计级类似程序结构的技术,我们称之为结构克隆。结构克隆是简单克隆(即相似的代码片段)的重复配置。在本文中,我们展示了结构克隆分析如何扩展仅基于简单克隆的分析的好处。首先,我们提出的实验结果表明,在许多情况下,简单克隆参与了结构克隆。在这种情况下,结构克隆比简单克隆更大,但数量更少,这使分析师能够在相似情况下看到“森林”。我们提供了一些论证和例子来展示结构克隆的知识——它们的位置和确切的相似点和不同点——如何帮助程序理解、设计恢复、维护和重构。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信