mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 19:35:50 +00:00
get cached tv value (#6756)
This commit is contained in:
parent
f7ec5c5c64
commit
1006955215
2 changed files with 5 additions and 9 deletions
|
@ -1034,14 +1034,10 @@ namespace lp {
|
|||
r += p.coeff() * get_value(p.column());
|
||||
return r;
|
||||
}
|
||||
|
||||
impq lar_solver::get_tv_ivalue(tv const& t) const {
|
||||
if (t.is_var())
|
||||
return get_column_value(t.column());
|
||||
impq r;
|
||||
for (lar_term::ival p : get_term(t))
|
||||
r += p.coeff() * get_column_value(p.column());
|
||||
return r;
|
||||
//fetches the cached value of the term or the variable by the given index
|
||||
const impq& lar_solver::get_tv_ivalue(tv const& t) const {
|
||||
unsigned j = t.is_var()? (unsigned)t.column(): this->map_term_index_to_column_index(t.index());
|
||||
return this->get_column_value(j);
|
||||
}
|
||||
|
||||
void lar_solver::get_rid_of_inf_eps() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue