3
0
Fork 0
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:
Christoph M. Wintersteiger 2017-02-05 17:20:45 +00:00
parent d6b4e99489
commit 54280b6cc5

View file

@ -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.