Automatic patch generation learned from human-written patches

ICSE(2013)

引用 839|浏览439
暂无评分
摘要
Patch generation is an essential software maintenance task because most software systems inevitably have bugs that need to be fixed. Unfortunately, human resources are often insufficient to fix all reported and known bugs. To address this issue, several automated patch generation techniques have been proposed. In particular, a genetic-programming-based patch generation technique, GenProg, proposed by Weimer et al., has shown promising results. However, these techniques can generate nonsensical patches due to the randomness of their mutation operations. To address this limitation, we propose a novel patch generation approach, Pattern-based Automatic program Repair (Par), using fix patterns learned from existing human-written patches. We manually inspected more than 60,000 human-written patches and found there are several common fix patterns. Our approach leverages these fix patterns to generate program patches automatically. We experimentally evaluated Par on 119 real bugs. In addition, a user study involving 89 students and 164 developers confirmed that patches generated by our approach are more acceptable than those generated by GenProg. Par successfully generated patches for 27 out of 119 bugs, while GenProg was successful for only 16 bugs.
更多
查看译文
关键词
fix pattern,software systems,pattern based automatic program repair,genprog,automatic patch generation,user interfaces,pattern-based automatic program,software maintenance task,human resources,nonsensical patch,software maintenance,automated patch generation technique,patch generation,genetic-programming-based patch generation technique,genetic programming based patch generation,genetic algorithms,essential software maintenance task,human written patches,human-written patch,novel patch generation approach,automated patch generation,common fix pattern,semantics,maintenance engineering,computer bugs
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要