We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e10fd3 commit 0a37194Copy full SHA for 0a37194
src/api/api_goal.cpp
@@ -158,7 +158,10 @@ extern "C" {
158
model_ref new_m;
159
Z3_model_ref * m_ref = alloc(Z3_model_ref, *mk_c(c));
160
mk_c(c)->save_object(m_ref);
161
- if (m) m_ref->m_model = to_model_ref(m)->copy();
+ if (m)
162
+ m_ref->m_model = to_model_ref(m)->copy();
163
+ else
164
+ m_ref->m_model = alloc(model, mk_c(c)->m());
165
if (to_goal_ref(g)->mc())
166
(*to_goal_ref(g)->mc())(m_ref->m_model);
167
RETURN_Z3(of_model(m_ref));
0 commit comments