69 printf(
"Io_ReadEqn: The network check has failed.\n" );
94 char * pNodeName, * pFormula, * pFormulaCopy, * pVarName;
112 if (
strlen((
char *)vTokens->pArray[0]) == 0 )
116 if ( vTokens->nSize != 2 )
124 if (
strncmp( (
char *)vTokens->pArray[0],
"INORDER", 7 ) == 0 )
130 else if (
strncmp( (
char *)vTokens->pArray[0],
"OUTORDER", 8 ) == 0 )
141 pNodeName = (
char *)vTokens->pArray[0];
142 pFormula = (
char *)vTokens->pArray[1];
147 if ( pFormula[1] == 0 && (pFormula[0] ==
'0' || pFormula[0] ==
'1') )
189 for ( pNew = pCur = pStr; *pCur; pCur++ )
190 if ( !(*pCur ==
' ' || *pCur ==
'\n' || *pCur ==
'\r' || *pCur ==
'\t') )
211 if (
strcmp( pToken, pName ) == 0 )
231 for ( pToken =
strtok( pStr, pStop ); pToken; pToken =
strtok( NULL, pStop ) )
typedefABC_NAMESPACE_HEADER_START struct Vec_Ptr_t_ Vec_Ptr_t
INCLUDES ///.
static void Io_ReadEqnStrCutAt(char *pStr, char *pStop, int fUniqueOnly, Vec_Ptr_t *vTokens)
static void Vec_PtrPush(Vec_Ptr_t *p, void *Entry)
Abc_Ntk_t * Io_ReadEqn(char *pFileName, int fCheck)
FUNCTION DEFINITIONS ///.
ABC_DLL void Abc_NtkFinalizeRead(Abc_Ntk_t *pNtk)
static int Vec_PtrSize(Vec_Ptr_t *p)
ABC_DLL void Abc_NtkDelete(Abc_Ntk_t *pNtk)
ABC_DLL Abc_Ntk_t * Abc_NtkAlloc(Abc_NtkType_t Type, Abc_NtkFunc_t Func, int fUseMemMan)
DECLARATIONS ///.
Abc_Obj_t * Io_ReadCreatePi(Abc_Ntk_t *pNtk, char *pName)
ABC_DLL int Abc_NtkCheckRead(Abc_Ntk_t *pNtk)
#define ABC_NAMESPACE_IMPL_END
#define ABC_NAMESPACE_IMPL_START
static Vec_Ptr_t * Vec_PtrAlloc(int nCap)
FUNCTION DEFINITIONS ///.
Hop_Obj_t * Parse_FormulaParserEqn(FILE *pOutput, char *pFormInit, Vec_Ptr_t *vVarNames, Hop_Man_t *pMan)
FUNCTION DEFINITIONS ///.
Abc_Obj_t * Io_ReadCreateNode(Abc_Ntk_t *pNtk, char *pNameOut, char *pNamesIn[], int nInputs)
static void Vec_PtrClear(Vec_Ptr_t *p)
static int Io_ReadEqnStrFind(Vec_Ptr_t *vTokens, char *pName)
#define Vec_PtrForEachEntry(Type, vVec, pEntry, i)
MACRO DEFINITIONS ///.
Abc_Obj_t * Io_ReadCreatePo(Abc_Ntk_t *pNtk, char *pName)
static ABC_NAMESPACE_IMPL_START Abc_Ntk_t * Io_ReadEqnNetwork(Extra_FileReader_t *p)
DECLARATIONS ///.
static void ** Vec_PtrArray(Vec_Ptr_t *p)
typedefABC_NAMESPACE_HEADER_START struct Hop_Man_t_ Hop_Man_t
INCLUDES ///.
static void Io_ReadEqnStrCompact(char *pStr)
static void Vec_PtrFree(Vec_Ptr_t *p)