Go to the documentation of this file.
146 goto_model1, goto_model2, impact_mode,
cmdline.
isset(
"compact-output"));
173 log.
status() <<
"Removing function pointers and virtual functions"
211 const auto cover_config =
242 " jdiff [-?] [-h] [--help] show help\n"
243 " jdiff old new jars to be compared\n"
248 " --show-loops show the loops in the programs\n"
249 " -u | --unified output unified diff\n"
250 " --change-impact | \n"
251 " --forward-impact |\n"
253 " --backward-impact output unified diff with forward&backward/forward/backward dependencies\n"
254 " --compact-output output dependencies in compact mode\n"
256 "Program instrumentation options:\n"
257 " --no-assertions ignore user assertions\n"
258 " --no-assumptions ignore user assumptions\n"
261 " --version show version and exit\n"
262 " --json-ui use JSON-formatted output\n"
263 " --verbosity # verbosity level\n"
void mm_io(const exprt &mm_io_r, const exprt &mm_io_r_value, const exprt &mm_io_w, goto_functionst::goto_functiont &goto_function, const namespacet &ns)
#define HELP_SHOW_GOTO_FUNCTIONS
void output(std::ostream &os) const
void get_command_line_options(optionst &options)
Non-graph-based representation of the class hierarchy.
ui_message_handlert ui_message_handler
void parse_java_language_options(const cmdlinet &cmd, optionst &options)
Parse options that are java bytecode specific.
void remove_exceptions_using_instanceof(symbol_table_baset &symbol_table, goto_functionst &goto_functions, message_handlert &message_handler)
removes throws/CATCH-POP/CATCH-PUSH
virtual bool isset(char option) const
mstreamt & status() const
void remove_skip(goto_programt &goto_program, goto_programt::targett begin, goto_programt::targett end)
remove unnecessary skip statements
void remove_virtual_functions(symbol_table_baset &symbol_table, goto_functionst &goto_functions)
Remove virtual function calls from all functions in the specified list and replace them with their mo...
void change_impact(const goto_modelt &model_old, const goto_modelt &model_new, impact_modet impact_mode, bool compact_output)
void show_loop_ids(ui_message_handlert::uit ui, const goto_modelt &goto_model)
void set_option(const std::string &option, const bool value)
void log_version_and_architecture(const std::string &front_end)
Write version and system architecture to log.status().
static void instrument_cover_goals(const irep_idt &function_id, goto_programt &goto_program, const cover_instrumenterst &instrumenters, const irep_idt &mode, message_handlert &message_handler, const cover_instrumenter_baset::assertion_factoryt &make_assertion)
Applies instrumenters to given goto program.
void label_properties(goto_modelt &goto_model)
void remove_instanceof(const irep_idt &function_identifier, goto_programt::targett target, goto_programt &goto_program, symbol_table_baset &symbol_table, const class_hierarchyt &class_hierarchy, message_handlert &message_handler)
Replace an instanceof in the expression or guard of the passed instruction of the given function body...
virtual uit get_ui() const
virtual void usage_error()
cover_configt get_cover_config(const optionst &options, const symbol_tablet &symbol_table, message_handlert &message_handler)
Build data structures controlling coverage from command-line options.
virtual void output_functions() const
Output diff result.
const char * CBMC_VERSION
std::string banner_string(const std::string &front_end, const std::string &version)
void instrument_preconditions(const goto_modelt &goto_model, goto_programt &goto_program)
void remove_function_pointers(message_handlert &_message_handler, goto_modelt &goto_model, bool only_remove_const_fps)
std::string get_value(char option) const
#define HELP_SHOW_PROPERTIES
void show_goto_functions(const namespacet &ns, ui_message_handlert &ui_message_handler, const goto_functionst &goto_functions, bool list_only)
static void transform_assertions_assumptions(goto_programt &goto_program, bool enable_assertions, bool enable_built_in_assertions, bool enable_assumptions)
void parse_cover_options(const cmdlinet &cmdline, optionst &options)
Parses coverage-related command line options.
jdiff_parse_optionst(int argc, const char **argv)
#define CPROVER_EXIT_INCORRECT_TASK
The command line is correctly structured but cannot be carried out due to missing files,...
void register_languages() override
goto_functionst goto_functions
GOTO functions.
bool set(const cmdlinet &cmdline)
void remove_returns(symbol_table_baset &symbol_table, goto_functionst &goto_functions)
removes returns
bool process_goto_program(const optionst &options, goto_modelt &goto_model)
void help() override
display command line help
void adjust_float_expressions(exprt &expr, const exprt &rounding_mode)
Replaces arithmetic operations and typecasts involving floating point numbers with their equivalent f...
#define CPROVER_EXIT_INTERNAL_ERROR
An error has been encountered during processing the requested analysis.
goto_modelt initialize_goto_model(const std::vector< std::string > &files, message_handlert &message_handler, const optionst &options)
#define CPROVER_EXIT_SUCCESS
Success indicates the required analysis has been performed without error.
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.
symbol_tablet symbol_table
Symbol table.
std::string align_center_with_border(const std::string &text)
Utility for displaying help centered messages borderered by "* *".
int doit() override
invoke main modules