mirror of
https://github.com/Z3Prover/z3
synced 2025-07-23 12:48:53 +00:00
na
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
98bc3d392d
commit
bdf3689c6e
1 changed files with 3 additions and 1 deletions
|
@ -178,11 +178,13 @@ namespace smt {
|
||||||
expr* e = n->get_expr();
|
expr* e = n->get_expr();
|
||||||
SASSERT(bv.is_bv(e));
|
SASSERT(bv.is_bv(e));
|
||||||
auto ie = m_translator.translated(e);
|
auto ie = m_translator.translated(e);
|
||||||
expr_ref val(m);
|
|
||||||
rational r;
|
rational r;
|
||||||
if (bv.is_numeral(e, 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 {
|
else {
|
||||||
|
expr_ref val(m);
|
||||||
VERIFY(ctx.get_value(ctx.get_enode(ie), val));
|
VERIFY(ctx.get_value(ctx.get_enode(ie), val));
|
||||||
VERIFY(a.is_numeral(val, r));
|
VERIFY(a.is_numeral(val, r));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue