-
Notifications
You must be signed in to change notification settings - Fork 274
boolbvt::convert_constant is now independent of bitvector representation #3106
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
Conversation
81e2c26
to
6dfb412
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.
What is benefit of this at this time as it is certainly incomplete (just scrolling a few lines up shows another case where the binary string is used directly)? My bigger concern is performance - we will do this particular conversion a lot, and the only saviour might be caching?
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: 81e2c26).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/87102225
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).
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: 6dfb412).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/87102618
6dfb412
to
c27f976
Compare
Ok, new approach -- this one avoids going through mp_integer. |
c27f976
to
e2f2c22
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.
Passed Diffblue compatibility checks (cbmc commit: e2f2c22).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/87109398
0bb17ee
to
9ade5b4
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.
Passed Diffblue compatibility checks (cbmc commit: 9ade5b4).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/87123885
src/util/arith_tools.h
Outdated
@@ -164,4 +164,9 @@ mp_integer power(const mp_integer &base, const mp_integer &exponent); | |||
void mp_min(mp_integer &a, const mp_integer &b); | |||
void mp_max(mp_integer &a, const mp_integer &b); | |||
|
|||
/// get bit with given index from bit vector | |||
/// \param src: the bitvector representation | |||
/// \param bit_index: the index (0 is the least significant) |
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 guess I don't usually complain about too much documentation, but I'm worried about inconsistencies if we document twice?
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.
removed
9ade5b4
to
2313911
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.
Passed Diffblue compatibility checks (cbmc commit: 2313911).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/87130961
Uh oh!
There was an error while loading. Please reload this page.