50 p->nCallsRecycle = 200;
265 Abc_Print( 1,
"The number of failed outputs of the miter = %6d. (Words = %4d. Frames = %4d.)\n",
286 int r, nLitsOld, nLitsNew, nCountNoRef = 0, fStop = 0;
289 Abc_Print( 1,
"Performing rounds of random simulation of %d frames with %d words.\n",
292 for ( r = 0; r < pPars->
nRounds; r++ )
301 if ( nLitsOld == 0 || nLitsOld > nLitsNew )
311 assert( nLitsOld == nLitsNew );
314 if ( r == pPars->
nRounds || fStop )
315 Abc_Print( 1,
"Random simulation is stopped after %d rounds.\n", r );
317 Abc_Print( 1,
"Random simulation saturated after %d rounds.\n", r );
322 Abc_Print( 1,
"The number of POs that are not const-0 candidates = %d.\n", nNonConsts );
339 int fOutputResult = 0;
346 int i, fTimeOut = 0, nMatches = 0;
370 pParsSat->nBTLimit = pPars->
nBTLimit;
389 for ( i = 1; i <= pPars->
nItersMax; i++ )
409 Abc_Print( 1,
"Considered all available candidate equivalences.\n" );
415 Abc_Print( 1,
"Switching into reduced mode.\n" );
421 Abc_Print( 1,
"Switching into normal mode.\n" );
445 if ( p->
pAig == NULL )
453 Abc_Print( 1,
"%3d : P =%7d. D =%7d. F =%6d. M = %7d. And =%8d. ",
460 Abc_Print( 1,
"Network after reduction is empty.\n" );
472 if ( pParsSat->nBTLimit >= 10001 )
477 Abc_Print( 1,
"Exceeded the limit on the number of conflicts (%d).\n", pParsSat->nBTLimit );
480 pParsSat->nBTLimit *= 10;
484 Abc_Print( 1,
"Increasing conflict limit to %d.\n", pParsSat->nBTLimit );
488 Abc_Print( 1,
"The result is written into file \"%s\".\n",
"gia_cec_temp.aig" );
495 Abc_Print( 1,
"Switching into reduced mode.\n" );
502 Abc_Print( 1,
"Switching into normal mode.\n" );
510 Abc_Print( 1,
"NBeg = %d. NEnd = %d. (Gain = %6.2f %%). RBeg = %d. REnd = %d. (Gain = %6.2f %%).\n",
522 if ( pTemp == NULL && pSim->
iOut >= 0 )
524 Abc_Print( 1,
"Disproved at least one output of the miter (zero-based number %d).\n", pSim->
iOut );
528 Abc_Print( 1,
"Disproved %d outputs of the miter.\n", pSim->
nOuts );
530 Abc_Print( 1,
"Timed out after %d seconds.\n", (
int)((
double)
Abc_Clock() - clkTotal)/CLOCKS_PER_SEC );
int Gia_ManEquivCountLits(Gia_Man_t *p)
int Cec_ManSimClassesPrepare(Cec_ManSim_t *p, int LevelMax)
Gia_Man_t * Gia_ManDup(Gia_Man_t *p)
void Gia_ManStop(Gia_Man_t *p)
Gia_Man_t * Gia_ManEquivReduceAndRemap(Gia_Man_t *p, int fSeq, int fMiterPairs)
void Gia_ManPrintStats(Gia_Man_t *p, Gps_Par_t *pPars)
int Cec_ManFraClassesUpdate(Cec_ManFra_t *p, Cec_ManSim_t *pSim, Cec_ManPat_t *pPat, Gia_Man_t *pNew)
void Cec_ManSatSolve(Cec_ManPat_t *pPat, Gia_Man_t *pAig, Cec_ParSat_t *pPars)
Gia_Man_t * Cec_ManSatSolving(Gia_Man_t *pAig, Cec_ParSat_t *pPars)
void Cec_ManSimStop(Cec_ManSim_t *p)
void Cec_ManSimulation(Gia_Man_t *pAig, Cec_ParSim_t *pPars)
static abctime Abc_Clock()
static void Abc_PrintTimeP(int level, const char *pStr, abctime time, abctime Time)
void Cec_ManSatSolveCSat(Cec_ManPat_t *pPat, Gia_Man_t *pAig, Cec_ParSat_t *pPars)
void Cec_ManCorSetDefaultParams(Cec_ParCor_t *p)
Cec_ManSim_t * Cec_ManSimStart(Gia_Man_t *pAig, Cec_ParSim_t *pPars)
unsigned Gia_ManRandom(int fReset)
FUNCTION DEFINITIONS ///.
void Cec_ManFraSetDefaultParams(Cec_ParFra_t *p)
ABC_NAMESPACE_IMPL_START void Cec_ManSatSetDefaultParams(Cec_ParSat_t *p)
DECLARATIONS ///.
static void Abc_PrintTime(int level, const char *pStr, abctime time)
void Cec_ManChcSetDefaultParams(Cec_ParChc_t *p)
static int Gia_ManAndNum(Gia_Man_t *p)
void Cec_ManSimSetDefaultParams(Cec_ParSim_t *p)
Gia_Man_t * Cec_ManSatSweeping(Gia_Man_t *pAig, Cec_ParFra_t *pPars)
typedefABC_NAMESPACE_HEADER_START struct Cec_ManPat_t_ Cec_ManPat_t
INCLUDES ///.
#define ABC_NAMESPACE_IMPL_END
static void Abc_Print(int level, const char *format,...)
void Gia_AigerWrite(Gia_Man_t *p, char *pFileName, int fWriteSymbols, int fCompact)
int Cec_ManCountNonConstOutputs(Gia_Man_t *pAig)
#define ABC_NAMESPACE_IMPL_START
void Cec_ManSmfSetDefaultParams(Cec_ParSmf_t *p)
int Cec_ManSimClassesRefine(Cec_ManSim_t *p)
int Cec_ManSimulationOne(Gia_Man_t *pAig, Cec_ParSim_t *pPars)
Gia_Man_t * Cec_ManFraSpecReduction(Cec_ManFra_t *p)
DECLARATIONS ///.
void Cec_ManFraStop(Cec_ManFra_t *p)
void Cec_ManCecSetDefaultParams(Cec_ParCec_t *p)
Cec_ManFra_t * Cec_ManFraStart(Gia_Man_t *pAig, Cec_ParFra_t *pPars)
typedefABC_NAMESPACE_HEADER_START struct Cec_ParSat_t_ Cec_ParSat_t
INCLUDES ///.
int Gia_ManEquivSetColors(Gia_Man_t *p, int fVerbose)
void Cec_ManPatStop(Cec_ManPat_t *p)
static int Gia_ManCoNum(Gia_Man_t *p)
Cec_ManPat_t * Cec_ManPatStart()
static int Gia_ManRegNum(Gia_Man_t *p)