diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2019-06-20 07:32:58 +0200 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2019-06-20 07:32:58 +0200 |
commit | 1dcf6c879f922bc00be7a0d3adfc7de25d608538 (patch) | |
tree | 2b212779cf510875b4e9027e28ed60088bb8492f | |
parent | 35280f30504ad16f1d0ab005905883bee883747c (diff) | |
download | abc-1dcf6c879f922bc00be7a0d3adfc7de25d608538.tar.gz abc-1dcf6c879f922bc00be7a0d3adfc7de25d608538.tar.bz2 abc-1dcf6c879f922bc00be7a0d3adfc7de25d608538.zip |
Adding verbosity flag to command 'symfun'.
-rw-r--r-- | src/base/abci/abc.c | 6 | ||||
-rw-r--r-- | src/base/abci/abcSymm.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c index 085bb0f0..2c994908 100644 --- a/src/base/abci/abc.c +++ b/src/base/abci/abc.c @@ -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 ) diff --git a/src/base/abci/abcSymm.c b/src/base/abci/abcSymm.c index e4abc043..8f6bc969 100644 --- a/src/base/abci/abcSymm.c +++ b/src/base/abci/abcSymm.c @@ -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 ); |