mirror of
https://github.com/Z3Prover/z3
synced 2025-08-19 09:40:20 +00:00
fix drat for units learned from binary clause resolution
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
63d480fd92
commit
836f156d54
6 changed files with 76 additions and 59 deletions
|
@ -135,7 +135,7 @@ namespace sat {
|
|||
break;
|
||||
default:
|
||||
SASSERT(s.value(c[0]) == l_undef && s.value(c[1]) == l_undef);
|
||||
if (s.m_config.m_drat && new_sz < i) {
|
||||
if (s.m_config.m_drat && new_sz < sz) {
|
||||
tmp.set(c.size(), c.begin(), c.is_learned());
|
||||
}
|
||||
c.shrink(new_sz);
|
||||
|
@ -144,7 +144,7 @@ namespace sat {
|
|||
if (!c.frozen()) {
|
||||
s.attach_clause(c);
|
||||
}
|
||||
if (s.m_config.m_drat && new_sz < i) {
|
||||
if (s.m_config.m_drat && new_sz < sz) {
|
||||
// for optimization, could also report deletion
|
||||
// of previous version of clause.
|
||||
s.m_drat.add(c, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue