3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-13 12:28:44 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-04-04 14:37:51 -07:00
parent 0735491557
commit 8d59355b88

View file

@ -159,6 +159,10 @@ public:
// a is the coefficient by which we divided the term to normalize it
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;
if (a.is_one()) {
return *this;