cprover
cbmc_parse_optionst Class Reference

#include <cbmc_parse_options.h>

Inheritance diagram for cbmc_parse_optionst:
[legend]
Collaboration diagram for cbmc_parse_optionst:
[legend]

Public Member Functions

virtual int doit () override
 invoke main modules More...
 
virtual void help () override
 display command line help More...
 
 cbmc_parse_optionst (int argc, const char **argv)
 
 cbmc_parse_optionst (int argc, const char **argv, const std::string &extra_options)
 
- Public Member Functions inherited from parse_options_baset
 parse_options_baset (const std::string &optstring, int argc, const char **argv)
 
virtual void usage_error ()
 
virtual int main ()
 
virtual ~parse_options_baset ()
 
- Public Member Functions inherited from xml_interfacet
 xml_interfacet (cmdlinet &_cmdline)
 
- Public Member Functions inherited from messaget
virtual void set_message_handler (message_handlert &_message_handler)
 
message_handlertget_message_handler ()
 
 messaget ()
 
 messaget (const messaget &other)
 
messagetoperator= (const messaget &other)
 
 messaget (message_handlert &_message_handler)
 
virtual ~messaget ()
 
mstreamtget_mstream (unsigned message_level) const
 
mstreamterror () const
 
mstreamtwarning () const
 
mstreamtresult () const
 
mstreamtstatus () const
 
mstreamtstatistics () const
 
mstreamtprogress () const
 
mstreamtdebug () const
 
void conditional_output (mstreamt &mstream, const std::function< void(mstreamt &)> &output_generator) const
 Generate output to mstream using output_generator if the configured verbosity is at least as high as that of mstream. More...
 

Static Public Member Functions

static void set_default_options (optionst &)
 Set the options that have default values. More...
 
static bool process_goto_program (goto_modelt &, const optionst &, messaget &)
 
static int get_goto_program (goto_modelt &, const optionst &, const cmdlinet &, messaget &, ui_message_handlert &)
 
- Static Public Member Functions inherited from messaget
static unsigned eval_verbosity (const std::string &user_input, const message_levelt default_verbosity, message_handlert &dest)
 Parse a (user-)provided string as a verbosity level and set it as the verbosity of dest. More...
 
static mstreamteom (mstreamt &m)
 
static mstreamtendl (mstreamt &m)
 

Protected Member Functions

void register_languages ()
 
void get_command_line_options (optionst &)
 
void preprocessing ()
 
bool set_properties ()
 
- Protected Member Functions inherited from xml_interfacet
void get_xml_options (cmdlinet &cmdline)
 XML User Interface. More...
 
void get_xml_options (const class xmlt &xml, cmdlinet &cmdline)
 

Protected Attributes

goto_modelt goto_model
 
ui_message_handlert ui_message_handler
 
const path_strategy_choosert path_strategy_chooser
 
- Protected Attributes inherited from messaget
message_handlertmessage_handler
 
mstreamt mstream
 

Additional Inherited Members

- Public Types inherited from messaget
enum  message_levelt {
  M_ERROR =1, M_WARNING =2, M_RESULT =4, M_STATUS =6,
  M_STATISTICS =8, M_PROGRESS =9, M_DEBUG =10
}
 
- Public Attributes inherited from parse_options_baset
cmdlinet cmdline
 

Detailed Description

Definition at line 79 of file cbmc_parse_options.h.

Constructor & Destructor Documentation

◆ cbmc_parse_optionst() [1/2]

cbmc_parse_optionst::cbmc_parse_optionst ( int  argc,
const char **  argv 
)

Definition at line 68 of file cbmc_parse_options.cpp.

◆ cbmc_parse_optionst() [2/2]

cbmc_parse_optionst::cbmc_parse_optionst ( int  argc,
const char **  argv,
const std::string &  extra_options 
)

Definition at line 77 of file cbmc_parse_options.cpp.

Member Function Documentation

◆ doit()

◆ get_command_line_options()

◆ get_goto_program()

◆ help()

◆ preprocessing()

◆ process_goto_program()

◆ register_languages()

void cbmc_parse_optionst::register_languages ( )
protected

Definition at line 23 of file cbmc_languages.cpp.

References new_ansi_c_language(), new_cpp_language(), new_jsil_language(), and register_language().

Referenced by doit().

◆ set_default_options()

void cbmc_parse_optionst::set_default_options ( optionst options)
static

Set the options that have default values.

This function can be called from clients that wish to emulate CBMC's default behaviour, for example unit tests.

Definition at line 89 of file cbmc_parse_options.cpp.

References optionst::set_option().

Referenced by get_command_line_options().

◆ set_properties()

bool cbmc_parse_optionst::set_properties ( )
protected

Member Data Documentation

◆ goto_model

goto_modelt cbmc_parse_optionst::goto_model
protected

Definition at line 110 of file cbmc_parse_options.h.

Referenced by doit(), get_goto_program(), process_goto_program(), and set_properties().

◆ path_strategy_chooser

const path_strategy_choosert cbmc_parse_optionst::path_strategy_chooser
protected

Definition at line 112 of file cbmc_parse_options.h.

Referenced by doit(), and get_command_line_options().

◆ ui_message_handler

ui_message_handlert cbmc_parse_optionst::ui_message_handler
protected

Definition at line 111 of file cbmc_parse_options.h.

Referenced by doit(), and get_goto_program().


The documentation for this class was generated from the following files: