diff options
| author | Alan Mishchenko <alanmi@berkeley.edu> | 2016-08-08 11:56:33 -0700 | 
|---|---|---|
| committer | Alan Mishchenko <alanmi@berkeley.edu> | 2016-08-08 11:56:33 -0700 | 
| commit | 473012aaf02542647444355fab38df1699765de5 (patch) | |
| tree | b83c69a9b7dfeb2330b0b33b2806224f1444404b /src | |
| parent | 95d2ab9c17e94daa1bc53a254f4533eac1e49b79 (diff) | |
| download | abc-473012aaf02542647444355fab38df1699765de5.tar.gz abc-473012aaf02542647444355fab38df1699765de5.tar.bz2 abc-473012aaf02542647444355fab38df1699765de5.zip | |
Enabled progress bar in the 'if' mapper.
Diffstat (limited to 'src')
| -rw-r--r-- | src/map/if/ifMap.c | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/src/map/if/ifMap.c b/src/map/if/ifMap.c index 76d3c757..f068c35d 100644 --- a/src/map/if/ifMap.c +++ b/src/map/if/ifMap.c @@ -19,7 +19,7 @@  ***********************************************************************/  #include "if.h" - +#include "misc/extra/extra.h"  ABC_NAMESPACE_IMPL_START @@ -537,7 +537,7 @@ void If_ObjPerformMappingChoice( If_Man_t * p, If_Obj_t * pObj, int Mode, int fP  ***********************************************************************/  int If_ManPerformMappingRound( If_Man_t * p, int nCutsUsed, int Mode, int fPreprocess, int fFirst, char * pLabel )  { -//    ProgressBar * pProgress; +    ProgressBar * pProgress;      If_Obj_t * pObj;      int i;      abctime clk = Abc_Clock(); @@ -590,16 +590,16 @@ int If_ManPerformMappingRound( If_Man_t * p, int nCutsUsed, int Mode, int fPrepr      }      else      { -    //    pProgress = Extra_ProgressBarStart( stdout, If_ManObjNum(p) ); +        pProgress = Extra_ProgressBarStart( stdout, If_ManObjNum(p) );          If_ManForEachNode( p, pObj, i )          { -    //        Extra_ProgressBarUpdate( pProgress, i, pLabel ); +            Extra_ProgressBarUpdate( pProgress, i, pLabel );              If_ObjPerformMappingAnd( p, pObj, Mode, fPreprocess, fFirst );              if ( pObj->fRepr )                  If_ObjPerformMappingChoice( p, pObj, Mode, fPreprocess );          }      } -//    Extra_ProgressBarStop( pProgress ); +    Extra_ProgressBarStop( pProgress );      // make sure the visit counters are all zero      If_ManForEachNode( p, pObj, i )          assert( pObj->nVisits == 0 ); | 
