summaryrefslogtreecommitdiffstats
path: root/src/aig
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2015-06-22 23:05:06 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2015-06-22 23:05:06 -0700
commit4d1bc4a268ad0be95818c718eae82e0be5c9057c (patch)
tree69f26241fe2798f994afa02befdbc298eccdea6a /src/aig
parentb288bac6b3567c0eccde1cb3ed1b6f7eff1d6408 (diff)
downloadabc-4d1bc4a268ad0be95818c718eae82e0be5c9057c.tar.gz
abc-4d1bc4a268ad0be95818c718eae82e0be5c9057c.tar.bz2
abc-4d1bc4a268ad0be95818c718eae82e0be5c9057c.zip
Version abc90809
committer: Baruch Sterin <baruchs@gmail.com>
Diffstat (limited to 'src/aig')
-rw-r--r--src/aig/cec/cecCorr.c9
-rw-r--r--src/aig/dar/darScript.c8
2 files changed, 13 insertions, 4 deletions
diff --git a/src/aig/cec/cecCorr.c b/src/aig/cec/cecCorr.c
index 27a7dd36..52d2b80e 100644
--- a/src/aig/cec/cecCorr.c
+++ b/src/aig/cec/cecCorr.c
@@ -1007,20 +1007,21 @@ void Cec_ManPrintFlopEquivs( Gia_Man_t * p )
Gia_ManForEachRo( p, pObj, i )
{
if ( Gia_ObjIsConst(p, Gia_ObjId(p, pObj)) )
- printf( "Flop \"%s\" is equivalent to constant 0.\n", Vec_PtrEntry(p->vNamesIn, Gia_ObjCioId(pObj)) );
+ printf( "Original flop %s is proved equivalent to constant.\n", Vec_PtrEntry(p->vNamesIn, Gia_ObjCioId(pObj)) );
else if ( (pRepr = Gia_ObjReprObj(p, Gia_ObjId(p, pObj))) )
{
if ( Gia_ObjIsCi(pRepr) )
- printf( "Flop \"%s\" is equivalent to flop \"%s\".\n",
- Vec_PtrEntry( p->vNamesIn, Gia_ObjCioId(pObj) ),
+ printf( "Original flop %s is proved equivalent to flop %s.\n",
+ Vec_PtrEntry( p->vNamesIn, Gia_ObjCioId(pObj) ),
Vec_PtrEntry( p->vNamesIn, Gia_ObjCioId(pRepr) ) );
else
- printf( "Flop \"%s\" is equivalent to internal node %d.\n",
+ printf( "Original flop %s is proved equivalent to internal node %d.\n",
Vec_PtrEntry( p->vNamesIn, Gia_ObjCioId(pObj) ), Gia_ObjId(p, pRepr) );
}
}
}
+
/**Function*************************************************************
Synopsis [Top-level procedure for register correspondence.]
diff --git a/src/aig/dar/darScript.c b/src/aig/dar/darScript.c
index 0209165a..20f3e14a 100644
--- a/src/aig/dar/darScript.c
+++ b/src/aig/dar/darScript.c
@@ -261,7 +261,11 @@ Aig_Man_t * Dar_ManCompress2( Aig_Man_t * pAig, int fBalance, int fUpdateLevel,
}
*/
// rewrite
+// Dar_ManRewrite( pAig, pParsRwr );
+ pParsRwr->fUpdateLevel = 0; // disable level update
Dar_ManRewrite( pAig, pParsRwr );
+ pParsRwr->fUpdateLevel = fUpdateLevel; // reenable level update if needed
+
pAig = Aig_ManDupDfs( pTemp = pAig );
Aig_ManStop( pTemp );
if ( fVerbose ) Aig_ManPrintStats( pAig );
@@ -601,7 +605,11 @@ Aig_Man_t * Dar_NewCompress2( Aig_Man_t * pAig, int fBalance, int fUpdateLevel,
if ( !fLightSynth )
{
// rewrite
+ //Dar_ManRewrite( pAig, pParsRwr );
+ pParsRwr->fUpdateLevel = 0; // disable level update
Dar_ManRewrite( pAig, pParsRwr );
+ pParsRwr->fUpdateLevel = fUpdateLevel; // reenable level update if needed
+
pAig = Aig_ManDupDfs( pTemp = pAig );
Aig_ManStop( pTemp );
if ( fVerbose ) Aig_ManPrintStats( pAig );