mirror of
https://github.com/Z3Prover/z3
synced 2025-07-19 10:52:02 +00:00
fixing drat proofs
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
836f156d54
commit
0b8dbf2854
3 changed files with 8 additions and 9 deletions
|
@ -347,22 +347,17 @@ namespace sat {
|
|||
return;
|
||||
case 1:
|
||||
s.assign(c[0], justification());
|
||||
c.restore(sz0);
|
||||
s.del_clause(c);
|
||||
s.del_clause(c, false);
|
||||
break;
|
||||
case 2:
|
||||
s.mk_bin_clause(c[0], c[1], c.is_learned());
|
||||
c.restore(sz0);
|
||||
s.del_clause(c, true);
|
||||
s.del_clause(c, false);
|
||||
break;
|
||||
default:
|
||||
*it2 = *it;
|
||||
it2++;
|
||||
if (!c.frozen()) {
|
||||
s.attach_clause(c);
|
||||
if (sz != sz0 && s.m_config.m_drat) {
|
||||
s.m_drat.add(c, true);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue