mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 13:28:47 +00:00
parent
0735491557
commit
8d59355b88
|
@ -159,6 +159,10 @@ public:
|
||||||
|
|
||||||
// a is the coefficient by which we divided the term to normalize it
|
// a is the coefficient by which we divided the term to normalize it
|
||||||
lar_term get_normalized_by_min_var(mpq& a) const {
|
lar_term get_normalized_by_min_var(mpq& a) const {
|
||||||
|
if (m_coeffs.empty()) {
|
||||||
|
a = mpq(1, 1);
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
a = m_coeffs.begin()->m_value;
|
a = m_coeffs.begin()->m_value;
|
||||||
if (a.is_one()) {
|
if (a.is_one()) {
|
||||||
return *this;
|
return *this;
|
||||||
|
|
Loading…
Reference in a new issue