100 options.
set_option(
"div-by-zero-check",
true);
102 options.
set_option(
"div-by-zero-check",
false);
106 options.
set_option(
"signed-overflow-check",
true);
108 options.
set_option(
"signed-overflow-check",
false);
112 options.
set_option(
"unsigned-overflow-check",
true);
114 options.
set_option(
"unsigned-overflow-check",
false);
118 options.
set_option(
"float-overflow-check",
true);
120 options.
set_option(
"float-overflow-check",
false);
136 options.
set_option(
"memory-leak-check",
true);
138 options.
set_option(
"memory-leak-check",
false);
224 goto_model1, goto_model2, impact_mode,
cmdline.
isset(
"compact-output"));
252 log.
status() <<
"Removing function pointers and virtual functions"
299 const auto cover_config =
332 " jdiff [-?] [-h] [--help] show help\n"
333 " jdiff old new jars to be compared\n"
338 " --syntactic do syntactic diff (default)\n"
339 " -u | --unified output unified diff\n"
340 " --change-impact | \n"
341 " --forward-impact |\n"
343 " --backward-impact output unified diff with forward&backward/forward/backward dependencies\n"
344 " --compact-output output dependencies in compact mode\n"
346 "Program instrumentation options:\n"
349 "Java Bytecode frontend options:\n"
352 " --version show version and exit\n"
353 " --json-ui use JSON-formatted output\n"
void adjust_float_expressions(exprt &expr, const exprt &rounding_mode)
Replaces arithmetic operations and typecasts involving floating point numbers with their equivalent f...
void change_impact(const goto_modelt &model_old, const goto_modelt &model_new, impact_modet impact_mode, bool compact_output)
Data and control-dependencies of syntactic diff.
Non-graph-based representation of the class hierarchy.
std::string get_value(char option) const
virtual bool isset(char option) const
virtual void set(const std::string &option, bool value=true)
Set option option to value, or true if the value is omitted.
const std::list< std::string > & get_values(const std::string &option) const
bool set(const cmdlinet &cmdline)
virtual void output_functions() const
Output diff result.
void compute_loop_numbers()
symbol_tablet symbol_table
Symbol table.
goto_functionst goto_functions
GOTO functions.
jdiff_parse_optionst(int argc, const char **argv)
void register_languages() override
void help() override
display command line help
bool process_goto_program(const optionst &options, goto_modelt &goto_model)
void get_command_line_options(optionst &options)
int doit() override
invoke main modules
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.
mstreamt & status() const
void set_option(const std::string &option, const bool value)
virtual void usage_error()
void log_version_and_architecture(const std::string &front_end)
Write version and system architecture to log.status().
ui_message_handlert ui_message_handler
virtual uit get_ui() const
void output(std::ostream &os) const
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.
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.
void parse_cover_options(const cmdlinet &cmdline, optionst &options)
Parses coverage-related command line options.
Coverage Instrumentation.
Document and give macros for the exit codes of CPROVER binaries.
#define CPROVER_EXIT_INTERNAL_ERROR
An error has been encountered during processing the requested analysis.
#define CPROVER_EXIT_INCORRECT_TASK
The command line is correctly structured but cannot be carried out due to missing files,...
#define CPROVER_EXIT_SUCCESS
Success indicates the required analysis has been performed without error.
void goto_check(const irep_idt &function_identifier, goto_functionst::goto_functiont &goto_function, const namespacet &ns, const optionst &options)
#define PARSE_OPTIONS_GOTO_CHECK(cmdline, options)
goto_modelt initialize_goto_model(const std::vector< std::string > &files, message_handlert &message_handler, const optionst &options)
Initialize a Goto Program.
void instrument_preconditions(const goto_modelt &goto_model, goto_programt &goto_program)
void parse_java_language_options(const cmdlinet &cmd, optionst &options)
Parse options that are java bytecode specific.
#define JAVA_BYTECODE_LANGUAGE_OPTIONS_HELP
Syntactic GOTO-DIFF for Java.
JDIFF Command Line Option Processing.
void show_loop_ids(ui_message_handlert::uit ui, const goto_modelt &goto_model)
void mm_io(const exprt &mm_io_r, const exprt &mm_io_w, goto_functionst::goto_functiont &goto_function, const namespacet &ns)
Perform Memory-mapped I/O instrumentation.
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)
static void remove_complex(typet &)
removes complex data type
Remove the 'complex' data type by compilation into structs.
void remove_exceptions_using_instanceof(symbol_table_baset &symbol_table, goto_functionst &goto_functions, message_handlert &message_handler)
removes throws/CATCH-POP/CATCH-PUSH
Remove function exceptional returns.
bool remove_function_pointers(message_handlert &_message_handler, symbol_tablet &symbol_table, const goto_functionst &goto_functions, goto_programt &goto_program, const irep_idt &function_id, bool add_safety_assertion, bool only_remove_const_fps)
Remove Indirect Function Calls.
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...
Remove Instance-of Operators.
void remove_returns(symbol_table_baset &symbol_table, goto_functionst &goto_functions)
removes returns
Replace function returns by assignments to global variables.
void remove_skip(goto_programt &goto_program, goto_programt::targett begin, goto_programt::targett end)
remove unnecessary skip statements
static void remove_vector(typet &)
removes vector data type
Remove the 'vector' data type by compilation into arrays.
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...
Functions for replacing virtual function call with a static function calls in functions,...
void rewrite_union(exprt &expr)
We rewrite u.c for unions u into byte_extract(u, 0), and { .c = v } into byte_update(NIL,...
void label_properties(goto_modelt &goto_model)
Set the properties to check.
void show_goto_functions(const namespacet &ns, ui_message_handlert &ui_message_handler, const goto_functionst &goto_functions, bool list_only)
#define HELP_SHOW_GOTO_FUNCTIONS
#define HELP_SHOW_PROPERTIES
Unified diff (using LCSS) of goto functions.
const char * CBMC_VERSION