-
Notifications
You must be signed in to change notification settings - Fork 277
Document union_find_replacet #3229
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
Document union_find_replacet #3229
Conversation
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.
Passed Diffblue compatibility checks (cbmc commit: 75b8386).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/89282695
src/util/union_find_replace.cpp
Outdated
/// if_exprt with branches of the previous kind | ||
/// \return the new mapped value | ||
/// Merge the set containing `a` and the set containing `b`. | ||
/// It is guaranteed that if `b` never appears as the first argument of a |
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.
Does this function provide that guarantee, or require it from the caller?
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.
I think that guarantee is too obscure/non-standard to provide.
To make anything the root, use re_root()
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.
I removed this part of the comment, because changing the implementation may break this.
In particular, the documentation for make_union was outdated.
75b8386
to
df01f72
Compare
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 PR failed Diffblue compatibility checks (cbmc commit: df01f72).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/89637573
Status will be re-evaluated on next push.
Please contact @peterschrammel, @thk123, or @allredj for support.
Common spurious failures:
- the cbmc commit has disappeared in the mean time (e.g. in a force-push)
- the author is not in the list of contributors (e.g. first-time contributors).
The incompatibility may have been introduced by an earlier PR. In that case merging this
PR should be avoided unless it fixes the current incompatibility.
In particular, the documentation for make_union was outdated.