// Copyright Kani Contributors // SPDX-License-Identifier: Apache-2.0 OR MIT // Test the Kani library's API for creating a non-det slice fn check(s: &[u8]) { let len = s.len(); assert!(len >= 0 && len < 6, "Expected slice length to be between 0 and 5. Got {}.", len); } #[kani::proof] fn main() { // returns a slice of length between 0 and 5 with non-det content let slice: kani::slice::AnySlice = kani::slice::any_slice(); check(&slice); }