diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2019-03-13 18:49:25 +0100 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2019-03-13 18:49:25 +0100 |
commit | 558eee987df9dc252748e9b074049f0667563cf2 (patch) | |
tree | 6ec3469945c988e1649cb461bcdc9a99e919f12d | |
parent | d4f4d3448fe318d05cb7b02f05703e2333ed8ddb (diff) | |
download | abc-558eee987df9dc252748e9b074049f0667563cf2.tar.gz abc-558eee987df9dc252748e9b074049f0667563cf2.tar.bz2 abc-558eee987df9dc252748e9b074049f0667563cf2.zip |
Adding new command line args.
-rw-r--r-- | src/base/abci/abc.c | 10 | ||||
-rw-r--r-- | src/misc/extra/extraUtilCfs.c | 2 |
2 files changed, 7 insertions, 5 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c index d4237018..ec607aed 100644 --- a/src/base/abci/abc.c +++ b/src/base/abci/abc.c @@ -45632,14 +45632,15 @@ usage: ***********************************************************************/ int Abc_CommandAbc9Cfs( Abc_Frame_t * pAbc, int argc, char ** argv ) { - extern void Extra_CommandCfs( Gia_Man_t * pGia, int Limit, int Reps, int UnseenUse, int RareUse, int fVerbose ); + extern void Extra_CommandCfs( Gia_Man_t * pGia, int Limit, int Reps, int UnseenUse, int RareUse, int fReplaceRare, int fVerbose ); int Limit = 0; int Reps = 1; int UnseenUse = 2; int RareUse = 2; + int fReplaceRare= 0; int c, fVerbose = 0; Extra_UtilGetoptReset(); - while ( ( c = Extra_UtilGetopt( argc, argv, "LNURvh" ) ) != EOF ) + while ( ( c = Extra_UtilGetopt( argc, argv, "LNURrvh" ) ) != EOF ) { switch ( c ) { @@ -45701,16 +45702,17 @@ int Abc_CommandAbc9Cfs( Abc_Frame_t * pAbc, int argc, char ** argv ) Abc_Print( -1, "Abc_CommandAbc9Cfs(): There is no AIG.\n" ); return 1; } - Extra_CommandCfs( pAbc->pGia, Limit, Reps, UnseenUse, RareUse, fVerbose ); + Extra_CommandCfs( pAbc->pGia, Limit, Reps, UnseenUse, RareUse, fReplaceRare, fVerbose ); return 0; usage: - Abc_Print( -2, "usage: &cfs [-LNURvh]\n" ); + Abc_Print( -2, "usage: &cfs [-LNURrvh]\n" ); Abc_Print( -2, "\t performs simulation\n" ); Abc_Print( -2, "\t-L num : the limit on the number of occurrences [default = %d]\n", Limit ); Abc_Print( -2, "\t-N num : the number of repetions of each pattern [default = %d]\n", Reps ); Abc_Print( -2, "\t-U num : what to do with unseen patterns [default = %d]\n", UnseenUse ); Abc_Print( -2, "\t-R num : what to do with rare patterns [default = %d]\n", RareUse ); + Abc_Print( -2, "\t-r : toggle replacing rare patterns [default = %s]\n", fReplaceRare? "yes": "no" ); Abc_Print( -2, "\t-v : toggle printing verbose information [default = %s]\n", fVerbose? "yes": "no" ); Abc_Print( -2, "\t-h : print the command usage\n"); return 1; diff --git a/src/misc/extra/extraUtilCfs.c b/src/misc/extra/extraUtilCfs.c index b21dc445..bf77c8fb 100644 --- a/src/misc/extra/extraUtilCfs.c +++ b/src/misc/extra/extraUtilCfs.c @@ -48,7 +48,7 @@ ABC_NAMESPACE_IMPL_START SeeAlso [] ***********************************************************************/ -void Extra_CommandCfs( Gia_Man_t * pGia, int Limit, int Reps, int UnseenUse, int RareUse, int fVerbose ) +void Extra_CommandCfs( Gia_Man_t * pGia, int Limit, int Reps, int UnseenUse, int RareUse, int fReplaceRare, int fVerbose ) { } |