46 api_options.validate_goto_model(
true);
49 log.
status() <<
"goto-bmc version " << *api.get_api_version()
54 struct call_back_contextt
56 std::reference_wrapper<messaget>
log;
58 } call_back_context{
log};
59 const auto callback = [](
62 auto context =
static_cast<call_back_contextt *
>(api_call_back_context);
64 context->error_seen |= is_error_message;
65 (is_error_message ? context->log.get().error()
66 : context->log.get().status())
70 api.set_message_callback(callback, &call_back_context);
73 api.read_goto_binary(filename);
74 if(call_back_context.error_seen)
78 auto result = api.run_verifier();
94 " {bgoto-bmc} [{y-?}] [{y-h}] [{y--help}] \t show this help\n"
95 " {bgoto-bmc} {y--version} \t show version and exit\n"
96 " {bgoto-bmc} [options] {ufile_name} \t perform bounded model checking on"
97 " symex-ready goto-binary {ufile_name}\n");
const char * api_message_get_string(const api_messaget &message)
Given a api_message, this function returns that message expressed as a C language string.
bool api_message_is_error(const api_messaget &message)
void * api_call_back_contextt
The type of pointers to contextual data passed to the api_message_callback functions.
static api_optionst create()
virtual bool isset(char option) const
goto_bmc_parse_optionst(int argc, const char **argv)
mstreamt & status() const
Document and give macros for the exit codes of CPROVER binaries.
#define CPROVER_EXIT_INCORRECT_TASK
The command line is correctly structured but cannot be carried out due to missing files,...
#define CPROVER_EXIT_PARSE_ERROR
An error during parsing of the input program.
#define CPROVER_EXIT_SUCCESS
Success indicates the required analysis has been performed without error.
std::string align_center_with_border(const std::string &text)
Utility for displaying help centered messages borderered by "* *".
std::string banner_string(const std::string &front_end, const std::string &version)
int verifier_result_to_exit_code(verifier_resultt result)
Interface for the various verification engines providing results.
const char * CBMC_VERSION