diff options
Diffstat (limited to 'src/base/main')
-rw-r--r-- | src/base/main/main.h | 2 | ||||
-rw-r--r-- | src/base/main/mainFrame.c | 4 | ||||
-rw-r--r-- | src/base/main/mainInt.h | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/src/base/main/main.h b/src/base/main/main.h index 2efb3358..f4ec90e2 100644 --- a/src/base/main/main.h +++ b/src/base/main/main.h @@ -127,6 +127,8 @@ extern ABC_DLL int Abc_FrameReadCexPiNum( Abc_Frame_t * p ); extern ABC_DLL int Abc_FrameReadCexRegNum( Abc_Frame_t * p ); extern ABC_DLL int Abc_FrameReadCexPo( Abc_Frame_t * p ); extern ABC_DLL int Abc_FrameReadCexFrame( Abc_Frame_t * p ); +extern ABC_DLL Vec_Ptr_t * Abc_FrameReadCexCiNames( Abc_Frame_t * p ); +extern ABC_DLL void Abc_FrameSetCexCiNames( Vec_Ptr_t * vNames ); extern ABC_DLL void Abc_FrameSetNtkStore( Abc_Ntk_t * pNtk ); extern ABC_DLL void Abc_FrameSetNtkStoreSize( int nStored ); diff --git a/src/base/main/mainFrame.c b/src/base/main/mainFrame.c index 1d54f4e4..71b21eb1 100644 --- a/src/base/main/mainFrame.c +++ b/src/base/main/mainFrame.c @@ -83,6 +83,9 @@ int Abc_FrameReadCexPiNum( Abc_Frame_t * p ) { return s_GlobalFr int Abc_FrameReadCexRegNum( Abc_Frame_t * p ) { return s_GlobalFrame->pCex->nRegs; } int Abc_FrameReadCexPo( Abc_Frame_t * p ) { return s_GlobalFrame->pCex->iPo; } int Abc_FrameReadCexFrame( Abc_Frame_t * p ) { return s_GlobalFrame->pCex->iFrame; } +Vec_Ptr_t * Abc_FrameReadCexCiNames( Abc_Frame_t * p ) { return s_GlobalFrame->vCiNamesStore; } +void Abc_FrameSetCexCiNames( Vec_Ptr_t * vNames ) { if ( s_GlobalFrame->vCiNamesStore ) Vec_PtrFreeFree(s_GlobalFrame->vCiNamesStore); s_GlobalFrame->vCiNamesStore = vNames; } + void Abc_FrameInputNdr( Abc_Frame_t * pAbc, void * pData ) { Ndr_Delete(s_GlobalFrame->pNdr); s_GlobalFrame->pNdr = pData; } void * Abc_FrameOutputNdr( Abc_Frame_t * pAbc ) { void * pData = s_GlobalFrame->pNdr; s_GlobalFrame->pNdr = NULL; return pData; } @@ -240,6 +243,7 @@ void Abc_FrameDeallocate( Abc_Frame_t * p ) Vec_WecFreeP( &s_GlobalFrame->vJsonObjs ); Ndr_Delete( s_GlobalFrame->pNdr ); ABC_FREE( s_GlobalFrame->pNdrArray ); + Vec_PtrFreeFree( s_GlobalFrame->vCiNamesStore ); Gia_ManStopP( &p->pGiaMiniAig ); Gia_ManStopP( &p->pGiaMiniLut ); diff --git a/src/base/main/mainInt.h b/src/base/main/mainInt.h index 7317c36f..b5a914e4 100644 --- a/src/base/main/mainInt.h +++ b/src/base/main/mainInt.h @@ -152,6 +152,7 @@ struct Abc_Frame_t_ int * pBoxes; void * pNdr; int * pNdrArray; + Vec_Ptr_t * vCiNamesStore; // storage for CI names Abc_Frame_Callback_BmcFrameDone_Func pFuncOnFrameDone; }; |