Skip to content
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

Bounds inference does not catch overflow for UInt64 #5682

Open
rootjalex opened this issue Feb 1, 2021 · 0 comments
Open

Bounds inference does not catch overflow for UInt64 #5682

rootjalex opened this issue Feb 1, 2021 · 0 comments

Comments

@rootjalex
Copy link
Member

Overflow has defined behavior for UInt64, specifically that it wraps. Bounds inference currently only catches overflow for unsigned integers with <= 32 bits and signed integers <= 16 bits. We currently use upcasting and can-prove (seen in #5618), but can't upcast for UInt64 yet. If we add such functionality, or find some other way to prove no overflow, this should be added to bounds inference.

Note that this is not specifically referencing catching overflow using UIntImms, but general UInt64 types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant