179 for ( i = 0; i < vNodes->nSize; i++ )
182 for ( i = 0; i < vNodes->nSize; i++ )
187 pObj->
Id = (1<<26)-1;
254 pObj->
Id = (1<<26)-1;
392 pObj->
pCopy = pObjNew;
471 if ( pName[0] !=
'n' )
473 printf(
"Name \"%s\" is not found among CO or node names (internal names often look as \"n<num>\").\n", pName );
476 Num = atoi( pName + 1 );
479 printf(
"The node \"%s\" with ID %d is not in the current network.\n", pName, Num );
485 printf(
"The node \"%s\" with ID %d has been removed from the current network.\n", pName, Num );
490 printf(
"Object with ID %d is not a node.\n", Num );
728 for ( i = 0; i < vFanins->nSize; i++ )
758 for ( i = 0; i < vFanins->nSize; i++ )
788 for ( i = 0; i < vFanins->nSize; i++ )
1010 printf(
"Node %s should be among",
Abc_ObjName(pFanin) );
1011 printf(
" the fanins of node %s...\n",
Abc_ObjName(pNode) );
1021 DdNode * bVar, * bCof0, * bCof1;
Mio_Gate_t * Mio_LibraryReadBuf(Mio_Library_t *pLib)
int nObjCounts[ABC_OBJ_NUMBER]
int Nm_ManFindIdByName(Nm_Man_t *p, char *pName, int Type)
static int Abc_NtkIsStrash(Abc_Ntk_t *pNtk)
static int Abc_NtkIsLogic(Abc_Ntk_t *pNtk)
typedefABC_NAMESPACE_HEADER_START struct Vec_Ptr_t_ Vec_Ptr_t
INCLUDES ///.
void Nm_ManDeleteIdName(Nm_Man_t *p, int ObjId)
static int Abc_NtkHasBdd(Abc_Ntk_t *pNtk)
ABC_DLL void * Abc_FrameReadLibGen()
int Abc_NodeIsConst1(Abc_Obj_t *pNode)
Abc_Obj_t * Abc_NtkCreateNodeBuf(Abc_Ntk_t *pNtk, Abc_Obj_t *pFanin)
static int Abc_NtkHasSop(Abc_Ntk_t *pNtk)
static int Abc_ObjIsCi(Abc_Obj_t *pObj)
void Cudd_RecursiveDeref(DdManager *table, DdNode *n)
static int Abc_NtkObjNumMax(Abc_Ntk_t *pNtk)
static Hop_Obj_t * Hop_ManConst1(Hop_Man_t *p)
void Abc_NtkDeleteAll_rec(Abc_Obj_t *pObj)
static int Abc_NtkIsNetlist(Abc_Ntk_t *pNtk)
static int Abc_ObjIsLatch(Abc_Obj_t *pObj)
static int Abc_ObjFanoutNum(Abc_Obj_t *pObj)
DdNode * Cudd_ReadLogicZero(DdManager *dd)
static Abc_Obj_t * Abc_ObjFanin0Ntk(Abc_Obj_t *pObj)
Hop_Obj_t * Hop_Transfer(Hop_Man_t *pSour, Hop_Man_t *pDest, Hop_Obj_t *pObj, int nVars)
ABC_DLL char * Abc_SopCreateAnd(Mem_Flex_t *pMan, int nVars, int *pfCompl)
Abc_Obj_t * Abc_NtkFindCo(Abc_Ntk_t *pNtk, char *pName)
static int Abc_ObjFaninNum(Abc_Obj_t *pObj)
static int Abc_NtkHasMapping(Abc_Ntk_t *pNtk)
void Abc_ObjRecycle(Abc_Obj_t *pObj)
Abc_Obj_t * Abc_NtkDupObj(Abc_Ntk_t *pNtkNew, Abc_Obj_t *pObj, int fCopyName)
ABC_DLL int Abc_SopIsInv(char *pSop)
static int Abc_ObjIsPi(Abc_Obj_t *pObj)
static int Vec_IntFind(Vec_Int_t *p, int Entry)
Abc_Obj_t * Abc_NtkDupBox(Abc_Ntk_t *pNtkNew, Abc_Obj_t *pBox, int fCopyName)
Abc_Obj_t * Abc_NtkFindCi(Abc_Ntk_t *pNtk, char *pName)
Hop_Obj_t * Hop_CreateExor(Hop_Man_t *p, int nVars)
static void Vec_PtrPush(Vec_Ptr_t *p, void *Entry)
#define ABC_ALLOC(type, num)
Abc_Obj_t * Abc_NtkCreateNodeAnd(Abc_Ntk_t *pNtk, Vec_Ptr_t *vFanins)
Abc_Obj_t * Abc_NtkCreateObj(Abc_Ntk_t *pNtk, Abc_ObjType_t Type)
ABC_DLL char * Abc_ObjAssignName(Abc_Obj_t *pObj, char *pName, char *pSuffix)
DdNode * Cudd_bddIte(DdManager *dd, DdNode *f, DdNode *g, DdNode *h)
void Abc_NtkDeleteObj_rec(Abc_Obj_t *pObj, int fOnlyNodes)
static int Abc_NtkHasBlifMv(Abc_Ntk_t *pNtk)
static Abc_Obj_t * Abc_NtkObj(Abc_Ntk_t *pNtk, int i)
static int Vec_PtrSize(Vec_Ptr_t *p)
Abc_Obj_t * Abc_NtkFindNet(Abc_Ntk_t *pNtk, char *pName)
void Abc_NtkDeleteObj(Abc_Obj_t *pObj)
static Hop_Obj_t * Hop_Not(Hop_Obj_t *p)
static Abc_Obj_t * Abc_ObjFanin0(Abc_Obj_t *pObj)
Hop_Obj_t * Hop_Mux(Hop_Man_t *p, Hop_Obj_t *pC, Hop_Obj_t *p1, Hop_Obj_t *p0)
ABC_DLL int Abc_SopIsBuf(char *pSop)
static void Vec_PtrRemove(Vec_Ptr_t *p, void *Entry)
static int Abc_ObjIsCo(Abc_Obj_t *pObj)
DdNode * Cudd_bddTransfer(DdManager *ddSource, DdManager *ddDestination, DdNode *f)
ABC_DLL void Abc_ObjAddFanin(Abc_Obj_t *pObj, Abc_Obj_t *pFanin)
Abc_Obj_t * Abc_NtkFindNode(Abc_Ntk_t *pNtk, char *pName)
ABC_DLL void Abc_SopComplementVar(char *pSop, int iVar)
Mio_Gate_t * Mio_LibraryReadConst1(Mio_Library_t *pLib)
Abc_Obj_t * Abc_NtkCreateNodeExor(Abc_Ntk_t *pNtk, Vec_Ptr_t *vFanins)
char * Nm_ManStoreIdName(Nm_Man_t *p, int ObjId, int Type, char *pName, char *pSuffix)
static int Abc_ObjIsNode(Abc_Obj_t *pObj)
ABC_DLL char * Abc_SopRegister(Mem_Flex_t *pMan, char *pName)
DECLARATIONS ///.
#define Cudd_IsComplement(node)
DdNode * Cudd_Cofactor(DdManager *dd, DdNode *f, DdNode *g)
Abc_Obj_t * Abc_NtkCreateNodeInv(Abc_Ntk_t *pNtk, Abc_Obj_t *pFanin)
Hop_Obj_t * Hop_CreateAnd(Hop_Man_t *p, int nVars)
static int Abc_NtkHasBlackbox(Abc_Ntk_t *pNtk)
void Abc_NodeComplementInput(Abc_Obj_t *pNode, Abc_Obj_t *pFanin)
int Abc_NodeIsConst(Abc_Obj_t *pNode)
int Abc_NodeIsInv(Abc_Obj_t *pNode)
#define ABC_NAMESPACE_IMPL_END
char * Nm_ManFindNameById(Nm_Man_t *p, int ObjId)
void Abc_NodeComplement(Abc_Obj_t *pNode)
static int Hop_IsComplement(Hop_Obj_t *p)
STRUCTURE DEFINITIONS ///.
ABC_DLL int Abc_SopIsConst0(char *pSop)
ABC_DLL int Abc_SopIsConst1(char *pSop)
Abc_Obj_t * Abc_NtkCreateNodeMux(Abc_Ntk_t *pNtk, Abc_Obj_t *pNodeC, Abc_Obj_t *pNode1, Abc_Obj_t *pNode0)
void Mem_FixedEntryRecycle(Mem_Fixed_t *p, char *pEntry)
static Abc_Obj_t * Abc_ObjFanout0Ntk(Abc_Obj_t *pObj)
int Abc_NodeIsBuf(Abc_Obj_t *pNode)
void Abc_NtkDeleteObjPo(Abc_Obj_t *pObj)
ABC_NAMESPACE_IMPL_START Abc_Obj_t * Abc_ObjAlloc(Abc_Ntk_t *pNtk, Abc_ObjType_t Type)
DECLARATIONS ///.
static void Vec_PtrWriteEntry(Vec_Ptr_t *p, int i, void *Entry)
#define ABC_NAMESPACE_IMPL_START
Abc_Obj_t * Abc_NtkFindOrCreateNet(Abc_Ntk_t *pNtk, char *pName)
DdNode * Cudd_ReadOne(DdManager *dd)
Hop_Obj_t * Hop_CreateOr(Hop_Man_t *p, int nVars)
ABC_DLL void Abc_SopComplement(char *pSop)
#define Abc_ObjForEachFanout(pObj, pFanout, i)
static Vec_Ptr_t * Vec_PtrAlloc(int nCap)
FUNCTION DEFINITIONS ///.
#define Abc_ObjForEachFanin(pObj, pFanin, i)
Abc_Obj_t * Abc_NtkCloneObj(Abc_Obj_t *pObj)
ABC_DLL char * Abc_ObjName(Abc_Obj_t *pNode)
DECLARATIONS ///.
DdNode * Cudd_bddIthVar(DdManager *dd, int i)
ABC_DLL char * Abc_SopCreateXorSpecial(Mem_Flex_t *pMan, int nVars)
static Abc_Obj_t * Abc_NtkCreateNode(Abc_Ntk_t *pNtk)
static int Abc_ObjIsNet(Abc_Obj_t *pObj)
ABC_DLL void Abc_NodeCollectFanins(Abc_Obj_t *pNode, Vec_Ptr_t *vNodes)
Abc_Obj_t * Abc_NtkCreateNodeOr(Abc_Ntk_t *pNtk, Vec_Ptr_t *vFanins)
static int Abc_ObjIsPo(Abc_Obj_t *pObj)
Abc_Obj_t * Abc_NtkCreateNodeConst0(Abc_Ntk_t *pNtk)
ABC_DLL void Abc_ObjDeleteFanin(Abc_Obj_t *pObj, Abc_Obj_t *pFanin)
static int Abc_NtkHasAig(Abc_Ntk_t *pNtk)
static int Abc_ObjIsBox(Abc_Obj_t *pObj)
static Hop_Obj_t * Hop_ManConst0(Hop_Man_t *p)
int Abc_NodeIsConst0(Abc_Obj_t *pNode)
ABC_DLL void Abc_NodeCollectFanouts(Abc_Obj_t *pNode, Vec_Ptr_t *vNodes)
#define Vec_PtrForEachEntry(Type, vVec, pEntry, i)
MACRO DEFINITIONS ///.
static int Abc_ObjIsComplement(Abc_Obj_t *p)
char * Mem_FixedEntryFetch(Mem_Fixed_t *p)
Mio_Gate_t * Mio_LibraryReadConst0(Mio_Library_t *pLib)
ABC_DLL char * Abc_SopCreateOr(Mem_Flex_t *pMan, int nVars, int *pfCompl)
Mio_Gate_t * Mio_LibraryReadInv(Mio_Library_t *pLib)
typedefABC_NAMESPACE_HEADER_START struct Hop_Man_t_ Hop_Man_t
INCLUDES ///.
Hop_Obj_t * Hop_IthVar(Hop_Man_t *p, int i)
FUNCTION DEFINITIONS ///.
static Abc_Obj_t * Abc_ObjFanout0(Abc_Obj_t *pObj)
Hop_Obj_t * Hop_Complement(Hop_Man_t *p, Hop_Obj_t *pRoot, int iVar)
Abc_Obj_t * Abc_NtkCreateNodeConst1(Abc_Ntk_t *pNtk)
static Abc_Obj_t * Abc_NtkCreateNet(Abc_Ntk_t *pNtk)
static void Vec_PtrFree(Vec_Ptr_t *p)