-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove operation with doubles #6623
Conversation
Signed-off-by: Lev Nachmanson <[email protected]>
Signed-off-by: Lev Nachmanson <[email protected]>
Signed-off-by: Lev Nachmanson <[email protected]>
Signed-off-by: Lev Nachmanson <[email protected]>
Signed-off-by: Lev Nachmanson <[email protected]>
Signed-off-by: Lev Nachmanson <[email protected]>
Signed-off-by: Lev Nachmanson <[email protected]>
Signed-off-by: Lev Nachmanson <[email protected]>
This reverts commit 547254a.
Signed-off-by: Lev Nachmanson <[email protected]>
Still there is some dead code, but at this moment a review might be helpful. |
m_out << s << " "; | ||
} | ||
m_out << std::endl; | ||
return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add comment in code to mark for deletion
src/math/lp/lar_solver.cpp
Outdated
@@ -285,7 +282,7 @@ namespace lp { | |||
clean_popped_elements(m, m_rows_with_changed_bounds); | |||
clean_inf_set_of_r_solver_after_pop(); | |||
lp_assert(m_settings.simplex_strategy() == simplex_strategy_enum::undecided || | |||
(!use_tableau()) || m_mpq_lar_core_solver.m_r_solver.reduced_costs_are_correct_tableau()); | |||
( m_mpq_lar_core_solver.m_r_solver.reduced_costs_are_correct_tableau())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
skip parenthesis
src/math/lp/lar_solver.cpp
Outdated
m_mpq_lar_core_solver.m_r_solver.solve_Bd(j, m_column_buffer); | ||
for (unsigned i : m_column_buffer.m_index) | ||
insert_row_with_changed_bounds(i); | ||
lp_assert(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use UNREACHABLE() instead of lp_assert(false)
add comment to mark for deletion
src/math/lp/lar_solver.cpp
Outdated
@@ -696,7 +676,7 @@ namespace lp { | |||
} | |||
|
|||
void lar_solver::change_basic_columns_dependend_on_a_given_nb_column(unsigned j, const numeric_pair<mpq>& delta) { | |||
if (use_tableau()) { | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how many { are needed?
src/math/lp/lp_primal_core_solver.h
Outdated
@@ -1000,7 +914,7 @@ class lp_primal_core_solver:public lp_core_solver_base<T, X> { | |||
m_lower_bounds_dummy.resize(A.column_count(), zero_of_type<T>()); | |||
m_enter_price_eps = numeric_traits<T>::precise() ? numeric_traits<T>::zero() : T(1e-5); | |||
#ifdef Z3DEBUG | |||
// check_correctness(); | |||
lp_assert(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
if ((!numeric_traits<T>::precise()) && this->A_mult_x_is_off()) { | ||
this->set_status(lp_status::FLOATING_POINT_ERROR); | ||
return 0; | ||
} | ||
do { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you delete !numeric_traits::precise() as option, then other occurrences can be removed
break; | ||
} | ||
init_reduced_costs(); | ||
lp_assert(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UNREACHABLE()
Signed-off-by: Lev Nachmanson <[email protected]>
Signed-off-by: Lev Nachmanson <[email protected]>
No description provided.