3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-10-09 09:21:56 +00:00

address some crashes reported by Caleb

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-06-20 18:35:16 -07:00
parent 6524a70c32
commit 02f34ea4b1
3 changed files with 8 additions and 4 deletions

View file

@ -720,7 +720,7 @@ bool theory_seq::is_solved() {
}
#if 0
// debug code
// debug code
for (enode* n : ctx.enodes()) {
expr* e = nullptr;
rational len1, len2;
@ -2881,8 +2881,11 @@ literal theory_seq::mk_simplified_literal(expr * _e) {
literal theory_seq::mk_literal(expr* _e) {
expr_ref e(_e, m);
bool is_not = m.is_not(_e, _e);
ensure_enode(_e);
if (!ctx.e_internalized(_e)) {
ctx.internalize(_e, is_quantifier(_e));
}
literal lit = ctx.get_literal(_e);
ctx.mark_as_relevant(lit);
if (is_not) lit.neg();
return lit;
}