Skip to content
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

Merged
merged 11 commits into from
Jan 25, 2024
Merged

Api #7097

merged 11 commits into from
Jan 25, 2024

Conversation

NikolajBjorner
Copy link
Contributor

No description provided.

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
t
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>

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;
Copy link
Contributor Author

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?

// 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
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you actually use this?

Copy link
Contributor

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();
Copy link
Contributor Author

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();

Copy link
Contributor

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()".

@NikolajBjorner NikolajBjorner merged commit bdb9106 into master Jan 25, 2024
21 checks passed
@levnach levnach deleted the api branch February 14, 2024 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants