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:
parent
69783db5e8
commit
41c68d64d4
|
@ -4027,8 +4027,3 @@ namespace smt {
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef Z3DEBUG
|
||||
void pp(code_tree * c) {
|
||||
c->display(std::cout);
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue