mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 18:31:49 +00:00
Fixed model-converter segfault in ::check_sat. Relates to #881
This commit is contained in:
parent
d6b4e99489
commit
54280b6cc5
|
@ -200,7 +200,8 @@ lbool check_sat(tactic & t, goal_ref & g, model_ref & md, labels_vec & labels, p
|
|||
|
||||
if (is_decided_sat(r)) {
|
||||
if (models_enabled) {
|
||||
(*mc)(labels, 0);
|
||||
if (mc)
|
||||
(*mc)(labels, 0);
|
||||
model_converter2model(m, mc.get(), md);
|
||||
if (!md) {
|
||||
// create empty model.
|
||||
|
|
Loading…
Reference in a new issue