-
Notifications
You must be signed in to change notification settings - Fork 92
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
Add support for float_to_int_unchecked
#3629
Comments
@zhassan-aws @celinval Hello! May I know if there are any updates to share for this issue? Thank you very much! |
@Yenyun035 I'm currently working on it. The PR should be out by tomorrow. |
#3660 adds support for |
This PR adds support for the [`float_to_int_unchecked`](https://doc.rust-lang.org/std/intrinsics/fn.float_to_int_unchecked.html) intrinsic for `f32` and `f64`. Towards #3629 Keeping it as draft till I add more tests. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.
@zhassan-aws Thank you for your work! @celinval It looks like #3660 was merged into main, but I think that we should build Kani from the features/verify-rust-std branch. May I know when the features/verify-rust-std branch will be updated? Thank you. |
Yes, we are working on it! |
When I was testing my harness for
f32::to_int_unchecked
, I encountered the error indicating that float_to_int_unchecked is not currently supported by Kani, as shown below. Is it possible to support it?library/core/src/convert/num.rs
Line 20 to 35:Test harness:
Contracts added to
f32::to_int_unchecked
(inlibrary/core/src/num/f32.rs
):Thank you very much!
Originally posted by @Yenyun035 in model-checking/verify-rust-std#59 (comment)
The text was updated successfully, but these errors were encountered: