3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 00:55:31 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-04-08 18:06:37 -07:00
parent 4bfcc75ed4
commit 56358a6b94
3 changed files with 10 additions and 1 deletions

View file

@ -564,7 +564,11 @@ namespace qe {
if (!tids.find(v, id)) {
rational r;
expr_ref val = eval(v);
VERIFY(a.is_numeral(val, r));
if (!a.is_numeral(val, r)) {
TRACE("qe", tout << eval.get_model() << "\n";);
throw default_exception("mbp evaluation was only partial");
}
id = mbo.add_var(r, a.is_int(v));
tids.insert(v, id);
}