Commit e868d057 by Alan Mishchenko

Added structural hashing by default after if -g and &if -g.

parent eb960a91
...@@ -717,7 +717,7 @@ int Gia_ManBuildFromMini( Gia_Man_t * pNew, If_Man_t * pIfMan, If_Cut_t * pCut, ...@@ -717,7 +717,7 @@ int Gia_ManBuildFromMini( Gia_Man_t * pNew, If_Man_t * pIfMan, If_Cut_t * pCut,
Gia_Man_t * Gia_ManFromIfAig( If_Man_t * pIfMan ) Gia_Man_t * Gia_ManFromIfAig( If_Man_t * pIfMan )
{ {
int fHash = 0; int fHash = 0;
Gia_Man_t * pNew; Gia_Man_t * pNew, * pTemp;
If_Obj_t * pIfObj, * pIfLeaf; If_Obj_t * pIfObj, * pIfLeaf;
If_Cut_t * pCutBest; If_Cut_t * pCutBest;
Vec_Int_t * vLeaves; Vec_Int_t * vLeaves;
...@@ -762,7 +762,8 @@ Gia_Man_t * Gia_ManFromIfAig( If_Man_t * pIfMan ) ...@@ -762,7 +762,8 @@ Gia_Man_t * Gia_ManFromIfAig( If_Man_t * pIfMan )
} }
Vec_IntFree( vAig ); Vec_IntFree( vAig );
Vec_IntFree( vLeaves ); Vec_IntFree( vLeaves );
Gia_ManHashStop( pNew ); pNew = Gia_ManRehash( pTemp = pNew, 0 );
Gia_ManStop( pTemp );
return pNew; return pNew;
} }
......
...@@ -113,7 +113,7 @@ if ( pIfMan->pPars->fVerbose ) ...@@ -113,7 +113,7 @@ if ( pIfMan->pPars->fVerbose )
***********************************************************************/ ***********************************************************************/
Abc_Ntk_t * Abc_NtkIf( Abc_Ntk_t * pNtk, If_Par_t * pPars ) Abc_Ntk_t * Abc_NtkIf( Abc_Ntk_t * pNtk, If_Par_t * pPars )
{ {
Abc_Ntk_t * pNtkNew; Abc_Ntk_t * pNtkNew, * pTemp;
If_Man_t * pIfMan; If_Man_t * pIfMan;
assert( Abc_NtkIsStrash(pNtk) ); assert( Abc_NtkIsStrash(pNtk) );
...@@ -160,7 +160,12 @@ Abc_Ntk_t * Abc_NtkIf( Abc_Ntk_t * pNtk, If_Par_t * pPars ) ...@@ -160,7 +160,12 @@ Abc_Ntk_t * Abc_NtkIf( Abc_Ntk_t * pNtk, If_Par_t * pPars )
if ( pNtkNew == NULL ) if ( pNtkNew == NULL )
return NULL; return NULL;
If_ManStop( pIfMan ); If_ManStop( pIfMan );
if ( pPars->fBidec && pPars->nLutSize <= 8 ) if ( pPars->fDelayOpt || pPars->fDsdBalance || pPars->fUserRecLib )
{
pNtkNew = Abc_NtkStrash( pTemp = pNtkNew, 0, 0, 0 );
Abc_NtkDelete( pTemp );
}
else if ( pPars->fBidec && pPars->nLutSize <= 8 )
Abc_NtkBidecResyn( pNtkNew, 0 ); Abc_NtkBidecResyn( pNtkNew, 0 );
// duplicate EXDC // duplicate EXDC
......
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