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
ff: groebner bases for incremental ideals #9199
Conversation
|
||
std::unique_ptr<context::Context> d_context; | ||
|
||
CoCoA::ring d_polyRing; |
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.
Can you give some quick doc on these members?
What context do they depend on? When are they computed? Etc.
void pop(); | ||
|
||
private: | ||
void ensureSolution(); |
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.
Doc.
private: | ||
void ensureSolution(); | ||
|
||
std::unique_ptr<context::Context> d_context; |
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.
What is this used for?
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.
Good question. Documented.
EXPECT_EQ(ideal.hasSolution(), false); | ||
} | ||
|
||
#endif // CVC5_USE_COCOA |
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.
This has the same issue with the guard :)
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.
Good catch 🤦
Thanks for the comment, Andy. Indeed the documentation was not up to scruff. Let me know what you think now, and whether you have more comments. |
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.
One minor comment, else LGTM.
#include <CoCoA/SparsePolyRing.H> | ||
#include <CoCoA/ring.H> | ||
#include <CoCoA/symbol.H> | ||
#endif // CVC5_USE_COCOA |
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.
Like the other unit tests, let's just guard the whole file.
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.
Whoops. Good catch.
No description provided.