Merge pull request #66 from FPGeh/fix-and2delay

&sweep and &mfs to preserve nAnd2Delay
This commit is contained in:
alanminko 2020-03-01 17:53:13 -08:00 committed by GitHub
commit e87869b737
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -470,6 +470,7 @@ Gia_Man_t * Gia_ManInsertMfs( Gia_Man_t * p, Sfm_Ntk_t * pNtk, int fAllBoxes )
// duplicated initial state
if ( p->vRegInits )
pNew->vRegInits = Vec_IntDup( p->vRegInits );
pNew->nAnd2Delay = p->nAnd2Delay;
// cleanup
Vec_WecFree( vGroups );

View File

@ -203,6 +203,7 @@ Gia_Man_t * Gia_ManDupWithBoxes( Gia_Man_t * p, int fSeq )
pNew->pAigExtra = Gia_ManUpdateExtraAig2( p->pManTime, p->pAigExtra, vBoxesLeft );
assert( Gia_ManCiNum(pNew) == Tim_ManPiNum((Tim_Man_t*)pNew->pManTime) + Gia_ManCoNum(pNew->pAigExtra) );
Vec_IntFree( vBoxesLeft );
pNew->nAnd2Delay = p->nAnd2Delay;
return pNew;
}