Removing hard-coded limit on the number of solving iterations in command 'qbf'.

This commit is contained in:
Alan Mishchenko 2013-03-27 12:51:57 -07:00
parent e64cad10e2
commit 272089221a
2 changed files with 6 additions and 6 deletions

View File

@ -11564,9 +11564,9 @@ int Abc_CommandQbf( Abc_Frame_t * pAbc, int argc, char ** argv )
extern void Abc_NtkQbf( Abc_Ntk_t * pNtk, int nPars, int nIters, int fVerbose );
// set defaults
nPars = -1;
nIters = -1;
fVerbose = 1;
nPars = -1;
nIters = 500;
fVerbose = 1;
Extra_UtilGetoptReset();
while ( ( c = Extra_UtilGetopt( argc, argv, "PIvh" ) ) != EOF )
{

View File

@ -65,7 +65,7 @@ void Abc_NtkQbf( Abc_Ntk_t * pNtk, int nPars, int nItersMax, int fVerbose )
Abc_Ntk_t * pNtkVer, * pNtkSyn, * pNtkSyn2, * pNtkTemp;
Vec_Int_t * vPiValues;
clock_t clkTotal = clock(), clkS, clkV;
int nIters, nIterMax = 500, nInputs, RetValue, fFound = 0;
int nIters, nInputs, RetValue, fFound = 0;
assert( Abc_NtkIsStrash(pNtk) );
assert( Abc_NtkIsComb(pNtk) );
@ -96,7 +96,7 @@ void Abc_NtkQbf( Abc_Ntk_t * pNtk, int nPars, int nItersMax, int fVerbose )
}
// iteratively solve
for ( nIters = 0; nIters < nIterMax; nIters++ )
for ( nIters = 0; nIters < nItersMax; nIters++ )
{
// solve the synthesis instance
clkS = clock();
@ -170,7 +170,7 @@ clkV = clock() - clkV;
printf( "\n" );
printf( "Solved after %d interations. ", nIters );
}
else if ( nIters == nIterMax )
else if ( nIters == nItersMax )
printf( "Unsolved after %d interations. ", nIters );
else if ( nIters == nItersMax )
printf( "Quit after %d interatios. ", nItersMax );