|
|
doctor code: a machine learning-based approach to program repair
|
|
|
|
|
نویسنده
|
moosavi sh. ,vahidi-asl m. ,haghighi h. ,rezaalipour m.
|
منبع
|
scientia iranica - 2024 - دوره : 31 - شماره : 2-D - صفحه:83 -102
|
چکیده
|
To address the problems of automatic repair techniques, we present doctor code, a new apr technique that chooses repair operators by systematically learning from the features of the most common bugs in different programs, using machine learning. the wise selection of repair operators reduces the number of candidate patches. we compare our technique against mutation repair, a test suite-based apr technique, using the siemens suite. the experiment results indicate that our technique can fix 41 bugs while the baseline only repairs 22. in addition, doctor code can produce patches that do not exist in the search space of the three test suite-based techniques called spr, prophet, and semfix. we also experiment with doctor code utilizing three buggy versions of a program called space (9k loc), to indicate its capability of repairing large-sized programs. in addition, we compare doctor code against 7 state-of-the-art apr tools like elixir, using the defects4j dataset. the experiment results indicate that our technique outperforms the other tools regarding the number of fixed bugs and overfitted patches.comparing doctor code with rapr as the baseline indicates that using machine learning reduces the number of overfitted patches and the time of patch production by 33.33% and 82.68%, respectively.
|
کلیدواژه
|
program repair ,patch generation ,machine learning ,multinomial logistic regression ,patch overfitting،
|
آدرس
|
shahid beheshti university, faculty of computer science and engineering, iran, shahid beheshti university, faculty of computer science and engineering, iran, shahid beheshti university, faculty of computer science and engineering, iran, shahid beheshti university, faculty of computer science and engineering, iran
|
پست الکترونیکی
|
rezaalipour.mohammad@gmail.com
|
|
|
|
|
|
|
|
|
|
|
|
Authors
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|