Program transformation landscapes for automated program modification using Gin
Open Access
- 14 July 2023
- journal article
- research article
- Published by Springer Nature in Empirical Software Engineering
- Vol. 28 (4) , 1-41
Abstract
Automated program modification underlies two successful research areas — genetic improvement and program repair. Under the generate-and-validate strategy, automated program modification transforms a program, then validates the result against a test suite. Much work has focused on the search space of application of single fine-grained operators — copy, delete, replace, and swap at both line and statement granularity. This work explores the limits of this strategy. We scale up existing findings an order of magnitude from small corpora to 10 real-world Java programs comprising up to 500k LoC. We decisively show that the grammar-specificity of statement granular edits pays off: its pass rate triples that of line edits and uses 10% less computational resources. We confirm previous findings that delete is the most effective operator for creating test-suite equivalent program variants. We go farther than prior work by exploring the limits of delete ’s effectiveness by exhaustively applying it. We show this strategy is too costly in practice to be used to search for improved software variants. We further find that pass rates drop from 12–34% for single statement edits to 2–6% for 5-edit sequences, which implies that further progress will need human-inspired operators that target specific faults or improvements. A program is amenable to automated modification to the extent to which automatically editing it is likely to produce test-suite passing variants. We are the first to systematically search for a code measure that correlates with a program’s amenability to automated modification. We found no strong correlations, leaving the question open.Keywords
Funding Information
- Engineering and Physical Sciences Research Council (EP/P023991/1)
- Funder name (EP/J017515/1)
- Australian Research Council (DE160100850)
This publication has 58 references indexed in Scilit:
- An analysis of patch plausibility and correctness for generate-and-validate patch generation systems2015
- Improving CUDA DNA Analysis Software with Genetic Programming2015
- An Empirical Study on Real Bug Fixes2015
- A critical review of "automatic patch generation learned from human-written patches": essay on the problem statement and the evaluation of automatic software repair2014
- Mining software repair models for reasoning on the search space of automated program fixingEmpirical Software Engineering, 2013
- Software mutational robustnessGenetic Programming and Evolvable Machines, 2013
- Combinatorial LandscapesSIAM Review, 2002
- Fitness Landscapes and Evolutionary Algorithms2000
- On "I Know It When I See It"The Yale Law Journal, 1996
- NPATH: a measure of execution path complexity and its applicationsCommunications of the ACM, 1988