CBMC
goto_symex_property_decidert Class Reference

Provides management of goal variables that encode properties. More...

#include <goto_symex_property_decider.h>

+ Collaboration diagram for goto_symex_property_decidert:

Classes

struct  goalt
 

Public Member Functions

 goto_symex_property_decidert (const optionst &options, ui_message_handlert &ui_message_handler, symex_target_equationt &equation, const namespacet &ns)
 
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 in the goal_map More...
 
void convert_goals ()
 Convert the instances of a property into a goal variable. More...
 
void add_constraint_from_goals (std::function< bool(const irep_idt &property_id)> select_property)
 Add disjunction of negated selected properties to the equation. More...
 
decision_proceduret::resultt solve ()
 Calls solve() on the solver instance. More...
 
stack_decision_proceduretget_decision_procedure () const
 Returns the solver instance. More...
 
boolbvtget_boolbv_decision_procedure () const
 Returns the solver instance. More...
 
symex_target_equationtget_equation () const
 Return the equation associated with this instance. More...
 
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. More...
 

Protected Attributes

const optionstoptions
 
ui_message_handlertui_message_handler
 
symex_target_equationtequation
 
std::unique_ptr< solver_factoryt::solvertsolver
 
std::map< irep_idt, goaltgoal_map
 Maintains the relation between a property ID and the corresponding goal variable that encodes the negation of the conjunction of the instances of the property. More...
 

Detailed Description

Provides management of goal variables that encode properties.

Definition at line 23 of file goto_symex_property_decider.h.

Constructor & Destructor Documentation

◆ goto_symex_property_decidert()

goto_symex_property_decidert::goto_symex_property_decidert ( const optionst options,
ui_message_handlert ui_message_handler,
symex_target_equationt equation,
const namespacet ns 
)

Definition at line 19 of file goto_symex_property_decider.cpp.

Member Function Documentation

◆ add_constraint_from_goals()

void goto_symex_property_decidert::add_constraint_from_goals ( std::function< bool(const irep_idt &property_id)>  select_property)

Add disjunction of negated selected properties to the equation.

Definition at line 83 of file goto_symex_property_decider.cpp.

◆ convert_goals()

void goto_symex_property_decidert::convert_goals ( )

Convert the instances of a property into a goal variable.

Definition at line 72 of file goto_symex_property_decider.cpp.

◆ get_boolbv_decision_procedure()

boolbvt & goto_symex_property_decidert::get_boolbv_decision_procedure ( ) const

Returns the solver instance.

Definition at line 123 of file goto_symex_property_decider.cpp.

◆ get_decision_procedure()

stack_decision_proceduret & goto_symex_property_decidert::get_decision_procedure ( ) const

Returns the solver instance.

Definition at line 118 of file goto_symex_property_decider.cpp.

◆ get_equation()

symex_target_equationt & goto_symex_property_decidert::get_equation ( ) const

Return the equation associated with this instance.

Definition at line 128 of file goto_symex_property_decider.cpp.

◆ solve()

decision_proceduret::resultt goto_symex_property_decidert::solve ( )

Calls solve() on the solver instance.

Definition at line 112 of file goto_symex_property_decider.cpp.

◆ update_properties_goals_from_symex_target_equation()

void goto_symex_property_decidert::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 in the goal_map

Definition at line 43 of file goto_symex_property_decider.cpp.

◆ update_properties_status_from_goals()

void goto_symex_property_decidert::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.

Parameters
[in,out]propertiesThe status is updated in this data structure
[in,out]updated_propertiesThe set of property IDs of updated properties
dec_resultThe result returned by the solver
set_passIf true then update UNKNOWN properties to PASS if the solver returns UNSATISFIABLE

Definition at line 133 of file goto_symex_property_decider.cpp.

Member Data Documentation

◆ equation

symex_target_equationt& goto_symex_property_decidert::equation
protected

Definition at line 71 of file goto_symex_property_decider.h.

◆ goal_map

std::map<irep_idt, goalt> goto_symex_property_decidert::goal_map
protected

Maintains the relation between a property ID and the corresponding goal variable that encodes the negation of the conjunction of the instances of the property.

Definition at line 88 of file goto_symex_property_decider.h.

◆ options

const optionst& goto_symex_property_decidert::options
protected

Definition at line 69 of file goto_symex_property_decider.h.

◆ solver

std::unique_ptr<solver_factoryt::solvert> goto_symex_property_decidert::solver
protected

Definition at line 72 of file goto_symex_property_decider.h.

◆ ui_message_handler

ui_message_handlert& goto_symex_property_decidert::ui_message_handler
protected

Definition at line 70 of file goto_symex_property_decider.h.


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