32 const std::string &program)
33 : parse_result(cmdline.parse(
37 ui_message_handler(cmdline, program),
38 log(ui_message_handler)
111 catch(
const std::string &e)
127 catch(
const std::bad_alloc &)
132 catch(
const std::exception &e)
153 <<
sizeof(
void *) *
CHAR_BIT <<
"-bit "
161 auto const border = std::string{
"* *"};
174 std::to_string(
sizeof(
void *) *
CHAR_BIT) +
ait supplies three of the four components needed: an abstract interpreter (in this case handling func...
virtual bool isset(char option) const
std::vector< std::string > get_argument_suggestions(const std::string &unknown_argument)
static irep_idt this_architecture()
static irep_idt this_operating_system()
Base class for exceptions thrown in the cprover project.
Thrown when users pass incorrect command line arguments, for example passing no files to analysis or ...
std::string what() const override
A human readable description of what went wrong.
A logic error, augmented with a distinguished field to hold a backtrace.
mstreamt & status() const
virtual void usage_error()
parse_options_baset(const std::string &optstring, int argc, const char **argv, const std::string &program)
void unknown_option_msg()
Print an error message mentioning the option that was not recognized when parsing the command line.
void log_version_and_architecture(const std::string &front_end)
Write version and system architecture to log.status().
Document and give macros for the exit codes of CPROVER binaries.
#define CPROVER_EXIT_INTERNAL_OUT_OF_MEMORY
Memory allocation has failed and this has been detected within the program.
#define CPROVER_EXIT_USAGE_ERROR
A usage error is returned when the command line is invalid or conflicting.
#define CPROVER_EXIT_EXCEPTION
An (unanticipated) exception was thrown during computation.
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)
void install_signal_catcher()
Stream & join_strings(Stream &&os, const It b, const It e, const Delimiter &delimiter, TransformFunc &&transform_func)
Prints items to an stream, separated by a constant delimiter.
const char * CBMC_VERSION