summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2012-04-27 07:46:02 +0700
committerAlan Mishchenko <alanmi@berkeley.edu>2012-04-27 07:46:02 +0700
commit5f5dda903080fed09f109655ae6b622a1f503d09 (patch)
tree18fed0dc0050713382dd07b74026e197eb407663 /src
parent92da248e9a1400280d0e4674923e0f572465530d (diff)
downloadabc-5f5dda903080fed09f109655ae6b622a1f503d09.tar.gz
abc-5f5dda903080fed09f109655ae6b622a1f503d09.tar.bz2
abc-5f5dda903080fed09f109655ae6b622a1f503d09.zip
Updating the counter of finished frames when dumping intermediate abstraction in &vta.
Diffstat (limited to 'src')
-rw-r--r--src/aig/gia/giaAbsVta.c3
-rw-r--r--src/base/main/main.h1
-rw-r--r--src/base/main/mainFrame.c9
3 files changed, 9 insertions, 4 deletions
diff --git a/src/aig/gia/giaAbsVta.c b/src/aig/gia/giaAbsVta.c
index b2431ecf..60ef85ad 100644
--- a/src/aig/gia/giaAbsVta.c
+++ b/src/aig/gia/giaAbsVta.c
@@ -1607,7 +1607,10 @@ int Gia_VtaPerformInt( Gia_Man_t * pAig, Gia_ParVta_t * pPars )
}
// dump the model
if ( p->pPars->fDumpVabs && (f & 1) )
+ {
+ Abc_FrameSetNFrames( f );
Gia_VtaDumpAbsracted( p, pPars->fVerbose );
+ }
// check if the number of objects is below limit
if ( p->nSeenGla >= Gia_ManCandNum(pAig) * (100-pPars->nRatioMin) / 100 )
{
diff --git a/src/base/main/main.h b/src/base/main/main.h
index 5d777b23..611d9593 100644
--- a/src/base/main/main.h
+++ b/src/base/main/main.h
@@ -127,6 +127,7 @@ extern ABC_DLL void Abc_FrameSetLibSuper( void * pLib );
extern ABC_DLL void Abc_FrameSetLibVer( void * pLib );
extern ABC_DLL void Abc_FrameSetFlag( char * pFlag, char * pValue );
extern ABC_DLL void Abc_FrameSetCex( Abc_Cex_t * pCex );
+extern ABC_DLL void Abc_FrameSetNFrames( int nFrames );
diff --git a/src/base/main/mainFrame.c b/src/base/main/mainFrame.c
index 5d21543b..50edb858 100644
--- a/src/base/main/mainFrame.c
+++ b/src/base/main/mainFrame.c
@@ -75,11 +75,12 @@ void Abc_FrameSetLibGen( void * pLib ) { s_GlobalFrame->pL
void Abc_FrameSetLibGen2( void * pLib ) { s_GlobalFrame->pLibGen2 = pLib; }
void Abc_FrameSetLibSuper( void * pLib ) { s_GlobalFrame->pLibSuper = pLib; }
void Abc_FrameSetLibVer( void * pLib ) { s_GlobalFrame->pLibVer = pLib; }
-void Abc_FrameSetFlag( char * pFlag, char * pValue ) { Cmd_FlagUpdateValue( s_GlobalFrame, pFlag, pValue ); }
-void Abc_FrameSetCex( Abc_Cex_t * pCex ) { ABC_FREE( s_GlobalFrame->pCex ); s_GlobalFrame->pCex = pCex; }
+void Abc_FrameSetFlag( char * pFlag, char * pValue ) { Cmd_FlagUpdateValue( s_GlobalFrame, pFlag, pValue ); }
+void Abc_FrameSetCex( Abc_Cex_t * pCex ) { ABC_FREE( s_GlobalFrame->pCex ); s_GlobalFrame->pCex = pCex; }
+void Abc_FrameSetNFrames( int nFrames ) { ABC_FREE( s_GlobalFrame->pCex ); s_GlobalFrame->nFrames = nFrames; }
-int Abc_FrameIsBridgeMode() { return s_GlobalFrame ? s_GlobalFrame->fBridgeMode : 0; }
-void Abc_FrameSetBridgeMode() { if ( s_GlobalFrame ) s_GlobalFrame->fBridgeMode = 1; }
+int Abc_FrameIsBridgeMode() { return s_GlobalFrame ? s_GlobalFrame->fBridgeMode : 0; }
+void Abc_FrameSetBridgeMode() { if ( s_GlobalFrame ) s_GlobalFrame->fBridgeMode = 1; }
/**Function*************************************************************