You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#[requires(self.as_ptr().cast::<T>().align_offset(core::mem::align_of::<T>()) == 0)]// Ensure the pointer is properly aligned
1587
1587
#[requires(self.len().checked_mul(core::mem::size_of::<T>()).is_some() && self.len()* core::mem::size_of::<T>() <= isize::MAXasusize)]// Ensure the slice size does not exceed isize::MAX
1588
+
#[requires(kani::mem::same_allocation(self.as_ptr()as*const(),self.as_ptr().byte_add(self.len()* core::mem::size_of::<T>())as*const()))]// Ensure the slice is contained within a single allocation
#[requires(self.as_ptr().cast::<T>().align_offset(core::mem::align_of::<T>()) == 0)]// Ensure the pointer is properly aligned
1656
1657
#[requires(self.len().checked_mul(core::mem::size_of::<T>()).is_some() && self.len()* core::mem::size_of::<T>() <= isize::MAXasusize)]// Ensure the slice size does not exceed isize::MAX
1658
+
#[requires(kani::mem::same_allocation(self.as_ptr()as*const(),self.as_ptr().byte_add(self.len()* core::mem::size_of::<T>())as*const()))]// Ensure the slice is contained within a single allocation
0 commit comments