From 7592aa8a3e4bce6a28fddeea87e90cd3f2fb02a6 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Tue, 21 Oct 2014 10:51:41 -0700 Subject: Adding commands backup/restore. --- src/base/main/mainFrame.c | 1 + src/base/main/mainInt.h | 1 + 2 files changed, 2 insertions(+) (limited to 'src/base/main') 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 -- cgit v1.2.3