mirror of
https://github.com/Z3Prover/z3
synced 2025-04-22 16:45:31 +00:00
assert before deref
This commit is contained in:
parent
9314ad3808
commit
3c822117d1
1 changed files with 4 additions and 4 deletions
|
@ -303,15 +303,15 @@ namespace polysat {
|
|||
}
|
||||
|
||||
void conflict::add_lemma(char const* name, clause_ref lemma) {
|
||||
if (!name)
|
||||
name = "<unknown>";
|
||||
LOG_H3("Lemma " << name << ": " << show_deref(lemma));
|
||||
VERIFY(lemma);
|
||||
|
||||
for (auto lit : *lemma)
|
||||
if (s.m_bvars.is_true(lit))
|
||||
verbose_stream() << "REDUNDANT lemma " << lit << " : " << show_deref(lemma) << "\n";
|
||||
|
||||
if (!name)
|
||||
name = "<unknown>";
|
||||
LOG_H3("Lemma " << name << ": " << show_deref(lemma));
|
||||
SASSERT(lemma);
|
||||
s.m_simplify_clause.apply(*lemma);
|
||||
lemma->set_redundant(true);
|
||||
lemma->set_name(name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue