Commit af5a70c0 by Alan Mishchenko

Experiments with function enumeration.

parent bea3385f
...@@ -141,10 +141,12 @@ void Dau_TruthEnum() ...@@ -141,10 +141,12 @@ void Dau_TruthEnum()
***********************************************************************/ ***********************************************************************/
unsigned * Dau_ReadFile( char * pFileName, int nSizeW ) unsigned * Dau_ReadFile( char * pFileName, int nSizeW )
{ {
abctime clk = Abc_Clock();
FILE * pFile = fopen( pFileName, "rb" ); FILE * pFile = fopen( pFileName, "rb" );
unsigned * p = (unsigned *)ABC_CALLOC(word, nSizeW); unsigned * p = (unsigned *)ABC_CALLOC(word, nSizeW);
int RetValue = fread( p, sizeof(word), nSizeW, pFile ); int RetValue = fread( p, sizeof(word), nSizeW, pFile );
fclose( pFile ); fclose( pFile );
Abc_PrintTime( 1, "File reading", Abc_Clock() - clk );
return p; return p;
} }
void Dau_AddFunction( word tCur, int nVars, unsigned * pTable, Vec_Int_t * vNpns ) void Dau_AddFunction( word tCur, int nVars, unsigned * pTable, Vec_Int_t * vNpns )
...@@ -262,7 +264,7 @@ void Dau_NetworkEnum() ...@@ -262,7 +264,7 @@ void Dau_NetworkEnum()
} }
void Dau_NetworkEnumTest() void Dau_NetworkEnumTest()
{ {
Dau_TruthEnum(); //Dau_TruthEnum();
Dau_NetworkEnum(); Dau_NetworkEnum();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment