From 8eef7f8326e715ea4e9e84f46487cf4657601c25 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Mon, 20 Feb 2006 08:01:00 -0800 Subject: Version abc60220 --- src/opt/rwr/rwrEva.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/opt/rwr/rwrEva.c') diff --git a/src/opt/rwr/rwrEva.c b/src/opt/rwr/rwrEva.c index 3f3163f1..71d0b24d 100644 --- a/src/opt/rwr/rwrEva.c +++ b/src/opt/rwr/rwrEva.c @@ -66,7 +66,7 @@ int Rwr_NodeRewrite( Rwr_Man_t * p, Cut_Man_t * pManCut, Abc_Obj_t * pNode, int Required = fUpdateLevel? Abc_NodeReadRequiredLevel(pNode) : ABC_INFINITY; // get the node's cuts clk = clock(); - pCut = (Cut_Cut_t *)Abc_NodeGetCutsRecursive( pManCut, pNode ); + pCut = (Cut_Cut_t *)Abc_NodeGetCutsRecursive( pManCut, pNode, 0 ); assert( pCut != NULL ); p->timeCut += clock() - clk; @@ -140,8 +140,9 @@ p->timeRes += clock() - clk; Dec_GraphNode(p->pGraph, i)->pFunc = pFanin; p->nScores[p->pMap[uTruthBest]]++; - p->nNodesRewritten++; p->nNodesGained += GainBest; + if ( fUseZeros || GainBest > 0 ) + p->nNodesRewritten++; // report the progress if ( fVeryVerbose ) -- cgit v1.2.3