mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-31 00:13:18 +00:00
Added ezSAT::eliminated API to help the SAT solver remember eliminated variables
This commit is contained in:
parent
23f0a12c72
commit
d500bd749f
4 changed files with 17 additions and 3 deletions
|
@ -65,6 +65,14 @@ void ezMiniSAT::freeze(int id)
|
|||
{
|
||||
cnfFrozenVars.insert(bind(id));
|
||||
}
|
||||
|
||||
bool ezMiniSAT::eliminated(int idx)
|
||||
{
|
||||
idx = idx < 0 ? -idx : idx;
|
||||
if (minisatSolver != NULL && idx > 0 && idx <= int(minisatVars.size()))
|
||||
return minisatSolver->isEliminated(minisatVars.at(idx-1));
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
ezMiniSAT *ezMiniSAT::alarmHandlerThis = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue