We use a few cookies

Essential cookies keep the library working. With your permission, we'd also like to use analytics to see what's useful and improve the experience. Read our Privacy Policy or Cookie Policy.

Skip to main content
Home/e-Resources/Computer Science & Information Technology/Automatic patch generation learned from human-written patches
PeriodicalsComputer Science & Information Technology

Automatic patch generation learned from human-written patches

Checking your access to this record.

Abstract & Overview

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.

Cite this record

Dongsun Kim, Jaechang Nam, Jaewoo Song, Sunghun Kim (2013). Automatic patch generation learned from human-written patches. ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion), 802–811. https://doi.org/10.1109/icse.2013.6606626

Copy in another style

Kim, D., Nam, J., Song, J., & Kim, S. (2013). Automatic patch generation learned from human-written patches. ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion), 802–811. https://doi.org/10.1109/icse.2013.6606626
Author names are used as deposited, so check their order before you submit.

Metadata is harvested from open-access indexes and can be incomplete. Check a citation against the published version before relying on it — see our open access & attribution policy.