3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-12 20:18:18 +00:00

non-fixed term should have bound 0

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2023-09-28 09:25:36 -07:00
parent 65e59e3ec4
commit ddcd1ee992
2 changed files with 2 additions and 2 deletions

View file

@ -293,7 +293,7 @@ namespace nla {
lp::lpvar term_index = c().lra.add_term(coeffs, UINT_MAX); lp::lpvar term_index = c().lra.add_term(coeffs, UINT_MAX);
auto* dep = explain_fixed(m, k); auto* dep = explain_fixed(m, k);
term_index = c().lra.map_term_index_to_column_index(term_index); term_index = c().lra.map_term_index_to_column_index(term_index);
c().lra.update_column_type_and_bound(term_index, lp::lconstraint_kind::EQ, k, dep); c().lra.update_column_type_and_bound(term_index, lp::lconstraint_kind::EQ, mpq(0), dep);
} }
u_dependency* monomial_bounds::explain_fixed(monic const& m, rational const& k) { u_dependency* monomial_bounds::explain_fixed(monic const& m, rational const& k) {