mirror of
https://github.com/Z3Prover/z3
synced 2026-02-20 15:34:41 +00:00
parent
b32f2703d4
commit
e234bede4c
6 changed files with 28 additions and 11 deletions
|
|
@ -47,8 +47,8 @@ bool core::compare_holds(const rational& ls, llc cmp, const rational& rs) const
|
|||
|
||||
rational core::value(const lp::lar_term& r) const {
|
||||
rational ret(0);
|
||||
for (const auto & t : r.coeffs()) {
|
||||
ret += t.second * val(t.first);
|
||||
for (const auto & t : r) {
|
||||
ret += t.coeff() * val(t.var());
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue