Go to the documentation of this file.
12 #ifndef CPROVER_SOLVERS_DECISION_PROCEDURE_H
13 #define CPROVER_SOLVERS_DECISION_PROCEDURE_H
25 virtual void set_to(
const exprt &expr,
bool value) = 0;
82 #endif // CPROVER_SOLVERS_DECISION_PROCEDURE_H
virtual exprt get(const exprt &expr) const =0
Return expr with variables replaced by values from satisfying assignment if available.
resultt
The result of goto verifying.
Base class for all expressions.
void set_to_true(const exprt &expr)
For a Boolean expression expr, add the constraint 'expr'.
resultt operator()()
Run the decision procedure to solve the problem.
void set_to_false(const exprt &expr)
For a Boolean expression expr, add the constraint 'not expr'.
virtual void set_to(const exprt &expr, bool value)=0
For a Boolean expression expr, add the constraint 'expr' if value is true, otherwise add 'not expr'.
decision_proceduret & operator<<(decision_proceduret &dest, const exprt &src)
Add Boolean constraint src to decision procedure dest.
virtual std::size_t get_number_of_solver_calls() const =0
Return the number of incremental solver calls.
virtual resultt dec_solve()=0
Run the decision procedure to solve the problem.
virtual void print_assignment(std::ostream &out) const =0
Print satisfying assignment to out.
virtual exprt handle(const exprt &expr)=0
Generate a handle, which is an expression that has the same value as the argument in any model that i...
resultt
Result of running the decision procedure.
virtual std::string decision_procedure_text() const =0
Return a textual description of the decision procedure.
virtual ~decision_proceduret()