74 if ( Truth == 0 || ~Truth == 0 )
83 int i, k, c, RetValue, Literal, Cube, nCubes = 0;
85 for ( c = 0; c < 2; c ++ )
87 Truth = c ? ~Truth :
Truth;
88 RetValue =
Kit_TruthIsop( (
unsigned *)&Truth, nVars, vCover, 0 );
93 for ( k = 0; k < nVars; k++ )
95 Literal = 3 & (Cube >> (k << 1));
98 else if ( Literal == 2 )
100 else if ( Literal != 0 )
162 if ( (
int)Entry == -1 )
static int * Vec_IntArray(Vec_Int_t *p)
static int Abc_Lit2LitV(int *pMap, int Lit)
typedefABC_NAMESPACE_HEADER_START struct Vec_Wec_t_ Vec_Wec_t
INCLUDES ///.
typedefABC_NAMESPACE_IMPL_START struct Vec_Int_t_ Vec_Int_t
DECLARATIONS ///.
static char * Vec_StrArray(Vec_Str_t *p)
static Vec_Wec_t * Vec_WecStart(int nSize)
#define Vec_StrForEachEntry(vVec, Entry, i)
MACRO DEFINITIONS ///.
static Vec_Int_t * Vec_WecPushLevel(Vec_Wec_t *p)
static int Abc_Var2Lit(int Var, int fCompl)
static int Sfm_ObjFaninNum(Sfm_Ntk_t *p, int i)
static void Vec_StrClear(Vec_Str_t *p)
typedefABC_NAMESPACE_HEADER_START struct Sfm_Ntk_t_ Sfm_Ntk_t
INCLUDES ///.
static Vec_Str_t * Vec_StrAlloc(int nCap)
static void Vec_StrPush(Vec_Str_t *p, char Entry)
static int Vec_WrdSize(Vec_Wrd_t *p)
ABC_NAMESPACE_IMPL_START void Sfm_PrintCnf(Vec_Str_t *vCnf)
DECLARATIONS ///.
static int Abc_LitNotCond(int Lit, int c)
static void Vec_WecClear(Vec_Wec_t *p)
static void Vec_StrGrow(Vec_Str_t *p, int nCapMin)
static int Abc_LitIsCompl(int Lit)
#define Vec_WrdForEachEntryStartStop(vVec, Entry, i, Start, Stop)
int Kit_TruthIsop(unsigned *puTruth, int nVars, Vec_Int_t *vMemory, int fTryBoth)
FUNCTION DEFINITIONS ///.
static void Vec_StrFree(Vec_Str_t *p)
unsigned __int64 word
DECLARATIONS ///.
#define ABC_NAMESPACE_IMPL_END
Vec_Wec_t * Sfm_CreateCnf(Sfm_Ntk_t *p)
static void Vec_IntPush(Vec_Int_t *p, int Entry)
#define ABC_NAMESPACE_IMPL_START
static Vec_Int_t * Vec_WecEntry(Vec_Wec_t *p, int i)
static int Vec_StrSize(Vec_Str_t *p)
static ABC_NAMESPACE_IMPL_START word Truth[8]
DECLARATIONS ///.
static int Vec_IntSize(Vec_Int_t *p)
int Sfm_TruthToCnf(word Truth, int nVars, Vec_Int_t *vCover, Vec_Str_t *vCnf)
void Sfm_TranslateCnf(Vec_Wec_t *vRes, Vec_Str_t *vCnf, Vec_Int_t *vFaninMap, int iPivotVar)
static int Abc_Lit2Var(int Lit)
#define Vec_IntForEachEntry(vVec, Entry, i)
MACRO DEFINITIONS ///.