54 nNodes = pMan->vMapObjs->nSize;
56 for ( i = 0; i < nNodes; i++ )
58 pNode = pMan->vMapObjs->pArray[i];
97 unsigned uTruth[2], uCanon[2];
98 unsigned char uPhases[16];
105 extern int Map_CanonCompute(
int nVarsMax,
int nVarsReal,
unsigned * pt,
unsigned ** pptRes,
char ** ppfRes );
137 uCanon[0] = uCanon2[0];
138 uCanon[1] = (p->nVarsMax == 6)? uCanon2[1] : uCanon2[0];
139 uPhases[0] = pPhases2[0];
144 pCut->
M[1].
uPhase = uPhases[0];
150 uTruth[0] = ~uTruth[0];
151 uTruth[1] = ~uTruth[1];
167 uCanon[0] = uCanon2[0];
168 uCanon[1] = (p->nVarsMax == 6)? uCanon2[1] : uCanon2[0];
169 uPhases[0] = pPhases2[0];
174 pCut->
M[0].
uPhase = uPhases[0];
182 uTruth[0] = ~uTruth[0];
183 uTruth[1] = ~uTruth[1];
199 unsigned uTruth1[2], uTruth2[2];
203 for ( i = 0; i < pCut->
nLeaves; i++ )
213 p->vVisited->nSize = 0;
215 assert( p->vVisited->nSize > 0 );
216 pCut->
nVolume = p->vVisited->nSize;
219 for ( i = 0; i < pCut->
nLeaves; i++ )
224 for ( i = 0; i < p->vVisited->nSize; i++ )
227 pTemp = (
Map_Cut_t *)p->vVisited->pArray[i];
259 pTemp->
M[0].
uPhaseBest = ~(uTruth1[0] & uTruth2[0]);
260 pTemp->
M[1].
uPhaseBest = ~(uTruth1[1] & uTruth2[1]);
int Map_NodeIsAnd(Map_Node_t *p)
static ABC_NAMESPACE_IMPL_START void Map_TruthsCut(Map_Man_t *pMan, Map_Cut_t *pCut)
DECLARATIONS ///.
static void Map_CutsCollect_rec(Map_Cut_t *pCut, Map_NodeVec_t *vVisited)
#define Map_CutIsComplement(p)
void Map_MappingTruths(Map_Man_t *pMan)
FUNCTION DEFINITIONS ///.
Map_Super_t * Map_SuperTableLookupC(Map_SuperLib_t *pLib, unsigned uTruth[])
#define ABC_NAMESPACE_IMPL_END
#define ABC_NAMESPACE_IMPL_START
#define Map_CutRegular(p)
typedefABC_NAMESPACE_HEADER_START struct Map_ManStruct_t_ Map_Man_t
INCLUDES ///.
int Map_CanonComputeSlow(unsigned uTruths[][2], int nVarsMax, int nVarsReal, unsigned uTruth[], unsigned char *puPhases, unsigned uTruthRes[])
FUNCTION DEFINITIONS ///.
void Map_TruthsCutOne(Map_Man_t *p, Map_Cut_t *pCut, unsigned uTruth[])
void Map_NodeVecPush(Map_NodeVec_t *p, Map_Node_t *Entry)
int Map_CanonComputeFast(Map_Man_t *p, int nVarsMax, int nVarsReal, unsigned uTruth[], unsigned char *puPhases, unsigned uTruthRes[])