44 #define HLEFT(i) ((i)<<1)
45 #define HRIGHT(i) (((i)<<1)+1)
46 #define HPARENT(i) ((i)>>1)
47 #define HCOMPARE(p, i, j) ((p)->pSat->pdActivity[i] > (p)->pSat->pdActivity[j])
48 #define HHEAP(p, i) ((p)->vHeap->pArray[i])
49 #define HSIZE(p) ((p)->vHeap->nSize)
50 #define HOKAY(p, i) ((i) >= 0 && (i) < (p)->vIndex->nSize)
51 #define HINHEAP(p, i) (HOKAY(p, i) && (p)->vIndex->pArray[i] != 0)
52 #define HEMPTY(p) (HSIZE(p) == 1)
125 for ( i = 0; i < vCone->
nSize; i++ )
284 return i >=
HSIZE(p) ||
308 Result =
HHEAP(p, 1);
static void Msat_HeapPercolateUp(Msat_Order_t *p, int i)
static void Msat_HeapPercolateDown(Msat_Order_t *p, int i)
int Msat_OrderVarSelect(Msat_Order_t *p)
#define MSAT_VAR_UNASSIGNED
#define MSAT_ORDER_UNKNOWN
static void Msat_HeapIncrease(Msat_Order_t *p, int n)
#define HCOMPARE(p, i, j)
void Msat_OrderFree(Msat_Order_t *p)
#define ABC_ALLOC(type, num)
static abctime Abc_Clock()
void Msat_OrderClean(Msat_Order_t *p, Msat_IntVec_t *vCone)
void Msat_OrderVarAssigned(Msat_Order_t *p, int Var)
for(p=first;p->value< newval;p=p->next)
static int Msat_HeapCheck_rec(Msat_Order_t *p, int i)
static void Msat_HeapInsert(Msat_Order_t *p, int n)
void Msat_OrderSetBounds(Msat_Order_t *p, int nVarsMax)
void Msat_IntVecPush(Msat_IntVec_t *p, int Entry)
int Msat_IntVecPop(Msat_IntVec_t *p)
#define ABC_NAMESPACE_IMPL_END
static int Msat_HeapGetTop(Msat_Order_t *p)
Msat_IntVec_t * Msat_IntVecAlloc(int nCap)
FUNCTION DEFINITIONS ///.
void Msat_IntVecFree(Msat_IntVec_t *p)
int Msat_OrderCheck(Msat_Order_t *p)
#define ABC_NAMESPACE_IMPL_START
void Msat_OrderUpdate(Msat_Order_t *p, int Var)
Msat_Order_t * Msat_OrderAlloc(Msat_Solver_t *pSat)
FUNCTION DEFINITIONS ///.
void Msat_OrderVarUnassigned(Msat_Order_t *p, int Var)
void Msat_IntVecGrow(Msat_IntVec_t *p, int nCapMin)
typedefABC_NAMESPACE_HEADER_START struct Msat_Solver_t_ Msat_Solver_t
INCLUDES ///.
abctime timeSelect
DECLARATIONS ///.