Heuristics for Scalable Dynamic Test Generation

Jacob Burnim, Koushik Sen

2008 · 408 citations · 21 references

Concepts

TL;DR

Symbolic execution has successfully generated test inputs for small systems, but scaling to larger programs is hindered by the combinatorial explosion of the path space. The study proposes heuristic search strategies, including a control‑flow‑guided approach, to improve path‑space exploration for large‑scale concolic testing. These strategies were implemented in the open‑source CREST tool and evaluated on grep 2.2 and Vim 5.7. On these benchmarks, the heuristics delivered markedly higher branch coverage within the same testing budget compared to depth‑first search.

Abstract

Recently there has been great success in using symbolic execution to automatically generate test inputs for small software systems. A primary challenge in scaling such approaches to larger programs is the combinatorial explosion of the path space. It is likely that sophisticated strategies for searching this path space are needed to generate inputs that effectively test large programs (by, e.g., achieving significant branch coverage). We present several such heuristic search strategies, including a novel strategy guided by the control flow graph of the program under test. We have implemented these strategies in CREST, our open source concolic testing tool for C, and evaluated them on two widely-used software tools, grep 2.2 (15 K lines of code) and Vim 5.7 (150 K lines). On these benchmarks, the presented heuristics achieve significantly greater branch coverage on the same testing budget than concolic testing with a traditional depth-first search strategy.

References

21