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

deal with model construction, issue #684. fix model construction for ite #678. WIth this version, issue #686 does not repro

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2016-07-20 12:18:07 -07:00
parent cf48eb5f72
commit 60711bb0cd
4 changed files with 51 additions and 8 deletions

View file

@ -1634,6 +1634,7 @@ void cmd_context::validate_model() {
scoped_ctrl_c ctrlc(eh);
ptr_vector<expr>::const_iterator it = begin_assertions();
ptr_vector<expr>::const_iterator end = end_assertions();
bool invalid_model = false;
for (; it != end; ++it) {
expr * a = *it;
if (is_ground(a)) {
@ -1654,9 +1655,10 @@ void cmd_context::validate_model() {
continue;
}
TRACE("model_validate", model_smt2_pp(tout, *this, *(md.get()), 0););
throw cmd_exception("an invalid model was generated");
invalid_model = true;
}
}
throw cmd_exception("an invalid model was generated");
}
}