3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-15 13:28:47 +00:00

avoid deref on null

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-03-24 17:06:06 -07:00
parent 69783db5e8
commit 41c68d64d4
2 changed files with 4 additions and 7 deletions

View file

@ -4027,8 +4027,3 @@ namespace smt {
}
}
#ifdef Z3DEBUG
void pp(code_tree * c) {
c->display(std::cout);
}
#endif

View file

@ -3370,8 +3370,10 @@ namespace smt {
if (u.get_rec_funs().empty()) {
model_ref mdl;
get_model(mdl);
for (theory* t : m_theory_set) {
t->validate_model(*mdl);
if (mdl.get()) {
for (theory* t : m_theory_set) {
t->validate_model(*mdl);
}
}
}
#if 0