87 printf(
"Statistics: " );
121 printf(
"(%d,%d,%d) ", pEntry[2],
Vec_IntEntry(vFanCount, pEntry[0]), pEntry[3+pEntry[2]] );
207 int Type, Offset, fEndOfLine, Digit, nObjs;
208 char * pChars =
" w(-,)]\r\t";
210 char * pStart = pBuffer, * pToken;
212 if ( pBuffer == NULL )
213 printf(
"Cannot open input file %s\n", pFileName );
215 for ( nObjs = 0, pToken = pBuffer; *pToken; pToken++ )
216 nObjs += (
int)(*pToken ==
'\n');
223 pToken =
strtok( pStart, pChars );
225 if ( pToken == NULL )
230 assert( pToken[0] >=
'0' && pToken[0] <=
'9' );
233 pToken =
strtok( pStart, pChars );
234 assert( pToken[0] ==
'=' );
236 pToken =
strtok( pStart, pChars );
238 if ( pToken[
strlen(pToken)-1] ==
'\n' )
240 pToken[
strlen(pToken)-1] = 0;
246 assert( Type < GIG_UNUSED );
255 pToken =
strtok( pStart, pChars );
256 if ( pToken == NULL || pToken[0] ==
'\n' || pToken[0] ==
'[' )
258 assert( pToken[0] >=
'0' && pToken[0] <=
'9' );
263 if ( pToken[0] ==
'\n' )
265 assert( pToken[0] ==
'[' );
283 pToken =
strtok( pStart, pChars );
284 assert( pToken[0] ==
'\n' );
void Gia_ManPrintDelays(Vec_Int_t *vObjs, Vec_Int_t *vStore)
void Gia_ManStop(Gia_Man_t *p)
typedefABC_NAMESPACE_IMPL_START struct Vec_Int_t_ Vec_Int_t
DECLARATIONS ///.
static int Gia_ManAppendCi(Gia_Man_t *p)
static int Abc_TtReadHexDigit(char HexChar)
int * Gia_ManGigCount(Vec_Int_t *vObjs, Vec_Int_t *vStore)
FUNCTION DEFINITIONS ///.
static Vec_Int_t * Vec_IntStartFull(int nSize)
static void Vec_IntWriteEntry(Vec_Int_t *p, int i, int Entry)
static Vec_Int_t * Vec_IntStart(int nSize)
static Vec_Int_t * Vec_IntAlloc(int nCap)
FUNCTION DEFINITIONS ///.
void Gia_ManGigPrint(int *nObjs)
static void Vec_IntAddToEntry(Vec_Int_t *p, int i, int Addition)
static int Vec_IntEntry(Vec_Int_t *p, int i)
static int Vec_IntFindMax(Vec_Int_t *p)
#define ABC_NAMESPACE_IMPL_END
Gia_Man_t * Gia_ManStart(int nObjsMax)
DECLARATIONS ///.
static void Vec_IntPush(Vec_Int_t *p, int Entry)
Gia_Man_t * Gia_ManBuildGig(Vec_Int_t *vObjs, Vec_Int_t *vStore, char *pFileName)
Gia_Man_t * Gia_ManBuildGig2(Vec_Int_t *vObjs, Vec_Int_t *vStore, char *pFileName)
#define ABC_NAMESPACE_IMPL_START
static int Vec_IntSize(Vec_Int_t *p)
Gia_Man_t * Gia_ManReadGig(char *pFileName)
static int * Vec_IntEntryP(Vec_Int_t *p, int i)
void Gia_ManHashAlloc(Gia_Man_t *p)
static void Vec_IntFree(Vec_Int_t *p)
Gia_Man_t * Gia_ManCleanup(Gia_Man_t *p)
char * Abc_UtilStrsav(char *s)
static char * s_GigNames[GIG_UNUSED]