From 5f69ce8b8d78623698597f59f1a4d8e3e0581e89 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Sat, 5 Mar 2011 13:08:39 -0800 Subject: Fixing a corner case bug in 'enlarge'. --- src/base/abci/abc.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/base/abci/abc.c') 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 ] [-vh]\n" ); + Abc_Print( -2, "\t performs structural K-step target enlargement\n" ); + Abc_Print( -2, "\t-F : the number of timeframes to unroll ( > 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; } -- cgit v1.2.3