-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Fix sign-handling bugs and false negatives in cast_sign_loss
#12126
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
Merged
Merged
Changes from 18 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
ee8fd82
Fix uncertain sign and remainder op handling in cast_sign_loss.rs
teor2345 02214f2
Expand method lists
teor2345 e51fcd0
Make pow_call_result_sign compile
teor2345 28f247e
Use the expanded method lists
teor2345 47339d0
Bless fixed cast_sign_loss false negatives
teor2345 c5e8487
Fix pow() to return more known signs
teor2345 e74fe43
Check for both signed and unsigned constant expressions
teor2345 8b615af
Fix clippy_dogfood
teor2345 11e0d6a
Move muldiv peeling into expr_sign
teor2345 4ab2ed3
Put muldiv peeling in its own method
teor2345 740441f
Use the visitor pattern instead of recusive functions
teor2345 6dfff19
clippy_dogfood
teor2345 d109e68
Add some TODO comments
teor2345 1cbb58b
Fix divmul peeling
teor2345 6670acd
Check for all-positive or all-negative sums
teor2345 f40279f
Add some more test cases
teor2345 367a403
Add test coverage for cast_sign_loss changes
teor2345 6bc7c96
cargo bless
teor2345 1e3c55e
Remove redundant uncertain_counts
teor2345 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
We don't need an uncertain count. In fact, whenever we encounter any uncertain sign, we can return
Uncertainright away in this method.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.
Thanks, I removed this and the uncertain_count in the add method in commit 1e3c55e