Go to the documentation of this file.
12 #ifndef CPROVER_GOTO_CHECKER_SYMEX_BMC_H
13 #define CPROVER_GOTO_CHECKER_SYMEX_BMC_H
44 typedef std::function<
54 typedef std::function<
tvt(
const irep_idt &,
unsigned,
unsigned &)>
77 const std::string &path)
const
106 unsigned unwind)
override;
111 unsigned unwind)
override;
120 #endif // CPROVER_GOTO_CHECKER_SYMEX_BMC_H
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
std::function< tvt(const call_stackt &, unsigned, unsigned, unsigned &)> loop_unwind_handlert
Loop unwind handlers take the call stack, loop number, the unwind count so far, and an out-parameter ...
std::vector< loop_unwind_handlert > loop_unwind_handlers
Callbacks that may provide an unwind/do-not-unwind decision for a loop.
std::function< tvt(const irep_idt &, unsigned, unsigned &)> recursion_unwind_handlert
Recursion unwind handlers take the function ID, the unwind count so far, and an out-parameter specify...
Storage for symbolic execution paths to be resumed later.
path_storaget & path_storage
Symbolic execution paths to be resumed later.
Central data structure: state.
guard_managert & guard_manager
Used to create guards.
const bool record_coverage
std::unordered_set< irep_idt > body_warnings
void add_loop_unwind_handler(loop_unwind_handlert handler)
Add a callback function that will be called to determine whether to unwind loops.
std::vector< recursion_unwind_handlert > recursion_unwind_handlers
Callbacks that may provide an unwind/do-not-unwind decision for a recursive call.
symex_bmct(message_handlert &mh, const symbol_tablet &outer_symbol_table, symex_target_equationt &_target, const optionst &options, path_storaget &path_storage, guard_managert &guard_manager, unwindsett &unwindset)
bool output_coverage_report(const goto_functionst &goto_functions, const std::string &path) const
This is unused by this implementation of guards, but can be used by other implementations of the same...
const symbol_tablet & outer_symbol_table
The symbol table associated with the goto-program being executed.
void add_recursion_unwind_handler(recursion_unwind_handlert handler)
Add a callback function that will be called to determine whether to unwind recursion.
The main class for the forward symbolic simulator.
bool generate_report(const goto_functionst &goto_functions, const std::string &path) const
symex_coveraget symex_coverage
bool should_stop_unwind(const symex_targett::sourcet &source, const call_stackt &context, unsigned unwind) override
Determine whether to unwind a loop.
Container for data that varies per program point, e.g.
Inheriting the interface of symex_targett this class represents the SSA form of the input program as ...
const bool havoc_bodyless_functions
A collection of goto functions.
void symex_step(const get_goto_functiont &get_goto_function, statet &state) override
show progress
static get_goto_functiont get_goto_function(abstract_goto_modelt &goto_model)
Return a function to get/load a goto function from the given goto model Create a default delegate to ...
bool get_unwind_recursion(const irep_idt &identifier, unsigned thread_nr, unsigned unwind) override
std::function< const goto_functionst::goto_functiont &(const irep_idt &)> get_goto_functiont
The type of delegate functions that retrieve a goto_functiont for a particular function identifier.
void merge_goto(const symex_targett::sourcet &source, goto_statet &&goto_state, statet &state) override
Merge a single branch, the symbolic state of which is held in goto_state, into the current overall sy...
Identifies source in the context of symbolic execution.
void no_body(const irep_idt &identifier) override
Log a warning that a function has no body.
source_locationt last_source_location