Commit 657f2acd by Alan Mishchenko

Changes to the matching procedure.

parent 9daabedf
...@@ -192,12 +192,10 @@ struct If_Man_t_ ...@@ -192,12 +192,10 @@ struct If_Man_t_
Tim_Man_t * pManTim; Tim_Man_t * pManTim;
Vec_Int_t * vCoAttrs; // CO attributes 0=optimize; 1=keep; 2=relax Vec_Int_t * vCoAttrs; // CO attributes 0=optimize; 1=keep; 2=relax
// hash table for functions // hash table for functions
int nTableSize; // hash table size int nTableSize[2]; // hash table size
int nTableEntries; // hash table entries int nTableEntries[2]; // hash table entries
void ** pHashTable; // hash table bins void ** pHashTable[2]; // hash table bins
Mem_Fixed_t * pMemEntries; // memory manager for hash table entries Mem_Fixed_t * pMemEntries; // memory manager for hash table entries
// statistics // statistics
// int timeTruth; // int timeTruth;
}; };
......
...@@ -127,6 +127,12 @@ void If_ManRestart( If_Man_t * p ) ...@@ -127,6 +127,12 @@ void If_ManRestart( If_Man_t * p )
***********************************************************************/ ***********************************************************************/
void If_ManStop( If_Man_t * p ) void If_ManStop( If_Man_t * p )
{ {
{
// extern void If_CluHashFindMedian( If_Man_t * p );
// extern void If_CluHashTableCheck( If_Man_t * p );
// If_CluHashFindMedian( p );
// If_CluHashTableCheck( p );
}
if ( p->pPars->fVerbose && p->nCutsUselessAll ) if ( p->pPars->fVerbose && p->nCutsUselessAll )
{ {
int i; int i;
...@@ -160,9 +166,12 @@ void If_ManStop( If_Man_t * p ) ...@@ -160,9 +166,12 @@ void If_ManStop( If_Man_t * p )
if ( p->vSwitching ) if ( p->vSwitching )
Vec_IntFree( p->vSwitching ); Vec_IntFree( p->vSwitching );
// hash table // hash table
if ( p->pPars->fVerbose && p->nTableEntries ) // if ( p->pPars->fVerbose && p->nTableEntries[0] )
printf( "Hash table: Entries = %7d. Size = %7d.\n", p->nTableEntries, p->nTableSize ); // printf( "Hash table 2: Entries = %7d. Size = %7d.\n", p->nTableEntries[0], p->nTableSize[0] );
ABC_FREE( p->pHashTable ); // if ( p->pPars->fVerbose && p->nTableEntries[1] )
// printf( "Hash table 3: Entries = %7d. Size = %7d.\n", p->nTableEntries[1], p->nTableSize[1] );
ABC_FREE( p->pHashTable[0] );
ABC_FREE( p->pHashTable[1] );
if ( p->pMemEntries ) if ( p->pMemEntries )
Mem_FixedStop( p->pMemEntries, 0 ); Mem_FixedStop( p->pMemEntries, 0 );
ABC_FREE( p ); ABC_FREE( p );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment