3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-18 14:49:01 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2024-10-27 18:53:25 -07:00
parent 98bc3d392d
commit bdf3689c6e

View file

@ -178,11 +178,13 @@ namespace smt {
expr* e = n->get_expr();
SASSERT(bv.is_bv(e));
auto ie = m_translator.translated(e);
expr_ref val(m);
rational r;
if (bv.is_numeral(e, r))
;
else if (!ctx.e_internalized(ie))
; // it is a compound expression, we don't have to evaluate it.
else {
expr_ref val(m);
VERIFY(ctx.get_value(ctx.get_enode(ie), val));
VERIFY(a.is_numeral(val, r));
}