A journey among Java neutral program variants
A journey among Java neutral program variants
复制标题
Java 中性程序变体之旅
DOI:
10.1007/s10710-019-09355-3
复制
发表时间:
2019
影响因子:
2.6
通讯作者:
B. Baudry
中科院分区:
文献类型:
--
作者:
Nicolas Harrand;Simon Allier;M. Rodriguez;Monperrus Martin;B. Baudry
Neutral program variants are alternative implementations of a program, yet equivalent with respect to the test suite. Techniques such as approximate computing or genetic improvement share the intuition that potential for enhancements lies in these acceptable behavioral differences (e.g., enhanced performance or reliability). Yet, the automatic synthesis of neutral program variants, through program transformations remains a key challenge. This work aims at characterizing plastic code regions in Java programs, i.e., the code regions that are modifiable while maintaining functional correctness, according to a test suite. Our empirical study relies on automatic variations of 6 real-world Java programs. First, we transform these programs with three state-of-the-art program transformations: add, replace and delete statements. We get a pool of 23,445 neutral variants, from which we gather the following novel insights: developers naturally write code that supports fine-grain behavioral changes; statement deletion is a surprisingly effective program transformation; high-level design decisions, such as the choice of a data structure, are natural points that can evolve while keeping functionality. Second, we design 3 novel program transformations, targeted at specific plastic regions. New experiments reveal that respectively 60%, 58% and 73% of the synthesized variants (175,688 in total) are neutral and exhibit execution traces that are different from the original.
影响因子:
14.3
作者:
Petke J
通讯作者:
Petke J