mirror of
https://github.com/Z3Prover/z3
synced 2025-10-25 08:54:35 +00:00
fix bug in sat-solver where frozen clauses get re-attached
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
eceb92f5ef
commit
1918395f0e
2 changed files with 10 additions and 6 deletions
|
|
@ -682,10 +682,10 @@ namespace sat {
|
|||
bool m_deleted;
|
||||
public:
|
||||
scoped_detach(solver& s, clause& c): s(s), c(c), m_deleted(false) {
|
||||
s.detach_clause(c);
|
||||
if (!c.frozen()) s.detach_clause(c);
|
||||
}
|
||||
~scoped_detach() {
|
||||
if (!m_deleted) s.attach_clause(c);
|
||||
if (!m_deleted && !c.frozen()) s.attach_clause(c);
|
||||
}
|
||||
|
||||
void del_clause() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue