Adding verbosity flag to command 'symfun'.

This commit is contained in:
Alan Mishchenko 2019-06-20 07:32:58 +02:00
parent 35280f3050
commit 1dcf6c879f
2 changed files with 5 additions and 5 deletions

View File

@ -22974,10 +22974,10 @@ usage:
***********************************************************************/
int Abc_CommandSymFun( Abc_Frame_t * pAbc, int argc, char ** argv )
{
extern void Ntk_SymFunGenerate( int nVars );
extern void Ntk_SymFunGenerate( int nVars, int fVerbose );
word * pFun = NULL;
char * pStr, * pTruth, * pCommand;
int c, k, nVars = -1, fVerbose = 1;
int c, k, nVars = -1, fVerbose = 0;
Extra_UtilGetoptReset();
while ( ( c = Extra_UtilGetopt( argc, argv, "Nvh" ) ) != EOF )
{
@ -23009,7 +23009,7 @@ int Abc_CommandSymFun( Abc_Frame_t * pAbc, int argc, char ** argv )
printf( "Cannot generate functions for less than 1 and more than %d variables.\n", nVars );
return 1;
}
Ntk_SymFunGenerate( nVars );
Ntk_SymFunGenerate( nVars, fVerbose );
return 0;
}
if ( argc != globalUtilOptind + 1 )

View File

@ -305,9 +305,9 @@ void Ntk_SymFunDeriveNpn( word * pFun, int nVars, int * pComp )
SeeAlso []
***********************************************************************/
void Ntk_SymFunGenerate( int nVars )
void Ntk_SymFunGenerate( int nVars, int fVerbose )
{
int k, m, Class, fVerbose = 0;
int k, m, Class;
int * pComp = Extra_GreyCodeSchedule( nVars );
Vec_Mem_t * vTtMem = Vec_MemAlloc( Abc_Truth6WordNum(nVars), 12 );
Vec_MemHashAlloc( vTtMem, 10000 );