3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 01:25:31 +00:00

Negate premise in lemma; fixes (or at least hides) the segfault

This commit is contained in:
Jakob Rath 2022-12-23 17:15:04 +01:00
parent 19e44e4f57
commit 993996c8a5
2 changed files with 2 additions and 2 deletions

View file

@ -1290,7 +1290,7 @@ namespace polysat {
auto bound = ceil((m.two_to_N() - y_val - b_val) / x_bound);
b = bound;
m_lemma.reset();
m_lemma.insert_eval(b_bound); // -b <= b_val
m_lemma.insert_eval(~b_bound); // -b <= b_val
// TODO m_lemma.insert_eval(s.ule(y, y - b)); // -2^N < y - b < 2^N
verbose_stream() << "XX: " << b_bound << " " << s.uge(-a, b) << "\n";
//

View file

@ -963,7 +963,7 @@ namespace polysat {
appraise_lemma(lemmas.back());
}
SASSERT(best_score < lemma_score::max());
SASSERT(best_lemma);
VERIFY(best_lemma);
unsigned const jump_level = std::max(best_score.jump_level(), base_level());
SASSERT(jump_level <= max_jump_level);