summaryrefslogtreecommitdiffstats
path: root/src/base/main
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2014-10-21 10:51:41 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2014-10-21 10:51:41 -0700
commit7592aa8a3e4bce6a28fddeea87e90cd3f2fb02a6 (patch)
tree4744f12a5db70912d64790bb85a7eea273b5521f /src/base/main
parent83bc1148a2c0a96e60de7d65f85f3edce9029254 (diff)
downloadabc-7592aa8a3e4bce6a28fddeea87e90cd3f2fb02a6.tar.gz
abc-7592aa8a3e4bce6a28fddeea87e90cd3f2fb02a6.tar.bz2
abc-7592aa8a3e4bce6a28fddeea87e90cd3f2fb02a6.zip
Adding commands backup/restore.
Diffstat (limited to 'src/base/main')
-rw-r--r--src/base/main/mainFrame.c1
-rw-r--r--src/base/main/mainInt.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/base/main/mainFrame.c b/src/base/main/mainFrame.c
index 06159427..42a1da81 100644
--- a/src/base/main/mainFrame.c
+++ b/src/base/main/mainFrame.c
@@ -198,6 +198,7 @@ void Abc_FrameDeallocate( Abc_Frame_t * p )
if ( p->pSave4 ) Aig_ManStop( (Aig_Man_t *)p->pSave4 );
if ( p->pManDsd ) If_DsdManFree( (If_DsdMan_t *)p->pManDsd, 0 );
if ( p->pManDsd2 ) If_DsdManFree( (If_DsdMan_t *)p->pManDsd2, 0 );
+ if ( p->pNtkBackup) Abc_NtkDelete( p->pNtkBackup );
if ( p->vPlugInComBinPairs )
{
char * pTemp;
diff --git a/src/base/main/mainInt.h b/src/base/main/mainInt.h
index 9d67b2d7..8bccc632 100644
--- a/src/base/main/mainInt.h
+++ b/src/base/main/mainInt.h
@@ -68,6 +68,7 @@ struct Abc_Frame_t_
Abc_Ntk_t * pNtkCur; // the current network
Abc_Ntk_t * pNtkBestDelay; // the current network
Abc_Ntk_t * pNtkBestArea; // the current network
+ Abc_Ntk_t * pNtkBackup; // the current network
int nSteps; // the counter of different network processed
int fSource; // marks the source mode
int fAutoexac; // marks the autoexec mode