mirror of
https://github.com/Z3Prover/z3
synced 2025-04-10 19:27:06 +00:00
patching up trim
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
6da4f6815e
commit
0f2fe6031a
|
@ -177,7 +177,8 @@ namespace sat {
|
|||
IF_VERBOSE(3, verbose_stream() << "core " << cl << "\n");
|
||||
|
||||
unsigned trail_size0 = s.m_trail.size();
|
||||
if (!cl.empty()) {
|
||||
bool probe = !cl.empty() && !s.inconsistent();
|
||||
if (probe) {
|
||||
SASSERT(!s.inconsistent());
|
||||
s.push();
|
||||
unsigned lvl = s.scope_lvl();
|
||||
|
@ -214,7 +215,7 @@ namespace sat {
|
|||
s.reset_mark(v);
|
||||
add_dependency(s.get_justification(v));
|
||||
}
|
||||
if (!cl.empty())
|
||||
if (probe)
|
||||
s.pop(1);
|
||||
}
|
||||
|
||||
|
@ -384,7 +385,7 @@ namespace sat {
|
|||
};
|
||||
|
||||
if (all_of(m_clause, [&](sat::literal lit) { return s.value(lit) == l_false; })) {
|
||||
IF_VERBOSE(3, verbose_stream() << "conflict " << m_clause << "\n");
|
||||
IF_VERBOSE(3, verbose_stream() << "false clause " << m_clause << "\n");
|
||||
set_conflict(m_clause, cl);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue