mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 04:03:39 +00:00
use monomial variable, not the fixed variable
This commit is contained in:
parent
a08a3ee32b
commit
89ed4d6c8b
|
@ -69,7 +69,7 @@ namespace nla {
|
||||||
}
|
}
|
||||||
vector<std::pair<lp::mpq, lpvar>> coeffs;
|
vector<std::pair<lp::mpq, lpvar>> coeffs;
|
||||||
coeffs.push_back({coeff, free_var});
|
coeffs.push_back({coeff, free_var});
|
||||||
coeffs.push_back({mpq(-1), v});
|
coeffs.push_back({mpq(-1), m.var()});
|
||||||
lpvar j = lra.add_term(coeffs, UINT_MAX);
|
lpvar j = lra.add_term(coeffs, UINT_MAX);
|
||||||
lra.update_column_type_and_bound(j, llc::EQ, mpq(0), d);
|
lra.update_column_type_and_bound(j, llc::EQ, mpq(0), d);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue