3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-27 00:18:45 +00:00
This commit is contained in:
Nikolaj Bjorner 2022-04-02 17:50:45 -07:00
parent d0ef5948aa
commit 4b495e4b96
2 changed files with 8 additions and 3 deletions

View file

@ -217,14 +217,14 @@ template <typename T, typename X> void lp_dual_simplex<T, X>::fill_costs_bounds_
m_can_enter_basis[j] = true; m_can_enter_basis[j] = true;
this->set_scaled_cost(j); this->set_scaled_cost(j);
this->m_lower_bounds[j] = numeric_traits<T>::zero(); this->m_lower_bounds[j] = numeric_traits<T>::zero();
this->m_upper_bounds[j] =numeric_traits<T>::one(); this->m_upper_bounds[j] = numeric_traits<T>::one();
break; break;
} }
case column_type::free_column: { case column_type::free_column: {
m_can_enter_basis[j] = true; m_can_enter_basis[j] = true;
this->set_scaled_cost(j); this->set_scaled_cost(j);
this->m_upper_bounds[j] = free_bound; this->m_upper_bounds[j] = free_bound;
this->m_lower_bounds[j] = -free_bound; this->m_lower_bounds[j] = -free_bound;
break; break;
} }
case column_type::boxed: case column_type::boxed:

View file

@ -362,6 +362,11 @@ br_status bv2real_rewriter::mk_app_core(func_decl * f, unsigned num_args, expr *
tout << mk_pp(args[i], m()) << " "; tout << mk_pp(args[i], m()) << " ";
} }
tout << "\n";); tout << "\n";);
if (u().memory_exceeded()) {
std::cout << "tactic exception\n";
throw tactic_exception("bv2real-memory exceeded");
}
if(f->get_family_id() == m_arith.get_family_id()) { if(f->get_family_id() == m_arith.get_family_id()) {
switch (f->get_decl_kind()) { switch (f->get_decl_kind()) {
case OP_NUM: return BR_FAILED; case OP_NUM: return BR_FAILED;