diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2011-03-05 13:08:39 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2011-03-05 13:08:39 -0800 |
commit | 5f69ce8b8d78623698597f59f1a4d8e3e0581e89 (patch) | |
tree | 94c20e18fec47ddba032e7ac11a27e39e2ce01ab /src/base | |
parent | 58946372219a696f6b65a55a315501df6a4f24f8 (diff) | |
download | abc-5f69ce8b8d78623698597f59f1a4d8e3e0581e89.tar.gz abc-5f69ce8b8d78623698597f59f1a4d8e3e0581e89.tar.bz2 abc-5f69ce8b8d78623698597f59f1a4d8e3e0581e89.zip |
Fixing a corner case bug in 'enlarge'.
Diffstat (limited to 'src/base')
-rw-r--r-- | src/base/abci/abc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c index c8eccb76..c9860528 100644 --- a/src/base/abci/abc.c +++ b/src/base/abci/abc.c @@ -19009,7 +19009,7 @@ int Abc_CommandEnlarge( Abc_Frame_t * pAbc, int argc, char ** argv ) } nFrames = atoi(argv[globalUtilOptind]); globalUtilOptind++; - if ( nFrames < 0 ) + if ( nFrames < 1 ) goto usage; break; case 'v': @@ -19048,11 +19048,11 @@ int Abc_CommandEnlarge( Abc_Frame_t * pAbc, int argc, char ** argv ) Abc_FrameReplaceCurrentNetwork( pAbc, pNtkRes ); return 0; usage: - Abc_Print( -2, "usage: enlarge [-F num] [-vh]\n" ); - Abc_Print( -2, "\t performs structural K-step target enlargement\n" ); - Abc_Print( -2, "\t-F num : the number of timeframes for enlargement [default = %d]\n", nFrames ); - 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"); + Abc_Print( -2, "usage: enlarge [-F <num>] [-vh]\n" ); + Abc_Print( -2, "\t performs structural K-step target enlargement\n" ); + Abc_Print( -2, "\t-F <num> : the number of timeframes to unroll (<num> > 0) [default = %d]\n", nFrames ); + 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; } |