77 p->pnCounts =
ABC_ALLOC(
int, p->nFuncs );
78 memset( p->pnCounts, 0,
sizeof(
int) * p->nFuncs );
95 assert( uTruth < (1<<16) );
113 int i, CountMax, CountWrite, nCuts, nClasses;
117 nCuts = nClasses = 0;
121 if ( CountMax < s_pManRwrExp4->pnCounts[i] )
127 printf(
"Number of cuts considered = %8d.\n", nCuts );
128 printf(
"Classes occurring at least once = %8d.\n", nClasses );
130 pDistrib =
ABC_ALLOC(
int, CountMax + 1 );
132 memset( pDistrib, 0,
sizeof(
int)*(CountMax + 1) );
139 printf(
"Occurence = %6d. Num classes = %4d. \n", 0, 2288-nClasses );
140 for ( i = 1; i <= CountMax; i++ )
143 printf(
"Occurence = %6d. Num classes = %4d. Repr = ", i, pDistrib[i] );
151 pFile = fopen(
"npnclass_stats4.txt",
"w" );
161 printf(
"%d classes written into file \"%s\".\n", CountWrite,
"npnclass_stats4.txt" );
225 int i, CountMax, nCuts,
Counter;
228 unsigned uTruth, uTruthC;
238 if ( CountMax < Counter )
241 printf(
"Number of cuts considered = %8d.\n", nCuts );
242 printf(
"Classes occurring at least once = %8d.\n",
stmm_count(s_pManRwrExp5->
tTableNN) );
243 printf(
"The largest number of occurence = %8d.\n", CountMax );
246 pDistrib =
ABC_ALLOC(
int, CountMax + 1 );
247 pReprs =
ABC_ALLOC(
unsigned, CountMax + 1 );
248 memset( pDistrib, 0,
sizeof(
int)*(CountMax + 1) );
251 assert( Counter <= CountMax );
256 for ( i = 1; i <= CountMax; i++ )
259 printf(
"Occurence = %6d. Num classes = %4d. Repr = ", i, pDistrib[i] );
274 pFile = fopen(
"nnclass_stats5.txt",
"w" );
277 if ( !
stmm_lookup( s_pManRwrExp5->
tTableNN, (
char *)(ABC_PTRUINT_T)uTruth, (
char **)&Counter ) )
282 fprintf( pFile,
" %10d\n", Counter );
285 printf(
"%d classes written into file \"%s\".\n", vClassesNN->nSize,
"nnclass_stats5.txt" );
296 if ( !
stmm_lookup( s_pManRwrExp5->
tTableNN, (
char *)(ABC_PTRUINT_T)uTruth, (
char **)&Counter ) )
312 pFile = fopen(
"npnclass_stats5.txt",
"w" );
315 if ( !
stmm_lookup( s_pManRwrExp5->
tTableNPN, (
char *)(ABC_PTRUINT_T)uTruth, (
char **)&Counter ) )
320 fprintf( pFile,
" %10d\n", Counter );
323 printf(
"%d classes written into file \"%s\".\n", vClassesNPN->nSize,
"npnclass_stats5.txt" );
void Rwt_Man4ExploreStart()
FUNCTION DEFINITIONS ///.
stmm_table * stmm_init_table(stmm_compare_func_type compare, stmm_hash_func_type hash)
typedefABC_NAMESPACE_IMPL_START struct Vec_Int_t_ Vec_Int_t
DECLARATIONS ///.
static Rwr_Man5_t * s_pManRwrExp5
#define stmm_count(table)
void Rwt_Man5ExploreStart()
#define ABC_ALLOC(type, num)
static abctime Abc_Clock()
typedefABC_NAMESPACE_IMPL_START struct Rwr_Man4_t_ Rwr_Man4_t
DECLARATIONS ///.
void Rwt_Man5ExplorePrint()
static Vec_Int_t * Vec_IntAlloc(int nCap)
FUNCTION DEFINITIONS ///.
int stmm_lookup(stmm_table *table, char *key, char **value)
int st__numcmp(const char *, const char *)
#define ABC_NAMESPACE_IMPL_END
static void Vec_IntPush(Vec_Int_t *p, int Entry)
int stmm_find_or_add(stmm_table *table, char *key, char ***slot)
#define ABC_NAMESPACE_IMPL_START
void Extra_PrintBinary(FILE *pFile, unsigned Sign[], int nBits)
unsigned short * puCanons
void Rwt_Man5ExploreCount(unsigned uTruth)
void Rwt_Man4ExploreCount(unsigned uTruth)
static Rwr_Man4_t * s_pManRwrExp4
static void Vec_IntSortUnsigned(Vec_Int_t *p)
#define stmm_foreach_item(table, gen, key, value)
#define Vec_IntForEachEntry(vVec, Entry, i)
MACRO DEFINITIONS ///.
void Rwt_Man4ExplorePrint()
int st__numhash(const char *, int)