Iter-T: ITERative Test suite generation for automated program repair
Godio, Ariel ; Gutiérrez Brida, Simón ; Regis, Germán ; Bagheri, Hamid ; Nguyen, ThanhVu ; Aguirre
Godio, Ariel
Gutiérrez Brida, Simón
Regis, Germán
Bagheri, Hamid
Nguyen, ThanhVu
Aguirre
Type
Artículo de publicación periódica
Abstract
Test-based automated program repair (TB-APR) techniques automatically fix buggy programs by relying on a failing test suite. This test suite serves a dual purpose: pinpointing bugs and evaluating the validity of potential patches. However, the effectiveness of TB-APR techniques in generating correct patches is highly dependent on the test suite utilized. The primary shortcoming of TB-APR techniques arises from the intrinsic incompleteness of test suites, resulting in a significant drawback: overfitting, i.e., the generation of ‘overfitted patches’, patches that pass the given test suites but fail to repair the subject program correctly regarding its more general intended behavior. To address this challenge, we present a novel technique designed to enhance the effectiveness of TB-APR methods by automatically generating test suites tailored for program repair. Unlike prior TB-APR techniques, it is rooted in the recognition that edge cases that invalidate overfitted patches play a pivotal role in guiding the repair process away from incorrect solutions. This technique leverages formal specifications and bounded verification to evaluate candidate patches and transforms the counterexamples (CEs) obtained from verifying candidate patches into tests for program repair. The efficacy of iteratively using such CEs as tests for TB-APR is substantiated by Iter-T our implementation of this technique for Java programs and JML specifications, evaluated on a benchmark of 717 buggy Java programs drawn from the APR literature. By progressively constructing test suites exclusively from CEs of overfitted candidate patches, Iter-T increases the odds of fixing a bug by about 58% compared to the originally provided test suites. Moreover, in cases where a TB-APR tool repairs a program using its original suite, employing CEs alone as test suites reduces the median time required to generate a correct patch by 42%. Remarkably, the generated CEs-based test suites are very small, accomplishing ...
Description
Date
2026-03-10
Journal Title
Journal ISSN
Volume Title
Publisher
IEEE
Collections
Research Projects
Organizational Units
Journal Issue
Keywords
MAINTENANCE ENGINEERING, OVERFITTING, COMPUTER BUGS, TEST SUITE, AUTOMATED PROGRAM REPAIR
Citation
A. Godio et al., "Iter-T: ITERative Test suite generation for automated program repair," in IEEE Transactions on Software Engineering, doi: 10.1109/TSE.2026.3671416