93 int i, k; (*pCounter)++;
170 printf(
"Hierarchy reader flattened %d instances of logic boxes.\n", Counter );
238 if ( pObj->
iTemp != -1 )
313 printf(
"Hierarchy reader flattened %d instances of boxes and added %d barbufs (out of %d).\n",
321 *pvBuffers = vBuffers;
427 if ( pModel != pNtk )
ABC_NAMESPACE_IMPL_START void Abc_NodeStrashToGia_rec(Gia_Man_t *pNew, Hop_Obj_t *pObj)
DECLARATIONS ///.
static Hop_Obj_t * Hop_ObjFanin1(Hop_Obj_t *pObj)
static int Hop_ObjIsMarkA(Hop_Obj_t *pObj)
static int Abc_NtkIsStrash(Abc_Ntk_t *pNtk)
typedefABC_NAMESPACE_HEADER_START struct Vec_Ptr_t_ Vec_Ptr_t
INCLUDES ///.
static void Hop_ObjSetMarkA(Hop_Obj_t *pObj)
ABC_DLL int Abc_NodeIsConst(Abc_Obj_t *pNode)
void Gia_ManStop(Gia_Man_t *p)
static int Abc_NtkObjNumMax(Abc_Ntk_t *pNtk)
static Hop_Obj_t * Hop_ManConst1(Hop_Man_t *p)
static int Abc_ObjIsBo(Abc_Obj_t *pObj)
static int Gia_ManPoNum(Gia_Man_t *p)
static int Gia_ManAppendCo(Gia_Man_t *p, int iLit0)
typedefABC_NAMESPACE_IMPL_START struct Vec_Int_t_ Vec_Int_t
DECLARATIONS ///.
static int Abc_NtkIsNetlist(Abc_Ntk_t *pNtk)
static int Abc_ObjIsLatch(Abc_Obj_t *pObj)
ABC_DLL void Abc_NtkFillTemp(Abc_Ntk_t *pNtk)
static int Hop_ObjIsNode(Hop_Obj_t *pObj)
static int Abc_ObjFanoutNum(Abc_Obj_t *pObj)
static int Gia_ManAppendCi(Gia_Man_t *p)
static int Abc_ObjFaninNum(Abc_Obj_t *pObj)
static int Abc_NtkHasMapping(Abc_Ntk_t *pNtk)
ABC_DLL Abc_Obj_t * Abc_NtkDupObj(Abc_Ntk_t *pNtkNew, Abc_Obj_t *pObj, int fCopyName)
static int Abc_ObjIsPi(Abc_Obj_t *pObj)
static int Hop_ObjChild0CopyI(Hop_Obj_t *pObj)
static void Vec_PtrPush(Vec_Ptr_t *p, void *Entry)
static int Vec_PtrSize(Vec_Ptr_t *p)
static void * Vec_PtrPop(Vec_Ptr_t *p)
static Abc_Obj_t * Abc_ObjFanin0(Abc_Obj_t *pObj)
static int Abc_LitNotCond(int Lit, int c)
void Hop_ConeUnmark_rec(Hop_Obj_t *pObj)
static Abc_Ntk_t * Abc_ObjModel(Abc_Obj_t *pObj)
ABC_DLL void Abc_ObjAddFanin(Abc_Obj_t *pObj, Abc_Obj_t *pFanin)
int Gia_ManFlattenLogicPrepare(Abc_Ntk_t *pNtk)
Gia_Man_t * Abc_NtkFlattenHierarchyGia(Abc_Ntk_t *pNtk, Vec_Ptr_t **pvBuffers, int fVerbose)
static int Abc_ObjIsNode(Abc_Obj_t *pObj)
ABC_DLL void Abc_NtkDeleteObj(Abc_Obj_t *pObj)
static Vec_Int_t * Vec_IntAlloc(int nCap)
FUNCTION DEFINITIONS ///.
static int Gia_ManAppendBuf(Gia_Man_t *p, int iLit)
#define ABC_NAMESPACE_IMPL_END
Gia_Man_t * Gia_ManStart(int nObjsMax)
DECLARATIONS ///.
static int Hop_IsComplement(Hop_Obj_t *p)
static void Vec_IntPush(Vec_Int_t *p, int Entry)
#define Abc_NtkForEachBarBuf(pNtk, pNode, i)
void Abc_NtkFlattenHierarchyGia2_rec(Gia_Man_t *pNew, Abc_Ntk_t *pNtk, int *pCounter, Vec_Int_t *vBufs)
static Hop_Obj_t * Hop_ObjFanin0(Hop_Obj_t *pObj)
void Gia_ManInsertOne(Abc_Ntk_t *pNtk, Abc_Ntk_t *pNew)
#define Abc_NtkForEachBox(pNtk, pObj, i)
#define Abc_NtkForEachNode(pNtk, pNode, i)
Gia_Man_t * Abc_NtkFlattenHierarchyGia2(Abc_Ntk_t *pNtk)
#define ABC_NAMESPACE_IMPL_START
static void * Vec_PtrEntry(Vec_Ptr_t *p, int i)
static int Hop_ObjChild1CopyI(Hop_Obj_t *pObj)
static int Abc_ObjIsBi(Abc_Obj_t *pObj)
#define Abc_ObjForEachFanout(pObj, pFanout, i)
int Abc_NodeStrashToGia(Gia_Man_t *pNew, Abc_Obj_t *pNode)
static Abc_Obj_t * Abc_NtkPo(Abc_Ntk_t *pNtk, int i)
static int Abc_NtkPoNum(Abc_Ntk_t *pNtk)
static Vec_Ptr_t * Vec_PtrAlloc(int nCap)
FUNCTION DEFINITIONS ///.
#define Abc_ObjForEachFanin(pObj, pFanin, i)
ABC_DLL Abc_Obj_t * Abc_NtkCreateNodeConst0(Abc_Ntk_t *pNtk)
static int Abc_NtkPiNum(Abc_Ntk_t *pNtk)
static int Gia_ManBufNum(Gia_Man_t *p)
static int Abc_ObjIsNet(Abc_Obj_t *pObj)
static void Vec_PtrFreeP(Vec_Ptr_t **p)
static int Abc_ObjIsPo(Abc_Obj_t *pObj)
ABC_DLL Vec_Ptr_t * Abc_NtkDfsWithBoxes(Abc_Ntk_t *pNtk)
ABC_DLL void Abc_NtkCleanCopy(Abc_Ntk_t *pNtk)
static int Abc_NtkHasAig(Abc_Ntk_t *pNtk)
void Abc_NtkInsertHierarchyGia(Abc_Ntk_t *pNtk, Abc_Ntk_t *pNew, int fVerbose)
static int Abc_ObjIsBox(Abc_Obj_t *pObj)
static void Vec_IntPrint(Vec_Int_t *vVec)
void Gia_ManHashAlloc(Gia_Man_t *p)
static Abc_Ntk_t * Abc_ObjNtk(Abc_Obj_t *pObj)
static Abc_Obj_t * Abc_NtkPi(Abc_Ntk_t *pNtk, int i)
#define Abc_NtkForEachPo(pNtk, pPo, i)
static Abc_Obj_t * Abc_ObjFanin(Abc_Obj_t *pObj, int i)
#define Vec_PtrForEachEntry(Type, vVec, pEntry, i)
MACRO DEFINITIONS ///.
static int Gia_ManPiNum(Gia_Man_t *p)
static Hop_Obj_t * Hop_Regular(Hop_Obj_t *p)
Gia_Man_t * Gia_ManCleanup(Gia_Man_t *p)
char * Abc_UtilStrsav(char *s)
int Abc_NtkFlattenHierarchyGia_rec(Gia_Man_t *pNew, Vec_Ptr_t *vSupers, Abc_Obj_t *pObj, Vec_Ptr_t *vBuffers)
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 ///.
int Gia_ManHashAnd(Gia_Man_t *p, int iLit0, int iLit1)
static Abc_Obj_t * Abc_ObjFanout0(Abc_Obj_t *pObj)
#define Abc_NtkForEachPi(pNtk, pPi, i)
Abc_Obj_t * Gia_ManInsertOne_rec(Abc_Ntk_t *pNtk, Abc_Ntk_t *pNew, Abc_Obj_t *pObj)
static void Vec_PtrFree(Vec_Ptr_t *p)
void Gia_ManHashStop(Gia_Man_t *p)