72 pFile = fopen( pFileName,
"r" );
74 while ( fscanf( pFile,
"%s", Buffer ) == 1 )
79 printf(
"Name \"%s\" is not a PI name. Cannot use this order.\n", Buffer );
89 printf(
"The number of names in the order (%d) is not the same as the number of PIs (%d).\n",
Vec_PtrSize(vSupp),
Abc_NtkCiNum(pNtk) );
typedefABC_NAMESPACE_HEADER_START struct Vec_Ptr_t_ Vec_Ptr_t
INCLUDES ///.
static int Abc_ObjIsCi(Abc_Obj_t *pObj)
void Abc_NtkImplementCiOrder(Abc_Ntk_t *pNtk, char *pFileName, int fReverse, int fVerbose)
static int Abc_ObjIsPi(Abc_Obj_t *pObj)
static void Vec_PtrPush(Vec_Ptr_t *p, void *Entry)
static int Abc_NtkCiNum(Abc_Ntk_t *pNtk)
static int Vec_PtrSize(Vec_Ptr_t *p)
ABC_DLL Abc_Obj_t * Abc_NtkFindCi(Abc_Ntk_t *pNtk, char *pName)
#define ABC_NAMESPACE_IMPL_END
static void Vec_PtrWriteEntry(Vec_Ptr_t *p, int i, void *Entry)
#define ABC_NAMESPACE_IMPL_START
static ABC_NAMESPACE_IMPL_START void Abc_NtkChangeCiOrder(Abc_Ntk_t *pNtk, Vec_Ptr_t *vSupp, int fReverse)
DECLARATIONS ///.
#define Abc_NtkForEachCi(pNtk, pCi, i)
static Vec_Ptr_t * Vec_PtrAlloc(int nCap)
FUNCTION DEFINITIONS ///.
ABC_DLL Vec_Ptr_t * Abc_NtkSupport(Abc_Ntk_t *pNtk)
static void Vec_PtrClear(Vec_Ptr_t *p)
void Abc_NtkFindCiOrder(Abc_Ntk_t *pNtk, int fReverse, int fVerbose)
FUNCTION DEFINITIONS ///.
#define Vec_PtrForEachEntry(Type, vVec, pEntry, i)
MACRO DEFINITIONS ///.
static void Vec_PtrFree(Vec_Ptr_t *p)