-
Notifications
You must be signed in to change notification settings - Fork 68
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
Fixes for LogicValue operation bugs related to size, sign, math, and comparison #319
Conversation
Maybe update your Related Issue to verb Fix to allow auto close of issue 299 once the pull request being merged. E.g. Related issue(s)Fix #299 |
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.
Thank you for the contributions and tests!
I made a one-line change that fixes the original test. I haven't made tests for the other observations on the 64-bit boundary, |
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.
thank you this is looking great so far!
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 this all looks great to me, thank you so much!
Just a handful of minor cosmetic/comment changes before merging it in
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.
Looks great, thank you!
Description & Motivation
Adds two tests for wide bitvector comparisons. Adds a fix for one of them.
The remaining problem is that shifting a 1 into the signed position and then converting to bigint results in a negative number regardless.
Related Issue(s)
Fix #299
Testing
Created two tests that do comparisons. One just breaks the length check. The other puts a 1 in the sign location just before conversion to BigInt (the fix for the first).
Backwards-compatibility
The change is in the core logic comparison operation so more tests may be needed.
Documentation
No