64void *
Abc_FrameReadManDd() {
if ( s_GlobalFrame->dd == NULL ) s_GlobalFrame->dd = Cudd_Init( 0, 0, CUDD_UNIQUE_SLOTS, CUDD_CACHE_SLOTS, 0 );
return s_GlobalFrame->dd; }
107void Abc_FrameSetSignalNames(
Vec_Ptr_t * vNames ) {
if ( s_GlobalFrame->vSignalNames ) Vec_PtrFreeFree( s_GlobalFrame->vSignalNames ); s_GlobalFrame->vSignalNames = vNames; }
143 if ( pValue == NULL )
181 p->vStore = Vec_PtrAlloc( 16 );
182 p->vAbcObjIds = Vec_IntAlloc( 0 );
188 p->vPlugInComBinPairs = Vec_PtrAlloc( 100 );
213 if (
p->vAbcObjIds) Vec_IntFree(
p->vAbcObjIds );
214 if (
p->vCexVec ) Vec_PtrFreeFree(
p->vCexVec );
215 if (
p->vPoEquivs ) Vec_VecFree( (
Vec_Vec_t *)
p->vPoEquivs );
216 if (
p->vStatuses ) Vec_IntFree(
p->vStatuses );
221 if (
p->vStore ) Vec_PtrFree(
p->vStore );
229 if (
p->vPlugInComBinPairs )
235 Vec_PtrFree(
p->vPlugInComBinPairs );
237 Vec_IntFreeP( &
p->vIndFlops );
238 Vec_PtrFreeP( &
p->vLTLProperties_global );
239 if (
p->vSignalNames )
240 Vec_PtrFreeFree(
p->vSignalNames );
246 Vec_IntFreeP( &
p->pAbcWlcInv );
248 Vec_WecFreeP( &s_GlobalFrame->vJsonObjs );
249 Ndr_Delete( s_GlobalFrame->pNdr );
250 ABC_FREE( s_GlobalFrame->pNdrArray );
255 Vec_IntFreeP( &
p->vCopyMiniAig );
256 Vec_IntFreeP( &
p->vCopyMiniLut );
262 s_GlobalFrame = NULL;
396 if ( pValue == NULL )
399 fShortNames = atoi(pValue);
419 Buffer[0] =
'0' + fNameMode;
448 if (
p->pNtkCur == pNtkNew )
452 Abc_NtkSetBackup( pNtkNew,
p->pNtkCur );
454 Abc_NtkSetStep( pNtkNew, ++
p->nSteps );
456 p->pNtkCur = pNtkNew;
461 if ( pValue == NULL )
464 nNetsToSave = atoi(pValue);
468 pNtk2 = pNtk3 = NULL;
469 for ( pNtk =
p->pNtkCur; pNtk; pNtk = Abc_NtkBackup(pNtk2) )
477 if ( nNetsPresent - 1 > nNetsToSave )
481 Abc_NtkSetBackup( pNtk3, NULL );
498 Abc_Ntk_t * pNtkCur, * pNtkBack, * pNtkBack2;
499 int iStepCur, iStepBack;
501 pNtkCur =
p->pNtkCur;
502 pNtkBack = Abc_NtkBackup( pNtkCur );
503 iStepCur = Abc_NtkStep ( pNtkCur );
506 if ( pNtkBack == NULL )
510 pNtkBack2 = Abc_NtkBackup( pNtkBack );
511 iStepBack = Abc_NtkStep ( pNtkBack );
514 Abc_NtkSetBackup( pNtkCur, pNtkBack2 );
515 Abc_NtkSetStep ( pNtkCur, iStepBack );
518 Abc_NtkSetBackup( pNtkBack, pNtkCur );
519 Abc_NtkSetStep ( pNtkBack, iStepCur );
522 p->pNtkCur = pNtkBack;
543 if ( Abc_NtkPoNum(pNtk) == 0 )
544 Abc_Print( 0,
"The current network has no primary outputs. Some commands may not work correctly.\n" );
549 Abc_NtkSetBackup( pNtk, Abc_NtkBackup(
p->pNtkCur) );
550 Abc_NtkSetStep( pNtk, Abc_NtkStep(
p->pNtkCur) );
556 Abc_NtkSetBackup( pNtk, NULL );
557 Abc_NtkSetStep( pNtk, ++
p->nSteps );
580 for ( pNtk =
p->pNtkCur; pNtk; pNtk = Abc_NtkBackup(pNtk) )
581 if ( Abc_NtkHasMapping(pNtk) )
600 for ( pNtk =
p->pNtkCur,
601 pNtk2 = pNtk? Abc_NtkBackup(pNtk): NULL;
604 pNtk2 = pNtk? Abc_NtkBackup(pNtk): NULL )
645 if ( s_GlobalFrame == 0 )
652 return s_GlobalFrame;
668 return s_GlobalFrame;
685 if ( pFrame->pSave1 )
687 pFrame->pSave1 = pAig;
704 if ( pFrame->pSave2 )
706 pFrame->pSave2 = pAig;
737 if (
p->pNtkCur == NULL )
739 if ( !Abc_NtkIsStrash(
p->pNtkCur) )
741 if ( iPoNum < 0 || iPoNum >= Abc_NtkPoNum(
p->pNtkCur) )
743 pObj = Abc_NtkPo(
p->pNtkCur, iPoNum );
744 if ( !Abc_AigNodeIsConst(Abc_ObjFanin0(pObj)) )
746 return !Abc_ObjFaninC0(pObj);
struct Abc_Obj_t_ Abc_Obj_t
#define Abc_NtkForEachPo(pNtk, pPo, i)
ABC_DLL int Abc_NtkMapToSop(Abc_Ntk_t *pNtk)
struct Abc_Ntk_t_ Abc_Ntk_t
ABC_DLL void Abc_NtkDelete(Abc_Ntk_t *pNtk)
#define ABC_CALLOC(type, num)
#define ABC_NAMESPACE_IMPL_START
#define ABC_NAMESPACE_IMPL_END
typedefABC_NAMESPACE_HEADER_START struct Abc_Frame_t_ Abc_Frame_t
INCLUDES ///.
void Aig_ManStop(Aig_Man_t *p)
typedefABC_NAMESPACE_HEADER_START struct Aig_Man_t_ Aig_Man_t
INCLUDES ///.
ABC_DLL void * Abc_FrameReadManDd()
ABC_DLL int Abc_FrameIsFlagEnabled(char *pFlag)
typedefABC_NAMESPACE_IMPL_START struct Vec_Int_t_ Vec_Int_t
DECLARATIONS ///.
char * Cmd_FlagReadByName(Abc_Frame_t *pAbc, char *flag)
DECLARATIONS ///.
void Cmd_FlagUpdateValue(Abc_Frame_t *pAbc, const char *key, char *value)
void set_espresso_flags()
void undefine_cube_size()
void define_cube_size(int n)
struct Dec_Man_t_ Dec_Man_t
Dec_Man_t * Dec_ManStart()
DECLARATIONS ///.
void Dec_ManStop(Dec_Man_t *p)
void Gia_ManStopP(Gia_Man_t **p)
struct Gia_Man_t_ Gia_Man_t
struct If_DsdMan_t_ If_DsdMan_t
void If_DsdManFree(If_DsdMan_t *p, int fVerbose)
void * Abc_FrameReadLibGen()
void Abc_FrameInputNdr(Abc_Frame_t *pAbc, void *pData)
void Abc_FrameSetManDsd(void *pMan)
int Abc_FrameCheckPoConst(Abc_Frame_t *p, int iPoNum)
Vec_Int_t * Abc_FrameReadPoStatuses(Abc_Frame_t *p)
FILE * Abc_FrameReadErr(Abc_Frame_t *p)
Vec_Ptr_t * Abc_FrameReadStore()
FUNCTION DEFINITIONS ///.
void Abc_FrameSetStatus(int Status)
Vec_Wec_t * Abc_FrameReadJsonObjs(Abc_Frame_t *p)
void Abc_FrameClearVerifStatus(Abc_Frame_t *p)
void Abc_FrameSetLibSuper(void *pLib)
void Abc_FrameSetJsonStrs(Abc_Nam_t *pStrs)
int Abc_FrameReadBmcFrames(Abc_Frame_t *p)
void Abc_FrameUnmapAllNetworks(Abc_Frame_t *p)
void * Abc_FrameReadLibBox()
float Abc_FrameReadMaxLoad()
char * Abc_FrameReadFlag(char *pFlag)
Abc_Ntk_t * Abc_FrameReadNtk(Abc_Frame_t *p)
void Abc_FrameSetSave2(void *pAig)
Abc_Nam_t * Abc_FrameReadJsonStrs(Abc_Frame_t *p)
int Abc_FrameSetMode(Abc_Frame_t *p, int fNameMode)
FILE * Abc_FrameReadOut(Abc_Frame_t *p)
Vec_Ptr_t * Abc_FrameReadSignalNames()
Vec_Ptr_t * Abc_FrameReadCexVec(Abc_Frame_t *p)
void Abc_FrameSetSpecName(char *pFileName)
void Abc_FrameSetCex(Abc_Cex_t *pCex)
int * Abc_FrameReadBoxes(Abc_Frame_t *pAbc)
Vec_Int_t * Abc_FrameReadObjIds(Abc_Frame_t *p)
void * Abc_FrameReadManDsd2()
void Abc_FrameCheckPoConstTest(Abc_Frame_t *p)
void * Abc_FrameOutputNdr(Abc_Frame_t *pAbc)
Abc_Frame_t * Abc_FrameAllocate()
int Abc_FrameReadStoreSize()
void Abc_FrameSetGlobalFrame(Abc_Frame_t *p)
void * Abc_FrameReadSave1()
int Abc_FrameReadCexPo(Abc_Frame_t *p)
void * Abc_FrameReadLibGen2()
int Abc_FrameShowProgress(Abc_Frame_t *p)
void Abc_FrameSetLibGen2(void *pLib)
void Abc_FrameSetArrayMapping(int *p)
int * Abc_FrameReadArrayMapping(Abc_Frame_t *pAbc)
Abc_Frame_t * Abc_FrameGetGlobalFrame()
Gia_Man_t * Abc_FrameReadGia(Abc_Frame_t *p)
void * Abc_FrameReadLibScl()
void * Abc_FrameReadManDsd()
void Abc_FrameSetJsonObjs(Vec_Wec_t *vObjs)
Abc_Frame_t * Abc_FrameReadGlobalFrame()
void Abc_FrameSetBatchMode(int Mode)
void Abc_FrameSetNFrames(int nFrames)
void Abc_FrameSetSave1(void *pAig)
int Abc_FrameReadCexFrame(Abc_Frame_t *p)
int Abc_FrameIsBridgeMode()
int Abc_FrameReadMode(Abc_Frame_t *p)
void * Abc_FrameReadManDec()
void Abc_FrameSetDrivingCell(char *pName)
char * Abc_FrameReadDrivingCell()
void Abc_FrameSetCurrentNetwork(Abc_Frame_t *p, Abc_Ntk_t *pNtkNew)
void Abc_FrameSetLibGen(void *pLib)
int Abc_FrameIsBatchMode()
void * Abc_FrameReadSave2()
void * Abc_FrameReadLibSuper()
Vec_Int_t * Abc_FrameReadStatusVec(Abc_Frame_t *p)
int Abc_FrameIsFlagEnabled(char *pFlag)
void Abc_FrameSetManDsd2(void *pMan)
void Abc_FrameSetBridgeMode()
void Abc_FrameReplaceCurrentNetwork(Abc_Frame_t *p, Abc_Ntk_t *pNtk)
int * Abc_FrameOutputNdrArray(Abc_Frame_t *pAbc)
void Abc_FrameSetMaxLoad(float Load)
void Abc_FrameDeallocate(Abc_Frame_t *p)
void Abc_FrameRestart(Abc_Frame_t *p)
int Abc_FrameReadCexRegNum(Abc_Frame_t *p)
void Abc_FrameSetBoxes(int *p)
void Abc_FrameSetInv(Vec_Int_t *vInv)
void Abc_FrameSetFlag(char *pFlag, char *pValue)
void Abc_FrameSwapCurrentAndBackup(Abc_Frame_t *p)
void Abc_FrameSetLibLut(void *pLib)
void Abc_FrameDeleteAllNetworks(Abc_Frame_t *p)
int Abc_FrameReadProbStatus(Abc_Frame_t *p)
int Abc_FrameReadCexPiNum(Abc_Frame_t *p)
void Abc_FrameSetSignalNames(Vec_Ptr_t *vNames)
void Abc_FrameSetLibBox(void *pLib)
Vec_Ptr_t * Abc_FrameReadPoEquivs(Abc_Frame_t *p)
void * Abc_FrameReadCex(Abc_Frame_t *p)
char * Abc_FrameReadSpecName()
void * Abc_FrameReadLibLut()
void Abc_FrameInit(Abc_Frame_t *pAbc)
FUNCTION DEFINITIONS ///.
ABC_DLL char * Abc_UtilsGetVersion(Abc_Frame_t *pAbc)
FUNCTION DEFINITIONS ///.
ABC_DLL void Abc_FrameStoreStop(Abc_Frame_t *pAbc)
typedefABC_NAMESPACE_HEADER_START struct Abc_Cex_t_ Abc_Cex_t
INCLUDES ///.
void Abc_NamDeref(Abc_Nam_t *p)
typedefABC_NAMESPACE_HEADER_START struct Abc_Nam_t_ Abc_Nam_t
INCLUDES ///.
typedefABC_NAMESPACE_HEADER_START struct Vec_Ptr_t_ Vec_Ptr_t
INCLUDES ///.
#define Vec_PtrForEachEntry(Type, vVec, pEntry, i)
MACRO DEFINITIONS ///.
typedefABC_NAMESPACE_HEADER_START struct Vec_Vec_t_ Vec_Vec_t
INCLUDES ///.
typedefABC_NAMESPACE_HEADER_START struct Vec_Wec_t_ Vec_Wec_t
INCLUDES ///.