Random or heuristic? An empirical study on path search strategies for test generation in KLEE
Random or heuristic? An empirical study on path search strategies for test generation in KLEE
复制标题
随机还是启发式?
DOI:
10.1016/j.jss.2022.111269
复制
发表时间:
2022-02
影响因子:
3.5
通讯作者:
Zhiqiu Huang
中科院分区:
文献类型:
--
作者:
Zhiyi Zhang;Ziyuan Wang;Fan Yang;Jiahao Wei;Yuqian Zhou;Zhiqiu Huang
Randomness may be the most straightforward strategy and has been widely used in software engineering. One criticism for random strategy is its aimless for tasks. Therefore, many heuristic strategies have been proposed to improve the random strategy. However, it is impossible to prove that heuristics are better than randomness in theory, especial for software test generation. This open question is always left to empirical study and researchers expect to conclude some guidelines in practice. This paper studies a key technique, path search strategies, of test generation. We conducted an empirical evaluation and comparison among ten concrete path search approaches provided by KLEE, where two approaches belong to random search strategy and eight belong to heuristic search strategy, with 53 GNU Coreutils applications. We also investigated both cases with and without constraint optimization techniques for KLEE-based test generation. The experimental results show that without optimization, one approach from random strategy –random-path– performs better than other techniques in terms of the number of completed paths, statement coverage and branch coverage. These results indicate that random strategy can be a better choice for test generation in most cases without optimization, and heuristic strategies need further investigation. However, when combined with optimization, the selection of search strategy depends on the specific optimization applied. We further analyze the reasons behind the statistical results and provide guidelines to select the appropriate path search strategy for test generation in practice.
登录
查看更多内容
DOI:
10.1145/3243176.3243207
发表时间:
2018-11
期刊:
Proceedings of the 27th International Conference on Parallel Architectures and Compilation Techniques
影响因子:
--
作者:
Wei Zhang;Houjun Tang;S. Byna;Yong Chen
通讯作者:
Wei Zhang;Houjun Tang;S. Byna;Yong Chen
DOI:
10.1016/j.future.2012.02.006
发表时间:
2013-09-01
影响因子:
7.5
作者:
Chen, Ting;Zhang, Xiao-song;Wu, Yue
通讯作者:
Wu, Yue
影响因子:
7.3
作者:
David Brumley;J. Newsome;D. Song;Hao Wang;S. Jha
通讯作者:
David Brumley;J. Newsome;D. Song;Hao Wang;S. Jha
DOI:
10.1016/j.infsof.2018.11.006
发表时间:
2019-03
期刊:
Inf. Softw. Technol.
影响因子:
--
作者:
A. Sabbaghi;H. Kanan;M. Keyvanpour
通讯作者:
A. Sabbaghi;H. Kanan;M. Keyvanpour
影响因子:
7.4
作者:
Hyunsook Do;G. Rothermel
通讯作者:
Hyunsook Do;G. Rothermel