|
using | Literal = std::pair< Variable, bool > |
|
using | Model = std::pair< std::vector< Literal >, std::vector< Literal > > |
|
◆ AddFormula()
void AddFormula |
( |
const Formula & |
f | ) |
|
Adds a formula f
to the solver.
- Note
- If
f
is a clause, please use AddClause function. This function does not assume anything about f
and perform pre-processings (CNFize and PredicateAbstraction).
◆ AddLearnedClause()
void AddLearnedClause |
( |
const std::set< Formula > & |
formulas | ) |
|
Given a formulas
= {f₁, ..., fₙ}, adds a clause (¬f₁ ∨ ...
∨ ¬ fₙ) to the solver.
◆ CheckSat()
optional< SatSolver::Model > CheckSat |
( |
| ) |
|
Checks the satisfiability of the current configuration.
- Returns
- a witness, satisfying model if the problem is satisfiable.
-
nullopt if UNSAT.
The documentation for this class was generated from the following files:
- /home/soonhokong/work/dreal4/dreal/solver/sat_solver.h
- /home/soonhokong/work/dreal4/dreal/solver/sat_solver.cc