summaryrefslogtreecommitdiffstats
path: root/src/aig/gia/giaMan.c
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2012-07-20 18:56:26 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2012-07-20 18:56:26 -0700
commit6df122bda6a48ab61a27989b73027d617e0db626 (patch)
tree58be86f8bb5453efdc71562a3786b85780565852 /src/aig/gia/giaMan.c
parent6c9b59bfc06d3ae8e9d3b40cc4dd4bb401eb2084 (diff)
downloadabc-6df122bda6a48ab61a27989b73027d617e0db626.tar.gz
abc-6df122bda6a48ab61a27989b73027d617e0db626.tar.bz2
abc-6df122bda6a48ab61a27989b73027d617e0db626.zip
Updated code for lazy man's synthesis (memory optimization).
Diffstat (limited to 'src/aig/gia/giaMan.c')
-rw-r--r--src/aig/gia/giaMan.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/aig/gia/giaMan.c b/src/aig/gia/giaMan.c
index 31f03d80..b8a8afb8 100644
--- a/src/aig/gia/giaMan.c
+++ b/src/aig/gia/giaMan.c
@@ -52,8 +52,8 @@ Gia_Man_t * Gia_ManStart( int nObjsMax )
p->pObjs = ABC_CALLOC( Gia_Obj_t, nObjsMax );
p->pObjs->iDiff0 = p->pObjs->iDiff1 = GIA_NONE;
p->nObjs = 1;
- p->vCis = Vec_IntAlloc( nObjsMax / 10 );
- p->vCos = Vec_IntAlloc( nObjsMax / 10 );
+ p->vCis = Vec_IntAlloc( nObjsMax / 20 );
+ p->vCos = Vec_IntAlloc( nObjsMax / 20 );
return p;
}
@@ -414,10 +414,10 @@ void Gia_ManPrintStats( Gia_Man_t * p, int fTents, int fSwitch )
if ( Gia_ManRegNum(p) )
printf( " ff =%7d", Gia_ManRegNum(p) );
printf( " and =%8d", Gia_ManAndNum(p) );
- printf( " lev =%5d", Gia_ManLevelNum(p) );
+ printf( " lev =%5d", Gia_ManLevelNum(p) ); Vec_IntFreeP( &p->vLevels );
printf( " cut =%5d", Gia_ManCrossCut(p) );
- printf( " mem =%5.2f MB", 1.0*(sizeof(Gia_Obj_t)*p->nObjs + sizeof(int)*(Vec_IntSize(p->vCis) + Vec_IntSize(p->vCos)))/(1<<20) );
-// printf( " mem =%5.2f MB", 1.0*(sizeof(Gia_Obj_t)*p->nObjsAlloc + sizeof(int)*(Vec_IntCap(p->vCis) + Vec_IntCap(p->vCos)))/(1<<20) );
+// printf( " mem =%5.2f MB", 1.0*(sizeof(Gia_Obj_t)*p->nObjs + sizeof(int)*(Vec_IntSize(p->vCis) + Vec_IntSize(p->vCos)))/(1<<20) );
+ printf( " mem =%5.2f MB", 1.0*(sizeof(Gia_Obj_t)*p->nObjsAlloc + sizeof(int)*(Vec_IntCap(p->vCis) + Vec_IntCap(p->vCos)))/(1<<20) );
if ( Gia_ManHasDangling(p) )
printf( " ch =%5d", Gia_ManEquivCountClasses(p) );
if ( fSwitch )