3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 09:05:31 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-04-01 11:05:03 -07:00
parent c6b4641050
commit b3c863fb15
2 changed files with 7 additions and 9 deletions

View file

@ -374,7 +374,7 @@ namespace opt {
void context::set_model(model_ref& m) {
m_model = m;
opt_params optp(m_params);
if (optp.dump_models()) {
if (optp.dump_models() && m) {
model_ref md = m->copy();
fix_model(md);
}