mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 11:25:51 +00:00
disable normalize
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
5aec9b32bd
commit
6deb4dee37
2 changed files with 6 additions and 2 deletions
|
@ -486,20 +486,22 @@ namespace opt {
|
|||
}
|
||||
|
||||
model_based_opt::row& model_based_opt::row::normalize() {
|
||||
#if 0
|
||||
if (m_type == t_mod)
|
||||
return *this;
|
||||
rational D(abs(m_coeff));
|
||||
rational D(denominator(abs(m_coeff)));
|
||||
if (D == 0)
|
||||
D = 1;
|
||||
for (auto const& [id, coeff] : m_vars)
|
||||
if (coeff != 0)
|
||||
D = lcm(D, abs(coeff));
|
||||
D = lcm(D, denominator(abs(coeff)));
|
||||
if (D == 1)
|
||||
return *this;
|
||||
SASSERT(D > 0);
|
||||
for (auto & [id, coeff] : m_vars)
|
||||
coeff *= D;
|
||||
m_coeff *= D;
|
||||
#endif
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue