NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Generating Tests from Counterexamples

Dirk Beyer, Adam Chlipala, Thomas A. Henzinger, Ranjit Jhala, Rupak MajumdarICSE 2004

Abstract

We have extended the software model checker BLAST to automatically generate test suites that guarantee full coverage with respect to a given predicate. More precisely, given a C program and a target predicate p, BLAST determines the set L of program locations which program execution can reach with p true, and automatically generates a set of test vectors that exhibit the truth of p at all locations in L. We have used BLAST to generate test suites and to detect dead code in C programs with up to 30 K lines of code. The analysis and test vector generation is fully automatic (no user intervention) and exact (no false positives).
BibTeX
@inproceedings{beyer2004generating,
  author = {Dirk Beyer and Adam Chlipala and Thomas A. Henzinger and Ranjit Jhala and Rupak Majumdar},
  title = {{Generating Tests from Counterexamples}},
  booktitle = {ICSE},
  year = {2004},
  url = {https://openreview.net/forum?id=NCK8EhyF82},
}

Loading related content...

Figure