Refactoring verification using model transformation

M. Ichii, Daisuke Shimbara, Yasufumi Suzuki, H. Ogawa
{"title":"Refactoring verification using model transformation","authors":"M. Ichii, Daisuke Shimbara, Yasufumi Suzuki, H. Ogawa","doi":"10.1145/2975945.2975950","DOIUrl":null,"url":null,"abstract":"Software refactoring is an effective way for dealing with technical debt accumulated in a software system; however, regression risk prevents developers from refactoring their code. Herein, we propose an approach to check the equivalence of source code before and after refactoring using the AST-based model extracted from source code. In order to detect unintended changes to the program structure, our approach first transforms the model from the refactored code in accordance with the refactoring pattern so that the refactoring is cancelled, and then compares it with the model from the code before refactoring. We also built a tool named POM/EQ based on the Eclipse Modeling Framework for checking C/C++ source code. As a result of the case study using the tool, we successfully checked 56 % of the refactoring changes that are performed on an industrial product.","PeriodicalId":433677,"journal":{"name":"Proceedings of the 1st International Workshop on Software Refactoring","volume":"56 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2016-09-04","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 1st International Workshop on Software Refactoring","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/2975945.2975950","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

Abstract

Software refactoring is an effective way for dealing with technical debt accumulated in a software system; however, regression risk prevents developers from refactoring their code. Herein, we propose an approach to check the equivalence of source code before and after refactoring using the AST-based model extracted from source code. In order to detect unintended changes to the program structure, our approach first transforms the model from the refactored code in accordance with the refactoring pattern so that the refactoring is cancelled, and then compares it with the model from the code before refactoring. We also built a tool named POM/EQ based on the Eclipse Modeling Framework for checking C/C++ source code. As a result of the case study using the tool, we successfully checked 56 % of the refactoring changes that are performed on an industrial product.
使用模型转换重构验证
软件重构是处理软件系统中积累的技术债务的有效途径;然而,回归风险阻止了开发人员重构他们的代码。在此,我们提出了一种方法,使用从源代码中提取的基于ast的模型来检查重构前后源代码的等价性。为了检测对程序结构的意外更改,我们的方法首先根据重构模式从重构代码中转换模型,以便取消重构,然后在重构之前将其与代码中的模型进行比较。我们还基于Eclipse建模框架构建了一个名为POM/EQ的工具,用于检查C/ c++源代码。作为使用该工具进行案例研究的结果,我们成功地检查了在工业产品上执行的56%的重构更改。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术官方微信