CBMC
janalyzer_parse_optionst Class Reference

#include <janalyzer_parse_options.h>

+ Inheritance diagram for janalyzer_parse_optionst:
+ Collaboration diagram for janalyzer_parse_optionst:

Public Member Functions

int doit () override
 invoke main modules More...
 
void help () override
 display command line help More...
 
 janalyzer_parse_optionst (int argc, const char **argv)
 
bool process_goto_functions (goto_modelt &goto_model, const optionst &options)
 
void process_goto_function (goto_model_functiont &function, const abstract_goto_modelt &model, const optionst &options)
 
bool can_generate_function_body (const irep_idt &name)
 
bool generate_function_body (const irep_idt &function_name, symbol_table_baset &symbol_table, goto_functiont &function, bool body_available)
 
- Public Member Functions inherited from parse_options_baset
 parse_options_baset (const std::string &optstring, int argc, const char **argv, const std::string &program)
 
virtual void usage_error ()
 
virtual int main ()
 
virtual ~parse_options_baset ()
 
void log_version_and_architecture (const std::string &front_end)
 Write version and system architecture to log.status(). More...
 

Protected Member Functions

void register_languages () override
 
void get_command_line_options (optionst &options)
 
virtual int perform_analysis (goto_modelt &goto_model, const optionst &options)
 Depending on the command line mode, run one of the analysis tasks. More...
 
ai_basetbuild_analyzer (goto_modelt &goto_model, const optionst &, const namespacet &ns)
 For the task, build the appropriate kind of analyzer Ideally this should be a pure function of options. More...
 

Protected Attributes

std::unique_ptr< class_hierarchytclass_hierarchy
 
- Protected Attributes inherited from parse_options_baset
ui_message_handlert ui_message_handler
 
messaget log
 

Additional Inherited Members

- Public Attributes inherited from parse_options_baset
cmdlinet cmdline
 

Detailed Description

Definition at line 152 of file janalyzer_parse_options.h.

Constructor & Destructor Documentation

◆ janalyzer_parse_optionst()

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

Definition at line 51 of file janalyzer_parse_options.cpp.

Member Function Documentation

◆ build_analyzer()

ai_baset * janalyzer_parse_optionst::build_analyzer ( goto_modelt goto_model,
const optionst options,
const namespacet ns 
)
protected

For the task, build the appropriate kind of analyzer Ideally this should be a pure function of options.

However at the moment some domains require the goto_model

Definition at line 263 of file janalyzer_parse_options.cpp.

◆ can_generate_function_body()

bool janalyzer_parse_optionst::can_generate_function_body ( const irep_idt name)

Definition at line 701 of file janalyzer_parse_options.cpp.

◆ doit()

int janalyzer_parse_optionst::doit ( )
overridevirtual

invoke main modules

Implements parse_options_baset.

Definition at line 323 of file janalyzer_parse_options.cpp.

◆ generate_function_body()

bool janalyzer_parse_optionst::generate_function_body ( const irep_idt function_name,
symbol_table_baset symbol_table,
goto_functiont function,
bool  body_available 
)

Definition at line 708 of file janalyzer_parse_options.cpp.

◆ get_command_line_options()

void janalyzer_parse_optionst::get_command_line_options ( optionst options)
protected

Definition at line 67 of file janalyzer_parse_options.cpp.

◆ help()

void janalyzer_parse_optionst::help ( )
overridevirtual

display command line help

Reimplemented from parse_options_baset.

Definition at line 718 of file janalyzer_parse_options.cpp.

◆ perform_analysis()

int janalyzer_parse_optionst::perform_analysis ( goto_modelt goto_model,
const optionst options 
)
protectedvirtual

Depending on the command line mode, run one of the analysis tasks.

Definition at line 433 of file janalyzer_parse_options.cpp.

◆ process_goto_function()

void janalyzer_parse_optionst::process_goto_function ( goto_model_functiont function,
const abstract_goto_modelt model,
const optionst options 
)

Definition at line 672 of file janalyzer_parse_options.cpp.

◆ process_goto_functions()

bool janalyzer_parse_optionst::process_goto_functions ( goto_modelt goto_model,
const optionst options 
)

Definition at line 646 of file janalyzer_parse_options.cpp.

◆ register_languages()

void janalyzer_parse_optionst::register_languages ( )
overrideprotectedvirtual

Reimplemented from parse_options_baset.

Definition at line 60 of file janalyzer_parse_options.cpp.

Member Data Documentation

◆ class_hierarchy

std::unique_ptr<class_hierarchyt> janalyzer_parse_optionst::class_hierarchy
protected

Definition at line 176 of file janalyzer_parse_options.h.


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