-
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
Api #7097
Api #7097
Conversation
Signed-off-by: Lev Nachmanson <[email protected]>
Signed-off-by: Lev Nachmanson <[email protected]>
Signed-off-by: Lev Nachmanson <[email protected]>
|
||
class ul_pair { | ||
class lar_term; // forward definition | ||
class column { | ||
u_dependency* m_lower_bound_witness = nullptr; | ||
u_dependency* m_upper_bound_witness = nullptr; | ||
bool m_associated_with_row = 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.
currently, m_associated_with_row is set in tandem with m_term, so redundant?
src/math/lp/column.h
Outdated
// TODO - seems more straight-forward to just expose ul_pair as a struct with direct access to attributes. | ||
|
||
lar_term* term() const { return m_term; } | ||
lar_term*& term() { return m_term; } // for setting m_term |
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.
you actually use this?
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.
No, it is not used. Removed now.
if (col.term() != nullptr) { | ||
if (s.m_need_register_terms) | ||
s.deregister_normalized_term(*col.term()); | ||
delete col.term(); |
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.
or delete s.m_terms.back();
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.
we have col == s.m_terms.back() here already. I am not sure what we gain by using "delete s.m_terms.back()".
Signed-off-by: Lev Nachmanson <[email protected]>
No description provided.