arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2309.03411cs.SE
收藏

识别可视化代码中的缺陷诱发变更

Identifying Defect-Inducing Changes in Visual Code

Kalvin Eng, Abram Hindle, Alexander Senchenko

AI总结:

针对可视化代码缺陷检测问题,提出基于图形元素差异的SZZ-VC算法,并在AAA游戏和开源项目中验证了其在3种可视化编程语言上的可行性。

摘要:

缺陷(或称bug)通常在软件开发过程中产生。识别缺陷的根本原因对于提高代码质量、评估测试方法以及支持缺陷预测至关重要。可以使用SZZ算法,将基于行的代码中缺陷修复变更的文本历史追溯回它们所修复的缺陷诱发变更,从而找到缺陷诱发变更的示例。SZZ方法的基于行的方法对于以图形而非文本表示源代码的可视化代码是无效的。在本文中,我们针对可视化代码改进了SZZ,并提出了“SZZ Visual Code”(SZZ-VC)算法,该算法基于图形元素的差异而非行的差异来查找可视化代码中的变更,以检测缺陷诱发变更。我们针对一款工业制作的AAA视频游戏以及12个开源项目中的20个音乐可视化编程缺陷验证了该算法。我们的结果表明,SZZ-VC对于检测3种不同可视化编程语言的可视化代码中的缺陷是可行的。

英文摘要:

Defects, or bugs, often form during software development. Identifying the root cause of defects is essential to improve code quality, evaluate testing methods, and support defect prediction. Examples of defect-inducing changes can be found using the SZZ algorithm to trace the textual history of defect-fixing changes back to the defect-inducing changes that they fix in line-based code. The line-based approach of the SZZ method is ineffective for visual code that represents source code graphically rather than textually. In this paper we adapt SZZ for visual code and present the "SZZ Visual Code" (SZZ-VC) algorithm, that finds changes in visual code based on the differences of graphical elements rather than differences of lines to detect defect-inducing changes. We validated the algorithm for an industry-made AAA video game and 20 music visual programming defects across 12 open source projects. Our results show that SZZ-VC is feasible for detecting defects in visual code for 3 different visual programming languages.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑