Go to the documentation of this file.
30 goto_model(goto_model),
31 ns(goto_model.get_symbol_table(), symex_symbol_table),
32 equation(ui_message_handler),
33 unwindset(goto_model),
36 goto_model.get_symbol_table(),
42 ui_message_handler.
get_ui()),
43 property_decider(options, ui_message_handler, equation, ns)
50 if(prop_conv_solver !=
nullptr)
58 const auto any_failures = std::any_of(
61 [](
const std::pair<irep_idt, property_infot> &property) {
62 return property.second.status == property_statust::FAIL;
64 std::string status = any_failures ?
"FAILURE" :
"INCONCLUSIVE";
66 {{
labelt({
"incremental",
"status"}),
68 message_hander.
statistics() << incremental_status;
74 resultt result(resultt::progresst::DONE);
76 std::chrono::duration<double> solver_runtime(0);
101 <<
"Passing problem to "
105 const auto solver_start = std::chrono::steady_clock::now();
128 [&properties](
const irep_idt &property_id) {
142 const auto solver_stop = std::chrono::steady_clock::now();
144 std::chrono::duration<double>(solver_stop - solver_start);
145 log.
status() <<
"Runtime decision procedure: " << solver_runtime.count()
150 ? resultt::progresst::FOUND_FAIL
151 : resultt::progresst::DONE;
154 if(result.
progress == resultt::progresst::FOUND_FAIL)
Class that provides messages with a built-in verbosity 'level'.
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
resultt operator()(propertiest &) override
Check whether the given properties with status NOT_CHECKED, UNKNOWN or properties newly discovered by...
symbol_tablet symex_symbol_table
void update_status_of_unknown_properties(propertiest &properties, std::unordered_set< irep_idt > &updated_properties)
Sets the property status of UNKNOWN properties to PASS.
void postprocess_equation(symex_bmct &symex, symex_target_equationt &equation, const optionst &options, const namespacet &ns, ui_message_handlert &ui_message_handler)
Post process the equation.
static structured_data_entryt data_node(const jsont &data)
void build_goto_trace(const symex_target_equationt &target, ssa_step_predicatet is_last_step_to_keep, const decision_proceduret &decision_procedure, const namespacet &ns, goto_tracet &goto_trace)
Build a trace by going through the steps of target and stopping after the step matching a given condi...
void output_graphml(const goto_tracet &goto_trace, const namespacet &ns, const optionst &options)
outputs an error witness in graphml format
virtual void push(const std::vector< exprt > &assumptions)=0
Pushes a new context on the stack that consists of the given (possibly empty vector of) assumptions.
mstreamt & status() const
void output_error_witness(const goto_tracet &) override
void update_status_of_not_checked_properties(propertiest &properties, std::unordered_set< irep_idt > &updated_properties)
Sets the property status of NOT_CHECKED properties to PASS.
std::map< irep_idt, property_infot > propertiest
A map of property IDs to property infos.
bool current_equation_converted
decision_proceduret::resultt solve()
Calls solve() on the solver instance.
void output_incremental_status(const propertiest &properties, messaget &message_hander)
goto_tracet build_full_trace() const override
Builds and returns the complete trace.
virtual uit get_ui() const
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
bool initial_equation_generated
void update_properties_status_from_symex_target_equation(propertiest &properties, std::unordered_set< irep_idt > &updated_properties, const symex_target_equationt &equation)
Sets property status to PASS for properties whose conditions are constant true in the equation.
void output_proof() override
bool has_properties_to_check(const propertiest &properties)
Return true if there as a property with NOT_CHECKED or UNKNOWN status.
void convert_goals()
Convert the instances of a property into a goal variable.
symex_target_equationt equation
goto_tracet build_trace(const irep_idt &) const override
Builds and returns the trace for the FAILed property with the given property_id.
symex_bmc_incremental_one_loopt symex
bool is_property_to_check(property_statust status)
Return true if the status is NOT_CHECKED or UNKNOWN.
bool full_equation_generated
void revert_slice(symex_target_equationt &equation)
Undo whatever has been done by slice
decision_proceduret & get_decision_procedure() const
Returns the solver instance.
stack_decision_proceduret & get_stack_decision_procedure() const
Returns the solver instance.
const namespacet & get_namespace() const override
Returns the namespace associated with the traces.
std::size_t count_properties(const propertiest &properties, property_statust status)
Return the number of properties with given status.
void add_constraint_from_goals(std::function< bool(const irep_idt &property_id)> select_property)
Add disjunction of negated selected properties to the equation.
resultt
Result of running the decision procedure.
A way of representing nested key/value data.
@ UNKNOWN
The checker was unable to determine the status of the property.
void update_properties_goals_from_symex_target_equation(propertiest &properties)
Get the conditions for the properties from the equation and collect all 'instances' of the properties...
void convert_assertions(decision_proceduret &decision_procedure, bool optimized_for_single_assertions=true)
Converts assertions: build a disjunction of negated assertions.
virtual std::string decision_procedure_text() const =0
Return a textual description of the decision procedure.
ssa_step_predicatet ssa_step_matches_failing_property(const irep_idt &property_id)
Returns a function that checks whether an SSA step is an assertion with property_id.
An implementation of incremental_goto_checkert provides functionality for checking a set of propertie...
void setup_symex(symex_bmct &symex, const namespacet &ns, const optionst &options, ui_message_handlert &ui_message_handler)
void update_properties_status_from_goals(propertiest &properties, std::unordered_set< irep_idt > &updated_properties, decision_proceduret::resultt dec_result, bool set_pass=true) const
Update the property status from the truth value of the goal variable.
bool get_bool_option(const std::string &option) const
goto_tracet build_shortest_trace() const override
Builds and returns the trace up to the first failed property.
abstract_goto_modelt & goto_model
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 ...
void convert_without_assertions(decision_proceduret &decision_procedure)
Interface method to initiate the conversion into a decision procedure format.
bool resume(const get_goto_functiont &get_goto_function)
Return true if symex can be resumed.
virtual void pop()=0
Pop whatever is on top of the stack.
std::unordered_set< irep_idt > updated_properties
Changed properties since the last call to incremental_goto_checkert::operator()
Abstract interface to eager or lazy GOTO models.
ui_message_handlert & ui_message_handler
bool from_entry_point_of(const get_goto_functiont &get_goto_function, symbol_tablet &new_symbol_table)
Return true if symex can be resumed.
goto_symex_property_decidert property_decider
mstreamt & statistics() const
single_loop_incremental_symex_checkert(const optionst &options, ui_message_handlert &ui_message_handler, abstract_goto_modelt &goto_model)