diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2014-10-21 21:48:53 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2014-10-21 21:48:53 -0700 |
commit | 51bf12107397b25a79b0c7b593bd3bf74e68e021 (patch) | |
tree | 49116b35a4f1b27b8e0bb02f99860918a8a7b4a0 /src/aig/gia/giaEnable.c | |
parent | d2e42ec081c1783b0e7901749f5496eb2c726f4d (diff) | |
download | abc-51bf12107397b25a79b0c7b593bd3bf74e68e021.tar.gz abc-51bf12107397b25a79b0c7b593bd3bf74e68e021.tar.bz2 abc-51bf12107397b25a79b0c7b593bd3bf74e68e021.zip |
Bug fix in seq synthesis due to resent code restructuring.
Diffstat (limited to 'src/aig/gia/giaEnable.c')
-rw-r--r-- | src/aig/gia/giaEnable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/aig/gia/giaEnable.c b/src/aig/gia/giaEnable.c index 03d1a390..b7d0616d 100644 --- a/src/aig/gia/giaEnable.c +++ b/src/aig/gia/giaEnable.c @@ -362,7 +362,7 @@ Gia_Man_t * Gia_ManUnrollInit( Gia_Man_t * p, int nFrames ) Gia_Man_t * pNew; Gia_Obj_t * pObj, * pObjRi, * pObjRo; int f, i; - Vec_IntFill( &p->vCopies, -1, nFrames * Gia_ManObjNum(p) ); + Vec_IntFill( &p->vCopies, nFrames * Gia_ManObjNum(p), -1 ); pNew = Gia_ManStart( nFrames * Gia_ManObjNum(p) ); pNew->pName = Abc_UtilStrsav( p->pName ); pNew->pSpec = Abc_UtilStrsav( p->pSpec ); @@ -412,7 +412,7 @@ Gia_Man_t * Gia_ManUnrollAndCofactor( Gia_Man_t * p, int nFrames, int nFanMax, i vCofSigs = Gia_ManTransferFrames( p, pFrames, nFrames, pAig, vTemp = vCofSigs ); Vec_IntFree( vTemp ); Gia_ManStop( pFrames ); - ABC_FREE( p->vCopies.pArray ); + Vec_IntErase( &p->vCopies ); // cofactor all these variables pNew = Gia_ManDupCofAllInt( pAig, vCofSigs, fVerbose ); Vec_IntFree( vCofSigs ); |