#include <satInterfaces.hpp>
Definition at line 63 of file satInterfaces.hpp.
◆ KissatSolver()
| eSLIM::KissatSolver::KissatSolver |
( |
| ) |
|
|
inline |
◆ ~KissatSolver()
| eSLIM::KissatSolver::~KissatSolver |
( |
| ) |
|
|
inline |
◆ addClause()
| void eSLIM::KissatSolver::addClause |
( |
int * | pLits, |
|
|
int | nLits ) |
|
inline |
Definition at line 160 of file satInterfaces.hpp.
160 {
161 for ( int i = 0; i < nLits; i++ ) {
162 if (pLits[i] == 0) {
163 continue;
164 }
165 kissat_add (solver, Abc_LitIsCompl(pLits[i]) ? -Abc_Lit2Var(pLits[i]) : Abc_Lit2Var(pLits[i]));
166 }
168 }
void kissat_add(kissat *solver, int elit)
◆ getModelVec()
| Vec_Int_t * eSLIM::KissatSolver::getModelVec |
( |
| ) |
|
|
inline |
Definition at line 185 of file satInterfaces.hpp.
185 {
186 Vec_Int_t* assignment = Vec_IntAlloc( max_var );
187 for (int v = 1; v <= max_var; v++) {
188 Vec_IntSetEntryFull( assignment, Abc_AbsInt(val(v)), val(v) > 0 );
189 }
190 return assignment;
191 }
typedefABC_NAMESPACE_IMPL_START struct Vec_Int_t_ Vec_Int_t
DECLARATIONS ///.
◆ init()
| void eSLIM::KissatSolver::init |
( |
int | max_var | ) |
|
|
inline |
Definition at line 155 of file satInterfaces.hpp.
155 {
156 this->max_var = max_var;
158 }
void kissat_reserve(kissat *solver, int max_var)
◆ solve()
| int eSLIM::KissatSolver::solve |
( |
| ) |
|
|
inline |
Definition at line 170 of file satInterfaces.hpp.
170 {
172 return status;
173 }
int kissat_solve(kissat *solver)
The documentation for this class was generated from the following file: