mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 17:45:32 +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
|
@ -101,6 +101,7 @@ namespace api {
|
|||
m_dt_plugin = static_cast<datatype_decl_plugin*>(m().get_plugin(m_dt_fid));
|
||||
|
||||
install_tactics(*this);
|
||||
std::cout << "alloc\n";
|
||||
}
|
||||
|
||||
|
||||
|
@ -113,6 +114,7 @@ namespace api {
|
|||
}
|
||||
if (m_params.owns_manager())
|
||||
m_manager.detach();
|
||||
std::cout << "dealloc " << memory::get_allocation_size() << "\n";
|
||||
}
|
||||
|
||||
context::set_interruptable::set_interruptable(context & ctx, event_handler & i):
|
||||
|
|
|
@ -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