Skip to content

Commit

Permalink
Merge pull request #317 from YosysHQ/povik/fix-transfer-timing
Browse files Browse the repository at this point in the history
Handle edge case in Gia_ManTransferTiming
  • Loading branch information
alanminko authored Aug 8, 2024
2 parents 0129b4c + afbeccb commit dce6e48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/aig/gia/giaIf.c
Original file line number Diff line number Diff line change
Expand Up @@ -2310,6 +2310,8 @@ void Gia_ManTransferPacking( Gia_Man_t * p, Gia_Man_t * pGia )
}
void Gia_ManTransferTiming( Gia_Man_t * p, Gia_Man_t * pGia )
{
if ( p == pGia )
return;
if ( pGia->vCiArrs || pGia->vCoReqs || pGia->vCoArrs || pGia->vCoAttrs )
{
p->vCiArrs = pGia->vCiArrs; pGia->vCiArrs = NULL;
Expand Down Expand Up @@ -2337,7 +2339,7 @@ void Gia_ManTransferTiming( Gia_Man_t * p, Gia_Man_t * pGia )
p->vConfigs = pGia->vConfigs; pGia->vConfigs = NULL;
p->pCellStr = pGia->pCellStr; pGia->pCellStr = NULL;
}
if ( pGia->pManTime == NULL || p == pGia )
if ( pGia->pManTime == NULL )
return;
p->pManTime = pGia->pManTime; pGia->pManTime = NULL;
p->pAigExtra = pGia->pAigExtra; pGia->pAigExtra = NULL;
Expand Down

0 comments on commit dce6e48

Please sign in to comment.