3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-22 05:43:39 +00:00

Fixed model-converter segfault in ::check_sat. Relates to #881

This commit is contained in:
Christoph M. Wintersteiger 2017-02-05 17:53:44 +00:00
parent 54280b6cc5
commit e4411265ea

View file

@ -220,6 +220,7 @@ lbool check_sat(tactic & t, goal_ref & g, model_ref & md, labels_vec & labels, p
else { else {
if (models_enabled) { if (models_enabled) {
model_converter2model(m, mc.get(), md); model_converter2model(m, mc.get(), md);
if (mc)
(*mc)(labels, 0); (*mc)(labels, 0);
} }
reason_unknown = "incomplete"; reason_unknown = "incomplete";