3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-02-20 15:34:41 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2019-04-30 17:36:12 -07:00 committed by Lev Nachmanson
parent b32f2703d4
commit e234bede4c
6 changed files with 28 additions and 11 deletions

View file

@ -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;
}