3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-06 19:21:23 +00:00

Added ezSAT::keep_cnf() and ezSAT::non_incremental()

This commit is contained in:
Clifford Wolf 2014-07-21 01:49:59 +02:00
parent ade659e617
commit b1d520949b
5 changed files with 71 additions and 8 deletions

View file

@ -63,7 +63,8 @@ void ezMiniSAT::clear()
#if EZMINISAT_SIMPSOLVER && EZMINISAT_INCREMENTAL
void ezMiniSAT::freeze(int id)
{
cnfFrozenVars.insert(bind(id));
if (!mode_non_incremental())
cnfFrozenVars.insert(bind(id));
}
bool ezMiniSAT::eliminated(int idx)
@ -89,6 +90,8 @@ void ezMiniSAT::alarmHandler(int)
bool ezMiniSAT::solver(const std::vector<int> &modelExpressions, std::vector<bool> &modelValues, const std::vector<int> &assumptions)
{
preSolverCallback();
solverTimoutStatus = false;
if (0) {