Preliminary Study on the Reproducibility of Fix Templates in Static Analysis Tool

Sohyun Kim, Youngkyoung Kim, Eunseok Lee
{"title":"Preliminary Study on the Reproducibility of Fix Templates in Static Analysis Tool","authors":"Sohyun Kim, Youngkyoung Kim, Eunseok Lee","doi":"10.1109/CSEET58097.2023.00041","DOIUrl":null,"url":null,"abstract":"Automated Program Repair (APR) automatically generates patches for identified defects. As a result, APR can encourage novice students to learn coding by providing appropriate patches. Since students have their coding conventions, we should be able to deal with many types of defects. Existing studies have used predefined RuleId-driven templates to automatically fix defects in Static Analysis Tools(SATs). However, the community periodically adds, deletes, or changes SAT’s RuleIds. This is difficult for existing RuleId-based templates to reflect those changes immediately. Existing studies only cover about 10 RuleIds, making it difficult to address all defects faced by all students. Therefore, it is necessary to establish appropriate criteria for classifying templates. The SAT has a predefined format for how Error Messages are written, and since Error Messages contain fixing actions, defects with similar Error Messages tend to have similar fixing actions. These characteristics of the Error Message are suitable for reproducible template classification criteria. Our preliminary study demonstrated that by classifying patterns based on Error Messages, we could effectively address various defects, including those in different programming languages, using a single template. This means that if a newly added RuleId corresponds to an Error Message format already in the predefined Error Message-based template, it can be modified without additional effort. We plan to construct reproducible templates for each Error Message and provide ongoing patching of defects to students.","PeriodicalId":256885,"journal":{"name":"2023 IEEE 35th International Conference on Software Engineering Education and Training (CSEE&T)","volume":"21 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-08-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2023 IEEE 35th International Conference on Software Engineering Education and Training (CSEE&T)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/CSEET58097.2023.00041","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Automated Program Repair (APR) automatically generates patches for identified defects. As a result, APR can encourage novice students to learn coding by providing appropriate patches. Since students have their coding conventions, we should be able to deal with many types of defects. Existing studies have used predefined RuleId-driven templates to automatically fix defects in Static Analysis Tools(SATs). However, the community periodically adds, deletes, or changes SAT’s RuleIds. This is difficult for existing RuleId-based templates to reflect those changes immediately. Existing studies only cover about 10 RuleIds, making it difficult to address all defects faced by all students. Therefore, it is necessary to establish appropriate criteria for classifying templates. The SAT has a predefined format for how Error Messages are written, and since Error Messages contain fixing actions, defects with similar Error Messages tend to have similar fixing actions. These characteristics of the Error Message are suitable for reproducible template classification criteria. Our preliminary study demonstrated that by classifying patterns based on Error Messages, we could effectively address various defects, including those in different programming languages, using a single template. This means that if a newly added RuleId corresponds to an Error Message format already in the predefined Error Message-based template, it can be modified without additional effort. We plan to construct reproducible templates for each Error Message and provide ongoing patching of defects to students.
静态分析工具中固定模板重现性的初步研究
自动程序修复(APR)自动生成已识别缺陷的补丁。因此,APR可以通过提供适当的补丁来鼓励新手学习编码。由于学生有他们的编码习惯,我们应该能够处理许多类型的缺陷。现有的研究已经使用预定义的规则驱动模板来自动修复静态分析工具(sat)中的缺陷。然而,社区会定期添加、删除或更改SAT的ruleid。现有的基于rule id的模板很难立即反映这些更改。现有的研究只涵盖了大约10个规则id,很难解决所有学生面临的所有缺陷。因此,有必要建立合适的模板分类标准。SAT对于错误消息的编写有一个预定义的格式,并且由于错误消息包含修复操作,具有类似错误消息的缺陷往往具有类似的修复操作。错误消息的这些特征适合于可重复的模板分类标准。我们的初步研究表明,通过基于错误消息对模式进行分类,我们可以使用单个模板有效地处理各种缺陷,包括不同编程语言中的缺陷。这意味着,如果新添加的RuleId对应于预定义的基于错误消息的模板中已经存在的错误消息格式,则无需额外的工作即可对其进行修改。我们计划为每个错误信息构建可复制的模板,并为学生提供缺陷的持续修补。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术文献互助群
群 号:481959085
Book学术官方微信