diff options
author | Mathias Soeken <mathias.soeken@gmail.com> | 2016-08-15 10:33:54 +0200 |
---|---|---|
committer | Mathias Soeken <mathias.soeken@gmail.com> | 2016-08-15 10:33:54 +0200 |
commit | 68f29c527e7d470aa494f5b0023e6ca3fb567c26 (patch) | |
tree | 4eb3e85d73ccd4c56e09e813e413a1e369289203 /src/base/abci | |
parent | 24af6345085f17234e71ee139149653a836fb484 (diff) | |
parent | 9dc2f48858287f62ea801f92c685391f7f161b18 (diff) | |
download | abc-68f29c527e7d470aa494f5b0023e6ca3fb567c26.tar.gz abc-68f29c527e7d470aa494f5b0023e6ca3fb567c26.tar.bz2 abc-68f29c527e7d470aa494f5b0023e6ca3fb567c26.zip |
Merged alanmi/abc into default
Diffstat (limited to 'src/base/abci')
-rw-r--r-- | src/base/abci/abc.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c index 6304683c..4e374e88 100644 --- a/src/base/abci/abc.c +++ b/src/base/abci/abc.c @@ -40439,13 +40439,13 @@ usage: ***********************************************************************/ int Abc_CommandAbc9Exorcism( Abc_Frame_t * pAbc, int argc, char ** argv ) { - extern int Abc_ExorcismMain( Vec_Wec_t * vEsop, int nIns, int nOuts, char * pFileNameOut, int Quality, int Verbosity ); + extern int Abc_ExorcismMain( Vec_Wec_t * vEsop, int nIns, int nOuts, char * pFileNameOut, int Quality, int Verbosity, int fUseQCost ); extern Gia_Man_t * Eso_ManCompute( Gia_Man_t * pGia, int fVerbose, Vec_Wec_t ** pvRes ); Vec_Wec_t * vEsop = NULL; char * pFileNameOut = NULL; - int c, Quality = 2, Verbosity = 0, fVerbose = 0; + int c, Quality = 2, Verbosity = 0, fUseQCost = 0, fVerbose = 0; Extra_UtilGetoptReset(); - while ( ( c = Extra_UtilGetopt( argc, argv, "QVvh" ) ) != EOF ) + while ( ( c = Extra_UtilGetopt( argc, argv, "QVqvh" ) ) != EOF ) { switch ( c ) { @@ -40471,6 +40471,9 @@ int Abc_CommandAbc9Exorcism( Abc_Frame_t * pAbc, int argc, char ** argv ) if ( Verbosity < 0 ) goto usage; break; + case 'q': + fUseQCost ^= 1; + break; case 'v': fVerbose ^= 1; break; @@ -40490,7 +40493,7 @@ int Abc_CommandAbc9Exorcism( Abc_Frame_t * pAbc, int argc, char ** argv ) pFileNameOut = argv[globalUtilOptind]; // generate starting cover and run minimization Eso_ManCompute( pAbc->pGia, fVerbose, &vEsop ); - Abc_ExorcismMain( vEsop, Gia_ManCiNum(pAbc->pGia), Gia_ManCoNum(pAbc->pGia), pFileNameOut, Quality, Verbosity ); + Abc_ExorcismMain( vEsop, Gia_ManCiNum(pAbc->pGia), Gia_ManCoNum(pAbc->pGia), pFileNameOut, Quality, Verbosity, fUseQCost ); Vec_WecFree( vEsop ); return 0; @@ -40501,6 +40504,7 @@ usage: Abc_Print( -2, " increasing this number improves quality and adds to runtime\n"); Abc_Print( -2, " -V N : verbosity level [default = %d]\n", Verbosity); Abc_Print( -2, " 0 = no output; 1 = outline; 2 = verbose\n"); +// Abc_Print( -2, " -q : toggle using quantum cost [default = %s]\n", fUseQCost? "yes": "no" ); Abc_Print( -2, " <file>: the output file name in ESOP-PLA format\n"); Abc_Print( -2, "\n" ); return 1; |