49 for ( i = 0; i < (int)pCube->
nVars; i++ )
110 for ( i = 0; i < (int)pCube->
nVars; i++ )
114 fprintf( pFile,
"-" );
116 fprintf( pFile,
"0" );
121 fprintf( pFile,
"1" );
123 fprintf( pFile,
"?" );
125 fprintf( pFile,
" 1\n" );
163 for ( i = 0; i <= p->nVars; i++ )
167 printf(
"%2d : ", i );
168 if ( pCube == p->pBubble )
170 printf(
"Bubble\n" );
196 sprintf( Buffer,
"%s.%s", pName, fEsop?
"esop" :
"pla" );
197 for ( i =
strlen(Buffer) - 1; i >= 0; i-- )
198 if ( Buffer[i] ==
'<' || Buffer[i] ==
'>' )
200 pFile = fopen( Buffer,
"w" );
201 fprintf( pFile,
"# %s cover for output %s generated by ABC on %s\n", fEsop?
"ESOP":
"SOP", pName,
Extra_TimeStamp() );
202 fprintf( pFile,
".i %d\n", pCover? pCover->
nVars : 0 );
203 fprintf( pFile,
".o %d\n", 1 );
205 if ( fEsop ) fprintf( pFile,
".type esop\n" );
208 fprintf( pFile,
".e\n" );
227 for ( i = 0; i <= p->nVars; i++ )
247 for ( i = 0; i < (int)pCube->
nVars; i++ )
269 for ( i = 0; i <= nSuppSize; i++ )
275 ppTail = &pCube->
pNext;
301 p->ppStore[pCube->
nLits] = pCube;
321 if ( pCover == NULL )
324 for ( i = 0; i < (int)pCover->
nWords; i++ )
325 p->pTemp->uData[i] = ~((unsigned)0);
328 for ( i = 0; i < (int)pCover->
nWords; i++ )
329 p->pTemp->uData[i] &= pCube->
uData[i];
332 for ( i = 0; i < (int)pCover->
nVars; i++ )
void Min_CoverCreate(Vec_Str_t *vCover, Min_Cube_t *pCover, char Type)
static int Min_CubeCountLits(Min_Cube_t *pCube)
void Min_CoverExpand(Min_Man_t *p, Min_Cube_t *pCover)
static void Vec_StrClear(Vec_Str_t *p)
#define Min_CoverForEachCubeSafe(pCover, pCube, pCube2)
int Min_CubeCheck(Min_Cube_t *pCube)
static void Vec_StrPush(Vec_Str_t *p, char Entry)
ABC_NAMESPACE_IMPL_START void Min_CubeCreate(Vec_Str_t *vCover, Min_Cube_t *pCube, char Type)
DECLARATIONS ///.
void Min_CubeWrite(FILE *pFile, Min_Cube_t *pCube)
void Min_CoverWrite(FILE *pFile, Min_Cube_t *pCover)
static int Min_CubeGetVar(Min_Cube_t *p, int Var)
void Min_CoverWriteFile(Min_Cube_t *pCover, char *pName, int fEsop)
#define ABC_NAMESPACE_IMPL_END
static int Min_CoverCountCubes(Min_Cube_t *pCover)
void Min_CoverCheck(Min_Man_t *p)
#define ABC_NAMESPACE_IMPL_START
void Min_CoverWriteStore(FILE *pFile, Min_Man_t *p)
int Min_CoverSuppVarNum(Min_Man_t *p, Min_Cube_t *pCover)
#define Min_CoverForEachCube(pCover, pCube)
Min_Cube_t * Min_CoverCollect(Min_Man_t *p, int nSuppSize)
static int Min_CubeHasBit(Min_Cube_t *p, int i)
void Min_ManClean(Min_Man_t *p, int nSupp)
typedefABC_NAMESPACE_HEADER_START struct Min_Man_t_ Min_Man_t
DECLARATIONS ///.