diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c index 551bb74e5..1a4b58d1e 100644 --- a/src/base/abci/abc.c +++ b/src/base/abci/abc.c @@ -39198,10 +39198,21 @@ int Abc_CommandAbc9SimGen( Abc_Frame_t * pAbc, int argc, char ** argv ) int c; Cec_SimGenSetParDefault( pPars ); Extra_UtilGetoptReset(); - while ( ( c = Extra_UtilGetopt( argc, argv, "OSstiwvV" ) ) != EOF ) + while ( ( c = Extra_UtilGetopt( argc, argv, "EOSstiwvV" ) ) != EOF ) { switch ( c ) { + case 'E': + if ( globalUtilOptind >= argc ) + { + Abc_Print( -1, "Command line switch \"-E\" should be followed by an integer.\n" ); + goto usage; + } + pPars->expId = atoi(argv[globalUtilOptind]); + globalUtilOptind++; + if ( pPars->expId < 0 ) + goto usage; + break; case 'O': if ( globalUtilOptind >= argc ) { diff --git a/src/proof/cec/cec.h b/src/proof/cec/cec.h index e14ecabe2..ae9f5122c 100644 --- a/src/proof/cec/cec.h +++ b/src/proof/cec/cec.h @@ -207,6 +207,7 @@ struct Cec_ParSimGen_t_ { int fVerbose; // verbose flag int fVeryVerbose; // verbose flag + 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