Legion
Dongge Liu, Gidon Ernst, Toby Murray et al. · IEEE/ACM International Conference on Automated Software Engineering (ASE) · 2020
Concolic execution and fuzzing are two complementary coverage-based testing techniques. How to achieve the best of both remains an open challenge. To address this research problem, we propose and evaluate Legion. Legion re-engineers the Monte Carlo tree search (MCTS) framework from the AI literature to treat automated test generation as a problem of sequential decision-making under uncertainty. Its best-first search strategy provides a principled way to learn the most promising program states to investigate at each search iteration, based on observed rewards from previous iterations. Legion incorporates a form of directed fuzzing that we call approximate path-preserving fuzzing (APPFuzzing) to investigate program states selected by MCTS. APPFuzzing serves as the Monte Carlo simulation technique and is implemented by extending prior work on constrained sampling. We evaluate Legion against competitors on 2531 benchmarks from the coverage category of Test-Comp 2020, as well as measuring its sensitivity to hyperparameters, demonstrating its effectiveness on a wide variety of input programs.
Cited by 28 works. doi:10.1145/3324884.3416629 Open-access PDF
Authors
References
- Mastering the game of Go with deep neural networks and tree search
- Symbolic execution and program testing
- Bandit Based Monte-Carlo Planning
- DART
- KLEE: unassisted and automatic generation of high-coverage tests for complex systems programs
- Valgrind
- A Survey of Monte Carlo Tree Search Methods
- DART
- Automated Whitebox Fuzz Testing.
- Driller: Augmenting Fuzzing Through Selective Symbolic Execution