Skip to content

Commit

Permalink
Fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
zhassan-aws committed Nov 27, 2024
1 parent e6067e9 commit 1523ad1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/kani_core/src/float.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#[macro_export]
macro_rules! generate_float {
($core:path) => {
use super::kani_intrinsic;
/// Returns whether the given float `value` satisfies the range
/// condition of the `to_int_unchecked` methods, namely that the `value`
/// after truncation is in range of the target `Int`
Expand All @@ -24,8 +25,9 @@ macro_rules! generate_float {
/// assert!(fits_in_u32);
/// ```
#[kanitool::fn_marker = "FloatToIntInRangeHook"]
#[inline(never)]
pub fn float_to_int_in_range<Float, Int>(value: Float) -> bool {
kani::kani_intrinsic()
kani_intrinsic()
}
};
}

0 comments on commit 1523ad1

Please sign in to comment.