3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-16 13:58:45 +00:00

cosmetics

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2025-03-07 12:57:30 -10:00
parent 4068720d06
commit 76b82318b8

View file

@ -2551,14 +2551,14 @@ namespace lp {
return print_lar_term_L(opened_ml, out);
}
// collect only fixed variables
// collect only fixed variables in a term
template <typename T>
term_with_index open_fixed_from_ml(const T& ml) const {
term_with_index r;
for (const auto& v : ml) {
for (const auto & p : lra.get_term(v.var()).ext_coeffs()) {
if (lra.column_is_fixed(p.var()))
r.add(v.coeff()*p.coeff(), p.var());
r.add(v.coeff() * p.coeff(), p.var());
}
}
return r;