diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2013-05-05 09:04:14 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2013-05-05 09:04:14 -0700 |
commit | eacfad762271794965d428cacd1ce56fbc575f93 (patch) | |
tree | d4f004b991b412bce177d4637a8322bd26a1f9cd /src/map/scl/sclMan.h | |
parent | 7d3301584a82b06e9c6a887e02554bc6a14bec5e (diff) | |
download | abc-eacfad762271794965d428cacd1ce56fbc575f93.tar.gz abc-eacfad762271794965d428cacd1ce56fbc575f93.tar.bz2 abc-eacfad762271794965d428cacd1ce56fbc575f93.zip |
Changing the queue to work in the same the array of costs is realloced.
Diffstat (limited to 'src/map/scl/sclMan.h')
-rw-r--r-- | src/map/scl/sclMan.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/scl/sclMan.h b/src/map/scl/sclMan.h index 3a2daff7..ebd14d6f 100644 --- a/src/map/scl/sclMan.h +++ b/src/map/scl/sclMan.h @@ -152,7 +152,7 @@ static inline SC_Man * Abc_SclManAlloc( SC_Lib * pLib, Abc_Ntk_t * pNtk ) p->pSlack = ABC_FALLOC( float, p->nObjs ); p->vTimesOut = Vec_FltStart( Abc_NtkCoNum(pNtk) ); p->vQue = Vec_QueAlloc( Abc_NtkCoNum(pNtk) ); - Vec_QueSetCosts( p->vQue, Vec_FltArray(p->vTimesOut) ); + Vec_QueSetCosts( p->vQue, Vec_FltArrayP(p->vTimesOut) ); for ( i = 0; i < Abc_NtkCoNum(pNtk); i++ ) Vec_QuePush( p->vQue, i ); p->vUpdates = Vec_IntAlloc( 1000 ); @@ -160,7 +160,7 @@ static inline SC_Man * Abc_SclManAlloc( SC_Lib * pLib, Abc_Ntk_t * pNtk ) p->vNode2Gain = Vec_FltStart( p->nObjs ); p->vNode2Gate = Vec_IntStart( p->nObjs ); p->vNodeByGain = Vec_QueAlloc( p->nObjs ); - Vec_QueSetCosts( p->vNodeByGain, Vec_FltArray(p->vNode2Gain) ); + Vec_QueSetCosts( p->vNodeByGain, Vec_FltArrayP(p->vNode2Gain) ); p->vNodeIter = Vec_IntStartFull( p->nObjs ); return p; } |