abc-master
|
#include "cnf.h"
#include "sat/bsat/satSolver.h"
#include "sat/bsat/satSolver2.h"
#include "misc/zlib/zlib.h"
Go to the source code of this file.
Functions | |
static ABC_NAMESPACE_IMPL_START int | Cnf_Lit2Var (int Lit) |
DECLARATIONS ///. More... | |
static int | Cnf_Lit2Var2 (int Lit) |
Cnf_Man_t * | Cnf_ManStart () |
FUNCTION DEFINITIONS ///. More... | |
void | Cnf_ManStop (Cnf_Man_t *p) |
Vec_Int_t * | Cnf_DataCollectPiSatNums (Cnf_Dat_t *pCnf, Aig_Man_t *p) |
Cnf_Dat_t * | Cnf_DataAlloc (Aig_Man_t *pAig, int nVars, int nClauses, int nLiterals) |
Cnf_Dat_t * | Cnf_DataDup (Cnf_Dat_t *p) |
void | Cnf_DataFree (Cnf_Dat_t *p) |
void | Cnf_DataLift (Cnf_Dat_t *p, int nVarsPlus) |
void | Cnf_DataFlipLastLiteral (Cnf_Dat_t *p) |
void | Cnf_DataPrint (Cnf_Dat_t *p, int fReadable) |
void | Cnf_DataWriteIntoFileGz (Cnf_Dat_t *p, char *pFileName, int fReadable, Vec_Int_t *vForAlls, Vec_Int_t *vExists) |
void | Cnf_DataWriteIntoFile (Cnf_Dat_t *p, char *pFileName, int fReadable, Vec_Int_t *vForAlls, Vec_Int_t *vExists) |
void * | Cnf_DataWriteIntoSolverInt (void *pSolver, Cnf_Dat_t *p, int nFrames, int fInit) |
void * | Cnf_DataWriteIntoSolver (Cnf_Dat_t *p, int nFrames, int fInit) |
void * | Cnf_DataWriteIntoSolver2 (Cnf_Dat_t *p, int nFrames, int fInit) |
int | Cnf_DataWriteOrClause (void *p, Cnf_Dat_t *pCnf) |
int | Cnf_DataWriteOrClause2 (void *p, Cnf_Dat_t *pCnf) |
int | Cnf_DataWriteAndClauses (void *p, Cnf_Dat_t *pCnf) |
void | Cnf_DataTranformPolarity (Cnf_Dat_t *pCnf, int fTransformPos) |
int | Cnf_DataAddXorClause (void *pSat, int iVarA, int iVarB, int iVarC) |
int Cnf_DataAddXorClause | ( | void * | pSat, |
int | iVarA, | ||
int | iVarB, | ||
int | iVarC | ||
) |
Function*************************************************************
Synopsis [Adds constraints for the two-input AND-gate.]
Description []
SideEffects []
SeeAlso []
Definition at line 688 of file cnfMan.c.
Function*************************************************************
Synopsis [Returns the array of CI IDs.]
Description []
SideEffects []
SeeAlso []
Definition at line 104 of file cnfMan.c.
Function*************************************************************
Synopsis [Allocates the new CNF.]
Description []
SideEffects []
SeeAlso []
Definition at line 157 of file cnfMan.c.
void Cnf_DataFlipLastLiteral | ( | Cnf_Dat_t * | p | ) |
void Cnf_DataFree | ( | Cnf_Dat_t * | p | ) |
void Cnf_DataLift | ( | Cnf_Dat_t * | p, |
int | nVarsPlus | ||
) |
void Cnf_DataPrint | ( | Cnf_Dat_t * | p, |
int | fReadable | ||
) |
Function*************************************************************
Synopsis [Writes CNF into a file.]
Description []
SideEffects []
SeeAlso []
Definition at line 246 of file cnfMan.c.
void Cnf_DataTranformPolarity | ( | Cnf_Dat_t * | pCnf, |
int | fTransformPos | ||
) |
int Cnf_DataWriteAndClauses | ( | void * | p, |
Cnf_Dat_t * | pCnf | ||
) |
Function*************************************************************
Synopsis [Adds the OR-clause.]
Description []
SideEffects []
SeeAlso []
Definition at line 627 of file cnfMan.c.
void Cnf_DataWriteIntoFile | ( | Cnf_Dat_t * | p, |
char * | pFileName, | ||
int | fReadable, | ||
Vec_Int_t * | vForAlls, | ||
Vec_Int_t * | vExists | ||
) |
Function*************************************************************
Synopsis [Writes CNF into a file.]
Description []
SideEffects []
SeeAlso []
Definition at line 318 of file cnfMan.c.
void Cnf_DataWriteIntoFileGz | ( | Cnf_Dat_t * | p, |
char * | pFileName, | ||
int | fReadable, | ||
Vec_Int_t * | vForAlls, | ||
Vec_Int_t * | vExists | ||
) |
Function*************************************************************
Synopsis [Writes CNF into a file.]
Description []
SideEffects []
SeeAlso []
Definition at line 271 of file cnfMan.c.
void* Cnf_DataWriteIntoSolver | ( | Cnf_Dat_t * | p, |
int | nFrames, | ||
int | fInit | ||
) |
Function*************************************************************
Synopsis [Writes CNF into a file.]
Description []
SideEffects []
SeeAlso []
Definition at line 463 of file cnfMan.c.
void* Cnf_DataWriteIntoSolver2 | ( | Cnf_Dat_t * | p, |
int | nFrames, | ||
int | fInit | ||
) |
Function*************************************************************
Synopsis [Writes CNF into a file.]
Description []
SideEffects []
SeeAlso []
Definition at line 479 of file cnfMan.c.
void* Cnf_DataWriteIntoSolverInt | ( | void * | pSolver, |
Cnf_Dat_t * | p, | ||
int | nFrames, | ||
int | fInit | ||
) |
Function*************************************************************
Synopsis [Writes CNF into a file.]
Description []
SideEffects []
SeeAlso []
Definition at line 370 of file cnfMan.c.
int Cnf_DataWriteOrClause | ( | void * | p, |
Cnf_Dat_t * | pCnf | ||
) |
Function*************************************************************
Synopsis [Adds the OR-clause.]
Description []
SideEffects []
SeeAlso []
Definition at line 571 of file cnfMan.c.
int Cnf_DataWriteOrClause2 | ( | void * | p, |
Cnf_Dat_t * | pCnf | ||
) |
Function*************************************************************
Synopsis [Adds the OR-clause.]
Description []
SideEffects []
SeeAlso []
Definition at line 599 of file cnfMan.c.
|
inlinestatic |
DECLARATIONS ///.
CFile****************************************************************
FileName [cnfMan.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [AIG-to-CNF conversion.]
Synopsis []
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - April 28, 2007.]
Revision [
]
|
inlinestatic |
Cnf_Man_t* Cnf_ManStart | ( | ) |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Starts the fraiging manager.]
Description []
SideEffects []
SeeAlso []
Definition at line 51 of file cnfMan.c.