Using a Bounded Model Checker for Test Generation: How to Kill Two Birds with One SMT-solver

Autor: Maxim Petrov, Kirill Gagarski, Mikhail Belyaev, Vladimir Itsykson
Jazyk: English<br />Russian
Rok vydání: 2014
Předmět:
Zdroj: Моделирование и анализ информационных систем, Vol 21, Iss 6, Pp 83-93 (2014)
Druh dokumentu: article
ISSN: 1818-1015
2313-5417
DOI: 10.18255/1818-1015-2014-6-83-93
Popis: The automated test generation has received a lot of attention in the last decades as it is one of possible solutions to software testing inherent problems: the need to write tests and providing test coverage in presence of human factor. The most promising technique of generating a test automatically is the dynamic symbolic execution assisted by an automated constraint solver, e. g., an SMT-solver. This process is very similar to the bounded model checking, which also has to deal with generating models from a source code, asserting logic properties in it and process the returned model. This paper describes a prototype unit test generator for C based on a working bounded model checker called Borealis and shows that these two techniques are very similar and can be easily implemented by using the same basic components. The prototype test generator was sampled on a number of examples and showed good results in terms of test coverage and test excessiveness.
Databáze: Directory of Open Access Journals