56 int Lits[3], status, i;
80 for ( i = 0; i < pCnfOn->
nClauses; i++ )
92 for ( i = 0; i < pCnfOff->
nClauses; i++ )
128 status =
sat_solver_solve( pSat, Lits, Lits+2, (ABC_INT64_T)0, (ABC_INT64_T)0, (ABC_INT64_T)0, (ABC_INT64_T)0 );
130 printf(
"The incremental SAT problem is not UNSAT.\n" );
151 void * pSatCnf = NULL;
158 int Lits[3], status, i;
180 for ( i = 0; i < pCnfOn->
nClauses; i++ )
200 for ( i = 0; i < pCnfOff->
nClauses; i++ )
248 status =
sat_solver_solve( pSat, NULL, NULL, (ABC_INT64_T)0, (ABC_INT64_T)0, (ABC_INT64_T)0, (ABC_INT64_T)0 );
255 else if ( status ==
l_True )
264 if ( pSatCnf == NULL )
266 printf(
"The SAT problem is not unsat.\n" );
Inta_Man_t * Inta_ManAlloc()
FUNCTION DEFINITIONS ///.
void * Inta_ManInterpolate(Inta_Man_t *p, Sto_Man_t *pCnf, abctime TimeToStop, void *vVarsAB, int fVerbose)
Cnf_Dat_t * Cnf_Derive(Aig_Man_t *pAig, int nOutputs)
typedefABC_NAMESPACE_HEADER_START struct Aig_Man_t_ Aig_Man_t
INCLUDES ///.
int sat_solver_addclause(sat_solver *s, lit *begin, lit *end)
typedefABC_NAMESPACE_IMPL_START struct Vec_Int_t_ Vec_Int_t
DECLARATIONS ///.
int sat_solver_solve(sat_solver *s, lit *begin, lit *end, ABC_INT64_T nConfLimit, ABC_INT64_T nInsLimit, ABC_INT64_T nConfLimitGlobal, ABC_INT64_T nInsLimitGlobal)
void sat_solver_delete(sat_solver *s)
void * sat_solver_store_release(sat_solver *s)
#define Aig_ManForEachCi(p, pObj, i)
ITERATORS ///.
#define Aig_ManForEachCo(p, pObj, i)
static abctime Abc_Clock()
static int Aig_ManCoNum(Aig_Man_t *p)
static Vec_Int_t * Vec_IntAlloc(int nCap)
FUNCTION DEFINITIONS ///.
static Aig_Obj_t * Aig_ManCi(Aig_Man_t *p, int i)
void sat_solver_store_alloc(sat_solver *s)
static lit toLitCond(int v, int c)
void sat_solver_setnvars(sat_solver *s, int n)
static int Aig_ManCiNum(Aig_Man_t *p)
#define ABC_NAMESPACE_IMPL_END
static void Vec_IntPush(Vec_Int_t *p, int Entry)
void sat_solver_store_mark_clauses_a(sat_solver *s)
void Aig_ManInterFast(Aig_Man_t *pManOn, Aig_Man_t *pManOff, int fVerbose)
FUNCTION DEFINITIONS ///.
void Cnf_DataLift(Cnf_Dat_t *p, int nVarsPlus)
#define ABC_NAMESPACE_IMPL_START
static Aig_Obj_t * Aig_ManCo(Aig_Man_t *p, int i)
void sat_solver_store_mark_roots(sat_solver *s)
int sat_solver_simplify(sat_solver *s)
Aig_Man_t * Aig_ManInter(Aig_Man_t *pManOn, Aig_Man_t *pManOff, int fRelation, int fVerbose)
sat_solver * sat_solver_new(void)
Cnf_Dat_t * Cnf_DeriveSimple(Aig_Man_t *p, int nOutputs)
void Sto_ManFree(Sto_Man_t *p)
void Inta_ManFree(Inta_Man_t *p)
void Cnf_DataFree(Cnf_Dat_t *p)
int sat_solver_store_change_last(sat_solver *s)
ABC_NAMESPACE_IMPL_START abctime timeCnf
DECLARATIONS ///.
static void Vec_IntFree(Vec_Int_t *p)