mirror of
https://github.com/Z3Prover/z3
synced 2025-08-23 11:37:54 +00:00
add diagnostics for assertion violations
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
b1239d5276
commit
991acb0d72
2 changed files with 18 additions and 1 deletions
|
@ -977,6 +977,17 @@ namespace polysat {
|
|||
appraise_lemma(lemmas.back());
|
||||
}
|
||||
SASSERT(best_score < lemma_score::max());
|
||||
if (!best_lemma) {
|
||||
for (clause* cl: lemmas) {
|
||||
for (sat::literal lit : *cl) {
|
||||
if (m_bvars.is_true(lit)) // may happen if we only use the clause to justify a new constraint; it is not a real lemma
|
||||
verbose_stream() << "is true " << lit << "\n";
|
||||
if (!m_bvars.is_assigned(lit))
|
||||
verbose_stream() << lit << " is not assigned \n";
|
||||
}
|
||||
verbose_stream() << *cl << "\n";
|
||||
}
|
||||
}
|
||||
VERIFY(best_lemma);
|
||||
|
||||
unsigned const jump_level = std::max(best_score.jump_level(), base_level());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue