mirror of
https://github.com/Z3Prover/z3
synced 2025-05-03 22:05:45 +00:00
take the coefficient from cut_result, not lia
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
parent
1b3929099b
commit
2ac866a8d0
2 changed files with 4 additions and 3 deletions
|
@ -410,12 +410,11 @@ public:
|
|||
return all_of(t, [&](auto ci) { return ci.coeff().is_small(); });
|
||||
};
|
||||
auto add_cut = [&](cut_result const& cr) {
|
||||
u_dependency* dep = cr.dep;
|
||||
lp::lpvar term_index = lra.add_term(cr.t.coeffs_as_vector(), UINT_MAX);
|
||||
term_index = lra.map_term_index_to_column_index(term_index);
|
||||
lra.update_column_type_and_bound(term_index,
|
||||
lp::lconstraint_kind::GE,
|
||||
lia.m_k, dep);
|
||||
cr.k, cr.dep);
|
||||
};
|
||||
auto _check_feasible = [&](void) {
|
||||
lra.find_feasible_solution();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue