首页> 外文会议>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系统,该系统利用静态分析违规模式作为补丁生成的成分。在缺陷4J基准上进行评估,我们展示了假设故障的完美本地化,化身可以生成正确的修补程序来修复34/39错误。我们进一步发现,化身会产生与文献中与密切相关方法相当的性能指标。虽然头像优于基于最先进的模式的APR系统,但它主要与当前方法互补。总体而言,我们的研究突出了静态错误查找工具作为固定成分的间接贡献者的相关性,用于解决功能测试用例识别的码缺陷。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号