34 static unsigned char *
s_pMap = NULL;
186 for ( i = 0; i < 222; i++ )
187 Counter += (p->
nScores[i] > 0);
189 printf(
"Rewriting statistics:\n" );
190 printf(
"Total cuts tries = %8d.\n", p->
nCutsGood );
191 printf(
"Bad cuts found = %8d.\n", p->
nCutsBad );
192 printf(
"Total subgraphs = %8d.\n", p->
nSubgraphs );
193 printf(
"Used NPN classes = %8d.\n", Counter );
233 pTable = fopen(
"stats.txt",
"a+" );
238 fprintf( pTable,
"\n" );
void Rwt_ManPrintStatsFile(Rwt_Man_t *p)
typedefABC_NAMESPACE_HEADER_START struct Vec_Ptr_t_ Vec_Ptr_t
INCLUDES ///.
void Rwt_ManAddTimeTotal(Rwt_Man_t *p, abctime Time)
Rwt_Node_t * Rwt_ManAddVar(Rwt_Man_t *p, unsigned uTruth, int fPrecompute)
void Rwt_ManGlobalStart()
FUNCTION DEFINITIONS ///.
#define Vec_VecForEachEntry(Type, vGlob, pEntry, i, k)
#define ABC_ALLOC(type, num)
int Rwt_ManReadCompl(Rwt_Man_t *p)
void Mem_FixedStop(Mem_Fixed_t *p, int fVerbose)
static abctime Abc_Clock()
static void Vec_VecFree(Vec_Vec_t *p)
void Rwt_ManAddTimeCuts(Rwt_Man_t *p, abctime Time)
Mem_Fixed_t * Mem_FixedStart(int nEntrySize)
FUNCTION DEFINITIONS ///.
void Rwt_ManLoadFromArray(Rwt_Man_t *p, int fVerbose)
static Vec_Int_t * Vec_IntAlloc(int nCap)
FUNCTION DEFINITIONS ///.
void Rwt_ManAddTimeUpdate(Rwt_Man_t *p, abctime Time)
void Rwt_ManPrintStats(Rwt_Man_t *p)
#define ABC_NAMESPACE_IMPL_END
void * Rwt_ManReadDecs(Rwt_Man_t *p)
Vec_Ptr_t * Rwt_ManReadLeaves(Rwt_Man_t *p)
static ABC_NAMESPACE_IMPL_START unsigned short * s_puCanons
DECLARATIONS ///.
#define ABC_NAMESPACE_IMPL_START
void Rwt_ManPreprocess(Rwt_Man_t *p)
MACRO DEFINITIONS ///.
void Rwt_ManStop(Rwt_Man_t *p)
static Vec_Ptr_t * Vec_PtrAlloc(int nCap)
FUNCTION DEFINITIONS ///.
Rwt_Man_t * Rwt_ManStart(int fPrecompute)
static void Dec_GraphFree(Dec_Graph_t *pGraph)
static void Vec_IntFree(Vec_Int_t *p)
unsigned short * puCanons
static unsigned char * s_pMap
char * Rwt_ManGetPractical(Rwt_Man_t *p)
static void Vec_PtrFree(Vec_Ptr_t *p)