summaryrefslogtreecommitdiffstats
path: root/src/aig/gia/giaAbsGla2.c
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2012-08-03 21:44:00 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2012-08-03 21:44:00 -0700
commita01b479013e702050c2be0ccce1435fac8ed0e99 (patch)
tree60b3eef4cbe92e5f9ee269cf32b1572cba1c8c4a /src/aig/gia/giaAbsGla2.c
parent5760c3225d892ae724e3a26a12ff376f8de7a4f6 (diff)
downloadabc-a01b479013e702050c2be0ccce1435fac8ed0e99.tar.gz
abc-a01b479013e702050c2be0ccce1435fac8ed0e99.tar.bz2
abc-a01b479013e702050c2be0ccce1435fac8ed0e99.zip
Scalable gate-level abstraction.
Diffstat (limited to 'src/aig/gia/giaAbsGla2.c')
-rw-r--r--src/aig/gia/giaAbsGla2.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/aig/gia/giaAbsGla2.c b/src/aig/gia/giaAbsGla2.c
index 1476e704..85f0c00d 100644
--- a/src/aig/gia/giaAbsGla2.c
+++ b/src/aig/gia/giaAbsGla2.c
@@ -1549,8 +1549,8 @@ int Ga2_ManPerform( Gia_Man_t * pAig, Gia_ParVta_t * pPars )
continue;
assert( Lit > 1 );
// check for counter-examples
-// if ( p->nSatVars > sat_solver2_nvars(p->pSat) )
-// sat_solver2_setnvars( p->pSat, p->nSatVars );
+ if ( p->nSatVars > sat_solver2_nvars(p->pSat) )
+ sat_solver2_setnvars( p->pSat, p->nSatVars );
nVarsOld = p->nSatVars;
for ( c = 0; ; c++ )
{
@@ -1666,9 +1666,9 @@ int Ga2_ManPerform( Gia_Man_t * pAig, Gia_ParVta_t * pPars )
// if abstraction grew more than a certain percentage, force a restart
if ( pPars->nRatioMax == 0 )
break;
- if ( Vec_IntSize(p->vAbs) - nAbsOld >= nAbsOld * pPars->nRatioMax / 100 )
+ if ( (f > 20 || Vec_IntSize(p->vAbs) > 100) && Vec_IntSize(p->vAbs) - nAbsOld >= nAbsOld * pPars->nRatioMax / 100 )
{
- if ( p->pPars->fVeryVerbose )
+ if ( p->pPars->fVerbose )
Abc_Print( 1, "Forcing restart because abstraction grew from %d to %d (more than %d %%).\n",
nAbsOld, Vec_IntSize(p->vAbs), pPars->nRatioMax );
break;
@@ -1685,7 +1685,7 @@ int Ga2_ManPerform( Gia_Man_t * pAig, Gia_ParVta_t * pPars )
}
finish:
Prf_ManStopP( &p->pSat->pPrf2 );
- if ( p->pPars->fVeryVerbose )
+ if ( p->pPars->fVerbose )
Abc_Print( 1, "\n" );
// analize the results
if ( pAig->pCexSeq == NULL )