用替代Oracle修复模型转换中的多类型错误
Fixing Multiple Type Errors in Model Transformations with Alternative Oracles to Test Cases
摘要:
本文讨论了在现实的情况下,既没有预定义的补丁,也没有行为安全的警卫,如测试套件的模型转换中的类型错误的纠正问题。而不是使用预定义的补丁针对特定类别的孤立错误,我们建议探索空间的可能补丁模型转换程序的基本编辑操作相结合。为了指导搜索,我们定义了两个目标族:一个是限制类型错误的数量,另一个是保持转换行为。为了近似后者,我们研究了两个目标:最小化变化的数量和保持局部变化。此外,我们定义了四个算法来细化候选补丁,以增加纠正类型错误的可能性,同时保留转换行为。我们实现了我们的方法ATL语言使用进化算法NSGA-II,并进行了评估的基础上发表的案例研究。评估结果表明,我们的方法能够自动纠正平均超过82%的类型错误的两种情况下,超过56%的第三种情况。
英文摘要:
This paper addresses the issue of correcting type errors in model transformations in realistic scenarios where neither predefined patches nor behavior-safe guards such as test suites are available. Instead of using predefined patches targeting isolated errors of specific categories, we propose to explore the space of possible patches by combining basic edit operations for model transformation programs. To guide the search, we define two families of objectives: one to limit the number of type errors and the other to preserve the transformation behavior. To approximate the latter, we study two objectives: minimizing the number of changes and keeping the changes local. Additionally, we define four heuristics to refine candidate patches to increase the likelihood of correcting type errors while preserving the transformation behavior. We implemented our approach for the ATL language using the evolutionary algorithm NSGA-II, and performed an evaluation based on three published case studies. The evaluation results show that our approach was able to automatically correct on average more than82% of type errors for two cases and more than 56% for the third case.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。