mirror of
https://github.com/Z3Prover/z3
synced 2025-05-10 17:25:47 +00:00
fix model return after shutdown, reported in #4532
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
b71a64365d
commit
8857a67e4f
3 changed files with 10 additions and 2 deletions
|
@ -4486,8 +4486,12 @@ namespace smt {
|
|||
}
|
||||
|
||||
void context::get_model(model_ref & mdl) {
|
||||
if (inconsistent() || !m.inc())
|
||||
mdl = nullptr;
|
||||
if (inconsistent())
|
||||
mdl = nullptr;
|
||||
else if (m_model.get())
|
||||
mdl = m_model.get();
|
||||
else if (!m.inc())
|
||||
mdl = nullptr;
|
||||
else {
|
||||
mk_proto_model();
|
||||
if (!m_model && m_proto_model) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue