9 #ifndef CPROVER_SOLVERS_PROP_PROP_CONV_SOLVER_H
10 #define CPROVER_SOLVERS_PROP_PROP_CONV_SOLVER_H
33 :
prop(_prop),
log(message_handler)
65 void set_to(
const exprt &expr,
bool value)
override;
70 void push(
const std::vector<exprt> &assumptions)
override;
84 typedef std::unordered_map<exprt, literalt, irep_hash>
cachet;
113 virtual std::optional<bool>
get_bool(
const exprt &expr)
const;
resultt
Result of running the decision procedure.
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
Base class for all expressions.
Class that provides messages with a built-in verbosity 'level'.
void pop() override
Pop whatever is on top of the stack.
virtual bool set_equality_to_true(const equal_exprt &expr)
virtual literalt convert_bool(const exprt &expr)
decision_proceduret::resultt dec_solve(const exprt &) override
Implementation of the decision procedure.
void set_frozen(literalt)
std::vector< size_t > context_size_stack
assumption_stack is segmented in contexts; Number of assumptions in each context on the stack
std::size_t context_literal_counter
To generate unique literal names for contexts.
std::size_t get_number_of_solver_calls() const override
Return the number of incremental solver calls.
bool equality_propagation
virtual void clear_cache()
bool post_processing_done
prop_conv_solvert(propt &_prop, message_handlert &message_handler)
virtual void finish_eager_conversion()
std::map< irep_idt, literalt > symbolst
virtual literalt get_literal(const irep_idt &symbol)
hardness_collectort * get_hardness_collector()
std::string decision_procedure_text() const override
Return a textual description of the decision procedure.
virtual void ignoring(const exprt &expr)
const symbolst & get_symbols() const
virtual ~prop_conv_solvert()=default
const cachet & get_cache() const
void set_time_limit_seconds(uint32_t lim) override
Set the limit for the solver to time out in seconds.
tvt l_get(literalt a) const override
Return value of literal l from satisfying assignment.
void add_constraints_to_prop(const exprt &expr, bool value)
Helper method used by set_to for adding the constraints to prop.
void push() override
Push a new context on the stack This context becomes a child context nested in the current context.
virtual std::optional< bool > get_bool(const exprt &expr) const
Get a boolean value from the model if the formula is satisfiable.
literalt convert(const exprt &expr) override
Convert a Boolean expression and return the corresponding literal.
exprt get(const exprt &expr) const override
Return expr with variables replaced by values from satisfying assignment if available.
bvt assumption_stack
Assumptions on the stack.
virtual literalt convert_rest(const exprt &expr)
std::unordered_map< exprt, literalt, irep_hash > cachet
void set_to(const exprt &expr, bool value) override
For a Boolean expression expr, add the constraint 'current_context => expr' if value is true,...
exprt handle(const exprt &expr) override
Generate a handle, which is an expression that has the same value as the argument in any model that i...
static const char * context_prefix
bool is_in_conflict(const exprt &expr) const override
Returns true if an expression is in the final conflict leading to UNSAT.
void print_assignment(std::ostream &out) const override
Print satisfying assignment to out.
virtual tvt l_get(literalt a) const =0
virtual void set_time_limit_seconds(uint32_t)
Capability to check whether an expression is a reason for the solver returning UNSAT.
Capability to collect the statistics of the complexity of individual solver queries.
std::vector< literalt > bvt
Solver capability to set resource limits.