abc-master
|
#include "msatInt.h"
Go to the source code of this file.
Data Structures | |
struct | Msat_Order_t_ |
DECLARATIONS ///. More... | |
Macros | |
#define | HLEFT(i) ((i)<<1) |
#define | HRIGHT(i) (((i)<<1)+1) |
#define | HPARENT(i) ((i)>>1) |
#define | HCOMPARE(p, i, j) ((p)->pSat->pdActivity[i] > (p)->pSat->pdActivity[j]) |
#define | HHEAP(p, i) ((p)->vHeap->pArray[i]) |
#define | HSIZE(p) ((p)->vHeap->nSize) |
#define | HOKAY(p, i) ((i) >= 0 && (i) < (p)->vIndex->nSize) |
#define | HINHEAP(p, i) (HOKAY(p, i) && (p)->vIndex->pArray[i] != 0) |
#define | HEMPTY(p) (HSIZE(p) == 1) |
Functions | |
static int | Msat_HeapCheck_rec (Msat_Order_t *p, int i) |
static int | Msat_HeapGetTop (Msat_Order_t *p) |
static void | Msat_HeapInsert (Msat_Order_t *p, int n) |
static void | Msat_HeapIncrease (Msat_Order_t *p, int n) |
static void | Msat_HeapPercolateUp (Msat_Order_t *p, int i) |
static void | Msat_HeapPercolateDown (Msat_Order_t *p, int i) |
Msat_Order_t * | Msat_OrderAlloc (Msat_Solver_t *pSat) |
FUNCTION DEFINITIONS ///. More... | |
void | Msat_OrderSetBounds (Msat_Order_t *p, int nVarsMax) |
void | Msat_OrderClean (Msat_Order_t *p, Msat_IntVec_t *vCone) |
int | Msat_OrderCheck (Msat_Order_t *p) |
void | Msat_OrderFree (Msat_Order_t *p) |
int | Msat_OrderVarSelect (Msat_Order_t *p) |
void | Msat_OrderVarAssigned (Msat_Order_t *p, int Var) |
void | Msat_OrderVarUnassigned (Msat_Order_t *p, int Var) |
void | Msat_OrderUpdate (Msat_Order_t *p, int Var) |
Variables | |
abctime | timeSelect |
DECLARATIONS ///. More... | |
Definition at line 47 of file msatOrderH.c.
Definition at line 52 of file msatOrderH.c.
Definition at line 48 of file msatOrderH.c.
Definition at line 51 of file msatOrderH.c.
#define HLEFT | ( | i | ) | ((i)<<1) |
Definition at line 44 of file msatOrderH.c.
Definition at line 50 of file msatOrderH.c.
#define HPARENT | ( | i | ) | ((i)>>1) |
Definition at line 46 of file msatOrderH.c.
#define HRIGHT | ( | i | ) | (((i)<<1)+1) |
Definition at line 45 of file msatOrderH.c.
Definition at line 49 of file msatOrderH.c.
|
static |
Function*************************************************************
Synopsis [Checks the heap property recursively.]
Description []
SideEffects []
SeeAlso []
Definition at line 282 of file msatOrderH.c.
|
static |
Function*************************************************************
Synopsis [Retrieves the minimum element.]
Description []
SideEffects []
SeeAlso []
Definition at line 305 of file msatOrderH.c.
|
static |
Function*************************************************************
Synopsis [Inserts the new element.]
Description []
SideEffects []
SeeAlso []
Definition at line 348 of file msatOrderH.c.
|
static |
Function*************************************************************
Synopsis [Inserts the new element.]
Description []
SideEffects []
SeeAlso []
Definition at line 329 of file msatOrderH.c.
|
static |
Function*************************************************************
Synopsis [Moves the entry down.]
Description []
SideEffects []
SeeAlso []
Definition at line 388 of file msatOrderH.c.
|
static |
Function*************************************************************
Synopsis [Moves the entry up.]
Description []
SideEffects []
SeeAlso []
Definition at line 364 of file msatOrderH.c.
Msat_Order_t* Msat_OrderAlloc | ( | Msat_Solver_t * | pSat | ) |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Allocates the ordering structure.]
Description []
SideEffects []
SeeAlso []
Definition at line 78 of file msatOrderH.c.
int Msat_OrderCheck | ( | Msat_Order_t * | p | ) |
Function*************************************************************
Synopsis [Checks that the J-boundary is okay.]
Description []
SideEffects []
SeeAlso []
Definition at line 147 of file msatOrderH.c.
void Msat_OrderClean | ( | Msat_Order_t * | p, |
Msat_IntVec_t * | vCone | ||
) |
Function*************************************************************
Synopsis [Cleans the ordering structure.]
Description []
SideEffects []
SeeAlso []
Definition at line 120 of file msatOrderH.c.
void Msat_OrderFree | ( | Msat_Order_t * | p | ) |
Function*************************************************************
Synopsis [Frees the ordering structure.]
Description []
SideEffects []
SeeAlso []
Definition at line 163 of file msatOrderH.c.
void Msat_OrderSetBounds | ( | Msat_Order_t * | p, |
int | nVarsMax | ||
) |
Function*************************************************************
Synopsis [Sets the bound of the ordering structure.]
Description [Should be called whenever the SAT solver is resized.]
SideEffects []
SeeAlso []
Definition at line 101 of file msatOrderH.c.
void Msat_OrderUpdate | ( | Msat_Order_t * | p, |
int | Var | ||
) |
Function*************************************************************
Synopsis [Updates the order after a variable changed weight.]
Description []
SideEffects []
SeeAlso []
Definition at line 257 of file msatOrderH.c.
void Msat_OrderVarAssigned | ( | Msat_Order_t * | p, |
int | Var | ||
) |
Function*************************************************************
Synopsis [Updates J-boundary when the variable is assigned.]
Description []
SideEffects []
SeeAlso []
Definition at line 220 of file msatOrderH.c.
int Msat_OrderVarSelect | ( | Msat_Order_t * | p | ) |
Function*************************************************************
Synopsis [Selects the next variable to assign.]
Description []
SideEffects []
SeeAlso []
Definition at line 183 of file msatOrderH.c.
void Msat_OrderVarUnassigned | ( | Msat_Order_t * | p, |
int | Var | ||
) |
Function*************************************************************
Synopsis [Updates the order after a variable is unassigned.]
Description []
SideEffects []
SeeAlso []
Definition at line 235 of file msatOrderH.c.
abctime timeSelect |
DECLARATIONS ///.
CFile****************************************************************
FileName [fraigMan.c]
PackageName [FRAIG: Functionally reduced AND-INV graphs.]
Synopsis [Implementation of the FRAIG manager.]
Author [Alan Mishchenko alanm] i@ee cs.be rkel ey.ed u
Affiliation [UC Berkeley]
Date [Ver. 2.0. Started - October 1, 2004]
Revision [
]
Definition at line 28 of file fraigMan.c.