arrow
返回

Program transformation landscapes for automated program modification using Gin

delete2023-07-14
delete5
delete
OA
AI
J
Justyna Petke *
B
Brad Alexander
E
Earl T. Barr
A
Alexander E. I. Brownlee
M
Markus Wagner
D
David R. White
DOI:10.1007/s10664-023-10344-5delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
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.
Keyword:
Automated program modification
Genetic improvement
Automated program repair
Search-based software engineering

期刊

Empirical Software Engineering 封面图
Empirical Software Engineering
IF:
3.6
论文数:
2.0K
被引数:
5.3K

机构

M
Monash University
学者数:
5.4W
论文数: 5.4W
被引数: 79
U
University of Adelaide
学者数:
2.3W
论文数: 2.4W
被引数: 4.2W
U
University of Stirling
学者数:
3.7K
论文数: 4.2K
被引数: 5.8K
U
University College London
学者数:
7.9W
论文数: 6.2W
被引数: 15.7W
U
university of london
学者数:
21.5W
论文数: 19.7W
被引数: 305
学者 查看更多机构
引用论文

引用论文

Balanocarpol, a new polyphenol from Balanocarpus zeylanicus(trimen) and Hopea jucunda(Thw.)(Dipterocarpaceae)
err1985-01-01
err0
PREAI
errM. N. Champika Diyasena; Subramaniam Sotheeswaran; Sivagnanasunderam Surendrakumar; Sinnathamby Balasubramanian; Michael Bokel; Wolfgang Kraus
err分享
err收藏
A NEW ABSOLUTE FREQUENCY REFERENCE GRID IN THE 28 THz RANGE
err1981-12-01
err0
PREAI
errA. Clairon; A. Van Lerberghe; Ch. Bréant; Ch. Salomon; G. Camy; Ch. J. Bordé
err分享
err收藏
Automatic Software Repair: A Survey自动软件修复: 一项调查
err2019-01-01
err249
errOAAI
errGazzola, Luca; Micucci, Daniela; Mariani, Leonardo
err分享
err收藏
Relaxation of persistent photoconductivity inAl0.3Ga0.7As
err1990-09-15
err0
PREAI
errJ. Y. Lin; A. Dissanayake; G. Brown; H. X. Jiang
err分享
err收藏
学者 查看更多内容