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

add model.inline_def option to make #2517 happy

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2019-08-29 12:08:09 -03:00
parent 35fa24a82a
commit a8bfab3273
4 changed files with 19 additions and 3 deletions

View file

@ -1790,7 +1790,9 @@ struct contains_underspecified_op_proc {
\brief Complete the model if necessary.
*/
void cmd_context::complete_model(model_ref& md) const {
if (gparams::get_value("model.completion") != "true" || !md.get())
if (!md.get())
return;
if (gparams::get_value("model.completion") != "true")
return;
params_ref p;
@ -2045,6 +2047,8 @@ bool cmd_context::is_model_available(model_ref& md) const {
has_manager() &&
(cs_state() == css_sat || cs_state() == css_unknown)) {
get_check_sat_result()->get_model(md);
params_ref p;
if (md.get()) md->updt_params(p);
complete_model(md);
return md.get() != nullptr;
}