Skip to content

Commit

Permalink
[CEC][SimGen][CLI] Removed option of nMaxStep since it was unused
Browse files Browse the repository at this point in the history
  • Loading branch information
Carmine50 committed Dec 19, 2024
1 parent 30af6f9 commit b999084
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
16 changes: 2 additions & 14 deletions src/base/abci/abc.c
Original file line number Diff line number Diff line change
Expand Up @@ -39198,7 +39198,7 @@ int Abc_CommandAbc9SimGen( Abc_Frame_t * pAbc, int argc, char ** argv )
int c;
Cec_SimGenSetParDefault( pPars );
Extra_UtilGetoptReset();
while ( ( c = Extra_UtilGetopt( argc, argv, "EOSstiwvV" ) ) != EOF )
while ( ( c = Extra_UtilGetopt( argc, argv, "EOStiwvV" ) ) != EOF )
{
switch ( c )
{
Expand Down Expand Up @@ -39235,17 +39235,6 @@ int Abc_CommandAbc9SimGen( Abc_Frame_t * pAbc, int argc, char ** argv )
if ( pPars->bitwidthSim <= 0 )
goto usage;
break;
case 's':
if ( globalUtilOptind >= argc )
{
Abc_Print( -1, "Command line switch \"-s\" should be followed by an integer.\n" );
goto usage;
}
pPars->nMaxStep = atoi(argv[globalUtilOptind]);
globalUtilOptind++;
if ( pPars->nMaxStep <= 0 )
goto usage;
break;
case 't':
if ( globalUtilOptind >= argc )
{
Expand All @@ -39254,7 +39243,7 @@ int Abc_CommandAbc9SimGen( Abc_Frame_t * pAbc, int argc, char ** argv )
}
pPars->timeOutSim = atof(argv[globalUtilOptind]);
globalUtilOptind++;
if ( pPars->nMaxStep <= 0 )
if ( pPars->timeOutSim <= 0 )
goto usage;
break;
case 'i':
Expand Down Expand Up @@ -39303,7 +39292,6 @@ int Abc_CommandAbc9SimGen( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_Print( -2, "\t-E num : the experiment ID for SimGen [default = %d]\n", pPars->expId );
Abc_Print( -2, "\t-O num : the bitwidth of the output gold [default = %d]\n", pPars->bitwidthOutgold );
Abc_Print( -2, "\t-S num : the bitwidth of the simulation vectors [default = %d]\n", pPars->bitwidthSim );
Abc_Print( -2, "\t-s num : the maximum number of SimGen steps [default = %d]\n", pPars->nMaxStep );
Abc_Print( -2, "\t-t num : the timeout value after which Smart Simulation Pattern Generation terminates [default = %.0f]\n", pPars->timeOutSim);
Abc_Print( -2, "\t-i num : the maximum number of iterations [default = %d]\n", pPars->nMaxIter );
Abc_Print( -2, "\t-w : activates the watchlist feature [default = %d]\n", pPars->fUseWatchlist);
Expand Down
1 change: 0 additions & 1 deletion src/proof/cec/cec.h
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ struct Cec_ParSimGen_t_
int expId; // experiment ID for SimGen
int bitwidthOutgold; // bitwidth of the output gold
int bitwidthSim; // bitwidth of the simulation vectors
int nMaxStep; // maximum number of SimGen steps
int nMaxIter; // maximum number of iterations
char * outGold; // data containing outgold
float timeOutSim; // timeout for simulation
Expand Down
1 change: 0 additions & 1 deletion src/proof/cec/cecSatG2.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ void Cec_SimGenSetParDefault( Cec_ParSimGen_t * pPars )
pPars->bitwidthOutgold = 2; // bitwidth of the output golden model
pPars->bitwidthSim = 31; // bitwidth of the simulation vectors
pPars->expId = 1; // experiment ID
pPars->nMaxStep = 20; // the maximum number of steps
pPars->nMaxIter = -1; // the maximum number of iterations
pPars->timeOutSim = 1000.0; // the timeout for simulation in sec
pPars->fUseWatchlist = 0; // use watchlist
Expand Down

0 comments on commit b999084

Please sign in to comment.