首页> 外文会议>IEEE International Conference on Software Analysis, Evolution, and Reengineering >AVATAR: Fixing Semantic Bugs with Fix Patterns of Static Analysis Violations
【24h】

AVATAR: Fixing Semantic Bugs with Fix Patterns of Static Analysis Violations

机译:AVATAR:使用静态分析违规的修复模式修复语义错误

获取原文

摘要

Fix pattern-based patch generation is a promising direction in Automated Program Repair (APR). Notably, it has been demonstrated to produce more acceptable and correct patches than the patches obtained with mutation operators through genetic programming. The performance of pattern-based APR systems, however, depends on the fix ingredients mined from fix changes in development histories. Unfortunately, collecting a reliable set of bug fixes in repositories can be challenging. In this paper, we propose to investigate the possibility in an APR scenario of leveraging code changes that address violations by static bug detection tools. To that end, we build the AVATAR APR system, which exploits fix patterns of static analysis violations as ingredients for patch generation. Evaluated on the Defects4J benchmark, we show that, assuming a perfect localization of faults, AVATAR can generate correct patches to fix 34/39 bugs. We further find that AVATAR yields performance metrics that are comparable to that of the closely-related approaches in the literature. While AVATAR outperforms many of the state-of-the-art pattern-based APR systems, it is mostly complementary to current approaches. Overall, our study highlights the relevance of static bug finding tools as indirect contributors of fix ingredients for addressing code defects identified with functional test cases.
机译:基于修复模式的补丁程序生成是自动程序修复(APR)的一个有希望的方向。值得注意的是,已证明与通过遗传程序设计使用突变算子获得的补丁相比,它可以产生更多可接受且正确的补丁。但是,基于模式的APR系统的性能取决于从开发历史中的修订更改中提取的修订要素。不幸的是,在存储库中收集可靠的错误修复程序可能是一项挑战。在本文中,我们建议调查APR方案中利用静态漏洞检测工具利用代码更改来解决违规问题的可能性。为此,我们构建了AVATAR APR系统,该系统利用静态分析违规的修复模式作为补丁生成的组成部分。通过对Defects4J基准进行评估,我们表明,假设故障的定位完美,AVATAR可以生成正确的补丁来修复34/39个错误。我们进一步发现,AVATAR产生的性能指标可与文献中紧密相关的方法相媲美。尽管AVATAR的性能优于许多基于模式的最先进的APR系统,但它主要是对当前方法的补充。总体而言,我们的研究突出了静态错误查找工具作为解决功能测试案例中确定的代码缺陷的修复成分的间接贡献者的相关性。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号