3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-03 09:50:23 +00:00

tune cardinality solver for cache misses

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2017-02-06 20:57:08 -08:00
parent 4831c45ad8
commit 61ade5e6cb
12 changed files with 85 additions and 33 deletions

View file

@ -142,12 +142,17 @@ namespace sat {
c.shrink(new_sz);
*it2 = *it;
it2++;
if (!c.frozen()) {
if (new_sz == 3)
if (!c.frozen()) {
if (new_sz == 3)
s.attach_ter_clause(c);
else
s.attach_nary_clause(c);
}
if (s.m_config.m_drat) {
// for optimization, could also report deletion
// of previous version of clause.
s.m_drat.add(c, true);
}
}
}
}