55 printf(
"%s%d ", Abc_LitIsCompl(Lit) ?
"-":
"", Abc_Lit2Var(Lit) );
73 if ( Truth == 0 || ~Truth == 0 )
76 Vec_StrPush( vCnf, (
char)(Truth == 0) );
77 Vec_StrPush( vCnf, (
char)-1 );
82 int i, k, c, RetValue, Literal,
Cube, nCubes = 0;
84 for ( c = 0; c < 2; c ++ )
86 Truth = c ? ~Truth : Truth;
87 RetValue =
Kit_TruthIsop( (
unsigned *)&Truth, nVars, vCover, 0 );
89 nCubes += Vec_IntSize( vCover );
92 for ( k = 0; k < nVars; k++ )
94 Literal = 3 & (
Cube >> (k << 1));
96 Vec_StrPush( vCnf, (
char)Abc_Var2Lit(k, 0) );
97 else if ( Literal == 2 )
98 Vec_StrPush( vCnf, (
char)Abc_Var2Lit(k, 1) );
99 else if ( Literal != 0 )
102 Vec_StrPush( vCnf, (
char)Abc_Var2Lit(nVars, c) );
103 Vec_StrPush( vCnf, (
char)-1 );
126 Vec_WecClear( vRes );
127 vClause = Vec_WecPushLevel( vRes );
130 if ( (
int)Entry == -1 )
132 vClause = Vec_WecPushLevel( vRes );
135 Lit = Abc_Lit2LitV( Vec_IntArray(vFaninMap), (
int)Entry );
136 Lit = Abc_LitNotCond( Lit, Abc_Lit2Var(Lit) == iPivotVar );
137 Vec_IntPush( vClause, Lit );
#define ABC_NAMESPACE_IMPL_START
#define ABC_NAMESPACE_IMPL_END
typedefABC_NAMESPACE_IMPL_START struct Vec_Int_t_ Vec_Int_t
DECLARATIONS ///.
struct Vec_Str_t_ Vec_Str_t
unsigned __int64 word
DECLARATIONS ///.
int Kit_TruthIsop(unsigned *puTruth, int nVars, Vec_Int_t *vMemory, int fTryBoth)
ABC_NAMESPACE_IMPL_START void Sbd_PrintCnf(Vec_Str_t *vCnf)
DECLARATIONS ///.
void Sbd_TranslateCnf(Vec_Wec_t *vRes, Vec_Str_t *vCnf, Vec_Int_t *vFaninMap, int iPivotVar)
int Sbd_TruthToCnf(word Truth, int nVars, Vec_Int_t *vCover, Vec_Str_t *vCnf)
#define Vec_IntForEachEntry(vVec, Entry, i)
MACRO DEFINITIONS ///.
#define Vec_StrForEachEntry(vVec, Entry, i)
MACRO DEFINITIONS ///.
typedefABC_NAMESPACE_HEADER_START struct Vec_Wec_t_ Vec_Wec_t
INCLUDES ///.