fix one more TODO
This commit is contained in:
parent
f7db522c6c
commit
a8c4f4fc52
@ -279,10 +279,12 @@ Clause::logVarTypes (size_t litIdx) const
|
||||
void
|
||||
Clause::removeLiteral (size_t litIdx)
|
||||
{
|
||||
// TODO maybe we need to clean up pos/neg/ipg lvs too
|
||||
LogVarSet lvs (literals_[litIdx].logVars());
|
||||
lvs -= getLogVarSetExcluding (litIdx);
|
||||
constr_.remove (lvs);
|
||||
LogVarSet lvsToRemove = literals_[litIdx].logVarSet()
|
||||
- getLogVarSetExcluding (litIdx);
|
||||
ipgLogVars_ -= lvsToRemove;
|
||||
posCountedLvs_ -= lvsToRemove;
|
||||
negCountedLvs_ -= lvsToRemove;
|
||||
constr_.remove (lvsToRemove);
|
||||
literals_.erase (literals_.begin() + litIdx);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user