mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
use params for arguments to Fixedpoint methods
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
88f4ce68fd
commit
bdd8685146
2 changed files with 8 additions and 4 deletions
|
@ -1163,10 +1163,12 @@ public:
|
|||
}
|
||||
|
||||
rational get_value(theory_var v) const {
|
||||
|
||||
|
||||
if (v == null_theory_var ||
|
||||
v >= static_cast<theory_var>(m_theory_var2var_index.size()))
|
||||
v >= static_cast<theory_var>(m_theory_var2var_index.size())) {
|
||||
TRACE("arith", tout << "Variable v" << v << " not internalized\n";);
|
||||
return rational::zero();
|
||||
}
|
||||
|
||||
lp::var_index vi = m_theory_var2var_index[v];
|
||||
if (m_variable_values.count(vi) > 0)
|
||||
|
@ -1207,6 +1209,7 @@ public:
|
|||
if (!m.canceled() && m_solver.get() && th.get_num_vars() > 0) {
|
||||
reset_variable_values();
|
||||
m_solver->get_model(m_variable_values);
|
||||
TRACE("arith", display(tout););
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2642,6 +2645,7 @@ public:
|
|||
}
|
||||
else {
|
||||
rational r = get_value(v);
|
||||
TRACE("arith", tout << "v" << v << " := " << r << "\n";);
|
||||
if (a.is_int(o) && !r.is_int()) r = floor(r);
|
||||
return alloc(expr_wrapper_proc, m_factory->mk_value(r, m.get_sort(o)));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue