AVATAR: Fixing Semantic Bugs with Fix Patterns of Static Analysis Violations
Authors:
Top Cited Papers
Open Access
- 1 February 2019
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 1-12
Abstract
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.Keywords
All Related Versions
This publication has 52 references indexed in Scilit:
- Is the cure worse than the disease? overfitting in automated program repair2015
- DirectFix: Looking for Simple Program Repairs2015
- Tracking Static Analysis Violations over Time to Capture Developer Characteristics2015
- Test case purification for improving fault localization2014
- A critical review of "automatic patch generation learned from human-written patches": essay on the problem statement and the evaluation of automatic software repair2014
- Threats to the validity and value of empirical assessments of the accuracy of coverage-based fault locators2013
- GZoltar: an eclipse plug-in for testing and debugging2012
- Toward an understanding of bug fix patternsEmpirical Software Engineering, 2008
- Finding bugs is easyACM SIGPLAN Notices, 2004
- Subject independent facial expression recognition with robust face detection using a convolutional neural networkNeural Networks, 2003