66 for ( i = 0; i < nGloVars; i++ )
83 Gia_Man_t * pTemp, * pGia = p->pGia; p->pGia = NULL;
116 int i,
Var, CiId, Res = 0;
117 for ( i = 0; i < (int)c->
size; i++ )
166 int Lit, Cid,
Var, status, i;
186 for ( i = 0; i < pCnf->
nClauses; i++ )
194 for ( i = 0; i < pCnf->
nClauses; i++ )
static int * Vec_IntArray(Vec_Int_t *p)
void Gia_ManStop(Gia_Man_t *p)
Aig_Man_t * Gia_ManToAigSimple(Gia_Man_t *p)
void Gia_ManPrintStats(Gia_Man_t *p, Gps_Par_t *pPars)
static int Gia_ManPoNum(Gia_Man_t *p)
Cnf_Dat_t * Cnf_Derive(Aig_Man_t *pAig, int nOutputs)
typedefABC_NAMESPACE_HEADER_START struct Aig_Man_t_ Aig_Man_t
INCLUDES ///.
static Gia_Obj_t * Gia_ManCi(Gia_Man_t *p, int v)
static int Gia_ManAppendCo(Gia_Man_t *p, int iLit0)
typedefABC_NAMESPACE_IMPL_START struct Vec_Int_t_ Vec_Int_t
DECLARATIONS ///.
void Aig_ManStop(Aig_Man_t *p)
void sat_solver2_delete(sat_solver2 *s)
static int Gia_ManAppendCi(Gia_Man_t *p)
static int Abc_Var2Lit(int Var, int fCompl)
static Vec_Int_t * Vec_IntInvert(Vec_Int_t *p, int Fill)
#define Aig_ManForEachCi(p, pObj, i)
ITERATORS ///.
static int sat_solver2_add_xor(sat_solver2 *pSat, int iVarA, int iVarB, int iVarC, int fCompl, int fMark, int Id)
sat_solver2 * sat_solver2_new(void)
void Sat_Solver2PrintStats(FILE *pFile, sat_solver2 *p)
int sat_solver2_addclause(sat_solver2 *s, lit *begin, lit *end, int Id)
static abctime Abc_Clock()
static int clause_id(clause *c)
void sat_solver2_setnvars(sat_solver2 *s, int n)
void Gia_ManStopP(Gia_Man_t **p)
int Int2_ManChainStart(Int2_Man_t *p, clause *c)
static void Abc_PrintTime(int level, const char *pStr, abctime time)
static int Aig_ManCoNum(Aig_Man_t *p)
int Int2_ManChainResolve(Int2_Man_t *p, clause *c, int iLit, int varA)
static int Abc_LitIsCompl(int Lit)
void var_set_partA(sat_solver2 *s, int v, int partA)
typedefABC_NAMESPACE_HEADER_START struct Int2_Man_t_ Int2_Man_t
INCLUDES ///.
static Vec_Int_t * Vec_IntAlloc(int nCap)
FUNCTION DEFINITIONS ///.
static lit toLitCond(int v, int c)
static int Vec_IntEntry(Vec_Int_t *p, int i)
#define ABC_NAMESPACE_IMPL_END
void Gia_ManHashStart(Gia_Man_t *p)
Gia_Man_t * Gia_ManStart(int nObjsMax)
DECLARATIONS ///.
static void Vec_IntPush(Vec_Int_t *p, int Entry)
static int Gia_ObjId(Gia_Man_t *p, Gia_Obj_t *pObj)
static Vec_Int_t * Vec_IntAllocArrayCopy(int *pArray, int nSize)
void Cnf_DataLift(Cnf_Dat_t *p, int nVarsPlus)
Gia_Man_t * Gia_ManInterTest(Gia_Man_t *p)
#define ABC_NAMESPACE_IMPL_START
static Aig_Obj_t * Aig_ManCo(Aig_Man_t *p, int i)
static int sat_solver2_add_buffer(sat_solver2 *pSat, int iVarA, int iVarB, int fCompl, int fMark, int Id)
Int2_Man_t * Int2_ManStart(sat_solver2 *pSat, int *pGloVars, int nGloVars)
FUNCTION DEFINITIONS ///.
static int Vec_IntSize(Vec_Int_t *p)
#define Aig_ManForEachObj(p, pObj, i)
static void clause2_set_partA(sat_solver2 *s, int h, int partA)
void * Int2_ManReadInterpolant(sat_solver2 *pSat)
static int Abc_Lit2Var(int Lit)
#define ABC_CALLOC(type, num)
void Cnf_DataFree(Cnf_Dat_t *p)
int sat_solver2_solve(sat_solver2 *s, lit *begin, lit *end, ABC_INT64_T nConfLimit, ABC_INT64_T nInsLimit, ABC_INT64_T nConfLimitGlobal, ABC_INT64_T nInsLimitGlobal)
static void Vec_IntFree(Vec_Int_t *p)
static int Aig_ObjIsCi(Aig_Obj_t *pObj)
Gia_Man_t * Gia_ManCleanup(Gia_Man_t *p)
char * Abc_UtilStrsav(char *s)
int Gia_ManHashOr(Gia_Man_t *p, int iLit0, int iLit1)
static int * veci_begin(veci *v)
void Int2_ManStop(Int2_Man_t *p)
static int Aig_ObjIsCo(Aig_Obj_t *pObj)
int Gia_ManHashAnd(Gia_Man_t *p, int iLit0, int iLit1)
static int Gia_ManCoNum(Gia_Man_t *p)
static int Gia_ManRegNum(Gia_Man_t *p)