summaryrefslogtreecommitdiffstats
path: root/src/aig/gia
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2017-01-21 11:59:01 +0800
committerAlan Mishchenko <alanmi@berkeley.edu>2017-01-21 11:59:01 +0800
commita28be94ac79c0cbb0960565573985838d7a27a79 (patch)
treecc6e2bbb46d11246e1de579aded6f641114b7589 /src/aig/gia
parentb193ef056d2fb11d5e24b7e4f250e07d069c2ae2 (diff)
downloadabc-a28be94ac79c0cbb0960565573985838d7a27a79.tar.gz
abc-a28be94ac79c0cbb0960565573985838d7a27a79.tar.bz2
abc-a28be94ac79c0cbb0960565573985838d7a27a79.zip
Small fixes and a change to &cec to allow two files names given as command-line arguments.
Diffstat (limited to 'src/aig/gia')
-rw-r--r--src/aig/gia/giaIf.c16
-rw-r--r--src/aig/gia/giaTim.c2
2 files changed, 10 insertions, 8 deletions
diff --git a/src/aig/gia/giaIf.c b/src/aig/gia/giaIf.c
index ac748f8c..ab80a762 100644
--- a/src/aig/gia/giaIf.c
+++ b/src/aig/gia/giaIf.c
@@ -544,20 +544,20 @@ void Gia_ManPrintMappingStats( Gia_Man_t * p, char * pDumpFile )
fprintf( pTable, "%d ", Gia_ManAndNum(p) );
fprintf( pTable, "%d ", nLuts );
fprintf( pTable, "%d ", Gia_ManLutLevelWithBoxes(p) );
- fprintf( pTable, "%d ", Gia_ManRegBoxNum(p) );
- fprintf( pTable, "%d ", Gia_ManNonRegBoxNum(p) );
- fprintf( pTable, "%.2f", 1.0*(Abc_Clock() - clk)/CLOCKS_PER_SEC );
+ //fprintf( pTable, "%d ", Gia_ManRegBoxNum(p) );
+ //fprintf( pTable, "%d ", Gia_ManNonRegBoxNum(p) );
+ //fprintf( pTable, "%.2f", 1.0*(Abc_Clock() - clk)/CLOCKS_PER_SEC );
clk = Abc_Clock();
}
else
{
- printf( "This part of the code is currently not used.\n" );
- assert( 0 );
+ //printf( "This part of the code is currently not used.\n" );
+ //assert( 0 );
fprintf( pTable, " " );
fprintf( pTable, "%d ", nLuts );
- fprintf( pTable, "%d ", LevelMax );
- fprintf( pTable, "%d ", Gia_ManRegBoxNum(p) );
- fprintf( pTable, "%d ", Gia_ManNonRegBoxNum(p) );
+ fprintf( pTable, "%d ", Gia_ManLutLevelWithBoxes(p) );
+ //fprintf( pTable, "%d ", Gia_ManRegBoxNum(p) );
+ //fprintf( pTable, "%d ", Gia_ManNonRegBoxNum(p) );
fprintf( pTable, "%.2f", 1.0*(Abc_Clock() - clk)/CLOCKS_PER_SEC );
clk = Abc_Clock();
}
diff --git a/src/aig/gia/giaTim.c b/src/aig/gia/giaTim.c
index 71b9a475..29aa93f8 100644
--- a/src/aig/gia/giaTim.c
+++ b/src/aig/gia/giaTim.c
@@ -584,6 +584,8 @@ int Gia_ManLutLevelWithBoxes( Gia_Man_t * p )
Gia_Obj_t * pObj, * pObjIn;
int i, k, j, curCi, curCo, LevelMax;
assert( Gia_ManRegNum(p) == 0 );
+ if ( pManTime == NULL )
+ return Gia_ManLutLevel(p, NULL);
// copy const and real PIs
Gia_ManCleanLevels( p, Gia_ManObjNum(p) );
Gia_ObjSetLevel( p, Gia_ManConst0(p), 0 );