diff options
Diffstat (limited to 'src/aig/ntl')
-rw-r--r-- | src/aig/ntl/ntlFraig.c | 8 | ||||
-rw-r--r-- | src/aig/ntl/ntlWriteBlif.c | 4 |
2 files changed, 10 insertions, 2 deletions
diff --git a/src/aig/ntl/ntlFraig.c b/src/aig/ntl/ntlFraig.c index 1f6a28ef..0a991fff 100644 --- a/src/aig/ntl/ntlFraig.c +++ b/src/aig/ntl/ntlFraig.c @@ -97,8 +97,12 @@ void Ntl_ManUpdateNoMergeReprs( Aig_Man_t * pAig, Aig_Obj_t ** pReprs ) continue; } // remap the representative - assert( pObj->Id > pRepresNew->Id ); - pReprs[ pObj->Id ] = pRepresNew; +// assert( pObj->Id > pRepresNew->Id ); +// pReprs[ pObj->Id ] = pRepresNew; + if ( pObj->Id > pRepresNew->Id ) + pReprs[ pObj->Id ] = pRepresNew; + else + pReprs[ pObj->Id ] = NULL; } free( pReprsNew ); } diff --git a/src/aig/ntl/ntlWriteBlif.c b/src/aig/ntl/ntlWriteBlif.c index 9c8d55ae..6b7f0996 100644 --- a/src/aig/ntl/ntlWriteBlif.c +++ b/src/aig/ntl/ntlWriteBlif.c @@ -316,6 +316,8 @@ void Ioa_WriteBlifModelGz( gzFile pFile, Ntl_Mod_t * pModel, int fMain ) // gzprintf( pFile, " %s", pModel->attrKeep? "keep" : "sweep" ); gzprintf( pFile, "\n" ); } + if ( pModel->attrNoMerge ) + gzprintf( pFile, ".no_merge\n" ); gzprintf( pFile, ".inputs" ); Ntl_ModelForEachPi( pModel, pObj, i ) gzprintf( pFile, " %s", Ntl_ObjFanout0(pObj)->pName ); @@ -491,6 +493,8 @@ void Ioa_WriteBlifModelBz2( bz2file * b, Ntl_Mod_t * pModel, int fMain ) // fprintfBz2( b, " %s", pModel->attrKeep? "keep" : "sweep" ); fprintfBz2( b, "\n" ); } + if ( pModel->attrNoMerge ) + fprintfBz2( b, ".no_merge\n" ); fprintfBz2( b, ".inputs" ); Ntl_ModelForEachPi( pModel, pObj, i ) fprintfBz2( b, " %s", Ntl_ObjFanout0(pObj)->pName ); |