mirror of
https://github.com/Z3Prover/z3
synced 2025-12-05 03:26:45 +00:00
fix warnings in nla_pp
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
324fb2194b
commit
d1272defeb
1 changed files with 1 additions and 2 deletions
|
|
@ -343,7 +343,7 @@ std::ostream& core::display_declarations_smt(std::ostream& out) const {
|
|||
out << "); " << val(v) << " = ";
|
||||
rational p(1);
|
||||
for (auto w : m.vars())
|
||||
p *= val(v);
|
||||
p *= val(w);
|
||||
out << p;
|
||||
out << "\n";
|
||||
}
|
||||
|
|
@ -360,7 +360,6 @@ std::ostream& core::display_constraint_smt(std::ostream& out, unsigned id, lp::l
|
|||
auto k = c.kind();
|
||||
auto rhs = c.rhs();
|
||||
auto lhs = c.coeffs();
|
||||
auto sz = lhs.size();
|
||||
rational den = denominator(rhs);
|
||||
for (auto [coeff, v] : lhs)
|
||||
den = lcm(den, denominator(coeff));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue