diff options
Diffstat (limited to 'src/opt/rwr/rwrLib.c')
-rw-r--r-- | src/opt/rwr/rwrLib.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/opt/rwr/rwrLib.c b/src/opt/rwr/rwrLib.c index 1cdf350e..731871d0 100644 --- a/src/opt/rwr/rwrLib.c +++ b/src/opt/rwr/rwrLib.c @@ -20,6 +20,9 @@ #include "rwr.h" +ABC_NAMESPACE_IMPL_START + + //////////////////////////////////////////////////////////////////////// /// DECLARATIONS /// //////////////////////////////////////////////////////////////////////// @@ -49,8 +52,8 @@ void Rwr_ManPrecompute( Rwr_Man_t * p ) int LevelOld = -1; int nNodes; - Vec_PtrForEachEntryStart( p->vForest, p0, i, 1 ) - Vec_PtrForEachEntryStart( p->vForest, p1, k, 1 ) + Vec_PtrForEachEntryStart( Rwr_Node_t *, p->vForest, p0, i, 1 ) + Vec_PtrForEachEntryStart( Rwr_Node_t *, p->vForest, p1, k, 1 ) { if ( LevelOld < (int)p0->Level ) { @@ -99,7 +102,7 @@ save : Rwr_ManIncTravId( p ); k = 5; nNodes = 0; - Vec_PtrForEachEntryStart( p->vForest, p0, i, 5 ) + Vec_PtrForEachEntryStart( Rwr_Node_t *, p->vForest, p0, i, 5 ) if ( p0->uTruth == p->puCanons[p0->uTruth] ) { Rwr_MarkUsed_rec( p, p0 ); @@ -108,7 +111,7 @@ save : // compact the array by throwing away non-canonical k = 5; - Vec_PtrForEachEntryStart( p->vForest, p0, i, 5 ) + Vec_PtrForEachEntryStart( Rwr_Node_t *, p->vForest, p0, i, 5 ) if ( p0->fUsed ) { p->vForest->pArray[k] = p0; @@ -350,7 +353,7 @@ void Rwr_ManIncTravId( Rwr_Man_t * p ) int i; if ( p->nTravIds++ < 0x8FFFFFFF ) return; - Vec_PtrForEachEntry( p->vForest, pNode, i ) + Vec_PtrForEachEntry( Rwr_Node_t *, p->vForest, pNode, i ) pNode->TravId = 0; p->nTravIds = 1; } @@ -360,3 +363,5 @@ void Rwr_ManIncTravId( Rwr_Man_t * p ) //////////////////////////////////////////////////////////////////////// +ABC_NAMESPACE_IMPL_END + |