|
ESBMC
Efficient SMT-based Context-Bounded Model Checker
|
This generates CTest test-cases for C programs. More...
#include <ctest.h>
Public Member Functions | |
| ctest_generator ()=default | |
| void | clear () |
| Clear collected data (called at start of coverage run). | |
| void | collect (const symex_target_equationt &target, smt_convt &smt_conv, const namespacet &ns) |
| Collect test data from a counterexample (called for each CEX in coverage mode). | |
| void | generate (const std::string &output_dir) const |
| Generate C test files and CMakeLists.txt from collected data into output_dir. | |
| void | generate_single (const std::string &output_dir, const symex_target_equationt &target, smt_convt &smt_conv, const namespacet &ns) |
| Single-shot generation for non-coverage mode. | |
| bool | has_tests () const |
| Check if any test cases have been collected. | |
Static Public Attributes | |
| static constexpr const char * | default_output_dir = "esbmc-ctest" |
| Output goes to a dedicated subdirectory: writing into the working directory silently destroyed files ESBMC did not own (github #6214). | |
This generates CTest test-cases for C programs.
|
default |
| void ctest_generator::clear | ( | ) |
Clear collected data (called at start of coverage run).
| void ctest_generator::collect | ( | const symex_target_equationt & | target, |
| smt_convt & | smt_conv, | ||
| const namespacet & | ns ) |
Collect test data from a counterexample (called for each CEX in coverage mode).
| void ctest_generator::generate | ( | const std::string & | output_dir | ) | const |
Generate C test files and CMakeLists.txt from collected data into output_dir.
Refuses to overwrite files ESBMC did not generate.
| void ctest_generator::generate_single | ( | const std::string & | output_dir, |
| const symex_target_equationt & | target, | ||
| smt_convt & | smt_conv, | ||
| const namespacet & | ns ) |
Single-shot generation for non-coverage mode.
| bool ctest_generator::has_tests | ( | ) | const |
Check if any test cases have been collected.
|
staticconstexpr |
Output goes to a dedicated subdirectory: writing into the working directory silently destroyed files ESBMC did not own (github #6214).