Skip to content

Autoharness status #3

Open
Open

Description

@github-actions

63%

of the functions in core, alloc and std have a harness

A harness is a test that Kani can prove for every possible input. Autoharness writes harnesses automatically. This page shows how far it gets on main.

Where every function stands, and functions with a harness over time

Updated every week · last updated Nov 10, 2026
The line covers core and std. alloc has been recorded only since November 2026.

The numbers today

Functions Share
All functions
in core, alloc and std
27,966 100%
Harness written
Autoharness wrote a harness for the function. Most have not been run yet
17,757 63%
Verified in CI
CI ran the harness and Kani proved it
246 0.9%

Updated after every merge · last updated Nov 17, 2026 · commit e618984 · run 44010574272

Why so few are verified: CI runs only the functions listed in kani.yml.

Why 10,209 functions have no harness yet

To write a harness, autoharness has to call the function with made-up arguments. It gets stuck in the ways below. All of them are fixed in Kani, not in this repository.

1. Kani cannot make up a value for an argument

5,467 functions (54%) · tracked in kani#4887, kani#5137

Some argument types are ones Kani does not know how to make up.

fn exists(path: &Path) -> io::Result<bool>   // Kani cannot make up a &Path
Which types cause this, most common first (1,588 types)
  • &path::Path: 169 functions
  • !: 141 functions
  • &ffi::os_str::OsStr: 93 functions
  • &mut collections::vec_deque::VecDeque<i32>: 77 functions
  • &mut vec::Vec<i32>: 60 functions
  • &byte_str::ByteString: 58 functions
  • &mut string::String: 58 functions
  • &ffi::os_str::OsString: 52 functions
  • core::io::BorrowedCursor<'_, u8>: 49 functions
  • &path::PathBuf: 46 functions
  • &[core::io::IoSlice<'_>]: 43 functions
  • &string::String: 42 functions
  • &mut str: 41 functions
  • &vec::Vec<i32>: 41 functions
  • &mut [core::io::IoSliceMut<'_>]: 36 functions
  • *mut [i32]: 35 functions
  • &collections::vec_deque::VecDeque<i32>: 34 functions
  • *const [i32]: 34 functions
  • &mut byte_str::ByteStr: 33 functions
  • ascii::EscapeDefault: 32 functions
  • &mut collections::linked_list::LinkedList<i32>: 29 functions
  • &mut vec::Vec<u8>: 28 functions
  • &collections::btree::set::BTreeSet<i32>: 27 functions
  • &alloc_crate::borrow::Cow<'_, ffi::os_str::OsStr>: 25 functions
  • &mut collections::binary_heap::BinaryHeap<i32>: 25 functions
  • path::PathBuf: 25 functions
  • &alloc_crate::borrow::Cow<'_, path::Path>: 24 functions
  • &ffi::c_str::CString: 24 functions
  • &mut boxed::Box<core::io::Empty>: 24 functions
  • &mut path::PathBuf: 24 functions
  • &mut sys::process::unix::common::Command: 23 functions
  • &rcs::arc::Arc<i32>: 23 functions
  • &rcs::rc::Rc<i32>: 23 functions
  • &sys::process::unix::common::Command: 23 functions
  • &!: 22 functions
  • &&str: 22 functions
  • &borrow::Cow<'_, str>: 21 functions
  • &dyn fmt::Debug: 21 functions
  • &mut collections::btree::map::BTreeMap<i32, i32>: 21 functions
  • &&ffi::os_str::OsStr: 20 functions
  • &&path::Path: 20 functions
  • &mut wtf8::Wtf8Buf: 20 functions
  • &collections::btree::map::BTreeMap<i32, i32>: 19 functions
  • &mut ascii::EscapeDefault: 19 functions
  • &mut collections::linked_list::CursorMut<'_, i32>: 19 functions
  • core_simd::vector::Simd<*const i32, 2>: 19 functions
  • core_simd::vector::Simd<*mut i32, 2>: 19 functions
  • fmt::Arguments<'_>: 19 functions
  • vec::Vec<i32>: 19 functions
  • &boxed::Box<i32>: 18 functions
  • and 1538 more
All 5,467 functions
  • alloc: ffi::c_str::CString::_from_vec_unchecked (unsafe)
  • alloc: ffi::c_str::CString::_from_vec_with_nul_unchecked (unsafe)
  • alloc: ffi::c_str::CString::from_vec_unchecked (unsafe)
  • alloc: ffi::c_str::CString::from_vec_with_nul_unchecked (unsafe)
  • alloc: str::convert_while_ascii (unsafe)
  • alloc: str::from_boxed_utf8_unchecked (unsafe)
  • alloc: string::String::as_mut_vec (unsafe)
  • alloc: string::String::from_utf8_unchecked (unsafe)
  • alloc: wtf8::Wtf8Buf::extend_from_slice_unchecked (unsafe)
  • alloc: wtf8::Wtf8Buf::from_bytes_unchecked (unsafe)
  • alloc: wtf8::Wtf8Buf::push_code_point_unchecked (unsafe)
  • core: <str::iter::Bytes<'_> as iter::traits::iterator::Iterator>::__iterator_get_unchecked (unsafe)
  • core: byte_str::traits::<impl slice::index::SliceIndex<byte_str::ByteStr> for (ops::range::Bound<usize>, ops::range::Bound<usize>)>::get_unchecked (unsafe)
  • core: byte_str::traits::<impl slice::index::SliceIndex<byte_str::ByteStr> for (ops::range::Bound<usize>, ops::range::Bound<usize>)>::get_unchecked_mut (unsafe)
  • core: byte_str::traits::<impl slice::index::SliceIndex<byte_str::ByteStr> for ops::index_range::IndexRange>::get_unchecked (unsafe)
  • core: byte_str::traits::<impl slice::index::SliceIndex<byte_str::ByteStr> for ops::index_range::IndexRange>::get_unchecked_mut (unsafe)
  • core: byte_str::traits::<impl slice::index::SliceIndex<byte_str::ByteStr> for ops::range::Range<usize>>::get_unchecked (unsafe)
  • core: byte_str::traits::<impl slice::index::SliceIndex<byte_str::ByteStr> for ops::range::Range<usize>>::get_unchecked_mut (unsafe)
  • core: byte_str::traits::<impl slice::index::SliceIndex<byte_str::ByteStr> for ops::range::RangeFrom<usize>>::get_unchecked (unsafe)
  • core: byte_str::traits::<impl slice::index::SliceIndex<byte_str::ByteStr> for ops::range::RangeFrom<usize>>::get_unchecked_mut (unsafe)
  • core: byte_str::traits::<impl slice::index::SliceIndex<byte_str::ByteStr> for ops::range::RangeFull>::get_unchecked (unsafe)
  • core: byte_str::traits::<impl slice::index::SliceIndex<byte_str::ByteStr> for ops::range::RangeFull>::get_unchecked_mut (unsafe)
  • core: byte_str::traits::<impl slice::index::SliceIndex<byte_str::ByteStr> for ops::range::RangeInclusive<usize>>::get_unchecked (unsafe)
  • core: byte_str::traits::<impl slice::index::SliceIndex<byte_str::ByteStr> for ops::range::RangeInclusive<usize>>::get_unchecked_mut (unsafe)
  • core: byte_str::traits::<impl slice::index::SliceIndex<byte_str::ByteStr> for ops::range::RangeTo<usize>>::get_unchecked (unsafe)
  • core: byte_str::traits::<impl slice::index::SliceIndex<byte_str::ByteStr> for ops::range::RangeTo<usize>>::get_unchecked_mut (unsafe)
  • core: byte_str::traits::<impl slice::index::SliceIndex<byte_str::ByteStr> for ops::range::RangeToInclusive<usize>>::get_unchecked (unsafe)
  • core: byte_str::traits::<impl slice::index::SliceIndex<byte_str::ByteStr> for ops::range::RangeToInclusive<usize>>::get_unchecked_mut (unsafe)
  • core: byte_str::traits::<impl slice::index::SliceIndex<byte_str::ByteStr> for range::Range<usize>>::get_unchecked (unsafe)
  • core: byte_str::traits::<impl slice::index::SliceIndex<byte_str::ByteStr> for range::Range<usize>>::get_unchecked_mut (unsafe)
  • core: byte_str::traits::<impl slice::index::SliceIndex<byte_str::ByteStr> for range::RangeFrom<usize>>::get_unchecked (unsafe)
  • core: byte_str::traits::<impl slice::index::SliceIndex<byte_str::ByteStr> for range::RangeFrom<usize>>::get_unchecked_mut (unsafe)
  • core: byte_str::traits::<impl slice::index::SliceIndex<byte_str::ByteStr> for range::RangeInclusive<usize>>::get_unchecked (unsafe)
  • core: byte_str::traits::<impl slice::index::SliceIndex<byte_str::ByteStr> for range::RangeInclusive<usize>>::get_unchecked_mut (unsafe)
  • core: byte_str::traits::<impl slice::index::SliceIndex<byte_str::ByteStr> for range::RangeToInclusive<usize>>::get_unchecked (unsafe)
  • core: byte_str::traits::<impl slice::index::SliceIndex<byte_str::ByteStr> for range::RangeToInclusive<usize>>::get_unchecked_mut (unsafe)
  • core: byte_str::traits::<impl slice::index::SliceIndex<byte_str::ByteStr> for usize>::get_unchecked (unsafe)
  • core: byte_str::traits::<impl slice::index::SliceIndex<byte_str::ByteStr> for usize>::get_unchecked_mut (unsafe)
  • core: fmt::Formatter::<'a>::write_formatted_parts::write_bytes (unsafe)
  • core: fmt::rt::Argument::<'_>::fmt (unsafe)
  • core: intrinsics::va_end (unsafe)
  • core: io::error::Custom::from_raw (unsafe)
  • core: io::error::Error::from_custom_owner (unsafe)
  • core: io::error::Error::from_raw_os_error_with_functions (unsafe)
  • core: io::error::os_functions::set_functions (unsafe)
  • core: str::<impl str>::as_bytes_mut (unsafe)
  • core: str::<impl str>::slice_mut_unchecked (unsafe)
  • core: str::<impl str>::split_at_mut_unchecked (unsafe)
  • core: str::traits::<impl slice::index::SliceIndex<str> for (ops::range::Bound<usize>, ops::range::Bound<usize>)>::get_unchecked (unsafe)
  • core: str::traits::<impl slice::index::SliceIndex<str> for (ops::range::Bound<usize>, ops::range::Bound<usize>)>::get_unchecked_mut (unsafe)
  • and 5417 more

2. The function is generic

3,381 functions (33%) · tracked in kani#4888, kani#4889

A generic function works for many types. Autoharness has to pick one to test with, and here it found none.

fn max_by<T, F>(v1: T, v2: T, compare: F) -> T   // which types should T and F be?
All 3,381 functions
  • alloc: collections::btree::navigate::<impl collections::btree::node::Handle<collections::btree::node::NodeRef<BorrowType, K, V, collections::btree::node::marker::Leaf>, collections::btree::node::marker::Edge>>::perform_next_back_unchecked (unsafe)
  • alloc: collections::btree::navigate::<impl collections::btree::node::Handle<collections::btree::node::NodeRef<BorrowType, K, V, collections::btree::node::marker::Leaf>, collections::btree::node::marker::Edge>>::perform_next_unchecked (unsafe)
  • alloc: collections::btree::navigate::<impl collections::btree::node::NodeRef<BorrowType, K, V, collections::btree::node::marker::LeafOrInternal>>::find_leaf_edges_spanning_range (unsafe)
  • alloc: collections::btree::node::NodeRef::<collections::btree::node::marker::Mut<'a>, K, V, Type>::key_area_mut (unsafe)
  • alloc: collections::btree::node::NodeRef::<collections::btree::node::marker::Mut<'a>, K, V, Type>::val_area_mut (unsafe)
  • alloc: collections::btree::node::NodeRef::<collections::btree::node::marker::Mut<'a>, K, V, collections::btree::node::marker::Internal>::edge_area_mut (unsafe)
  • alloc: collections::vec_deque::VecDeque::<T, A>::write_iter (unsafe)
  • alloc: collections::vec_deque::VecDeque::<T, A>::write_iter_wrapping (unsafe)
  • alloc: collections::vec_deque::splice::<impl collections::vec_deque::drain::Drain<'_, T, A>>::fill (unsafe)
  • alloc: io::read::append_to_string (unsafe)
  • alloc: rcs::arc::Arc::<T>::allocate_for_layout (unsafe)
  • alloc: rcs::arc::Arc::<T>::initialize_arcinner (unsafe)
  • alloc: rcs::arc::Arc::<T>::try_allocate_for_layout (unsafe)
  • alloc: rcs::rc::Rc::<T>::allocate_for_layout (unsafe)
  • alloc: rcs::rc::Rc::<T>::try_allocate_for_layout (unsafe)
  • alloc: task::local_raw_waker::clone_waker (unsafe)
  • alloc: task::local_raw_waker::drop_waker (unsafe)
  • alloc: task::local_raw_waker::wake (unsafe)
  • alloc: task::local_raw_waker::wake_by_ref (unsafe)
  • alloc: task::raw_waker::clone_waker (unsafe)
  • alloc: task::raw_waker::drop_waker (unsafe)
  • alloc: task::raw_waker::wake (unsafe)
  • alloc: task::raw_waker::wake_by_ref (unsafe)
  • alloc: vec::Vec::<T, A>::dedup_tail (unsafe)
  • alloc: vec::splice::<impl vec::drain::Drain<'_, T, A>>::fill (unsafe)
  • core: <&A as alloc::Allocator>::deallocate (unsafe)
  • core: <&A as alloc::Allocator>::grow (unsafe)
  • core: <&A as alloc::Allocator>::grow_zeroed (unsafe)
  • core: <&A as alloc::Allocator>::shrink (unsafe)
  • core: <&mut A as alloc::Allocator>::deallocate (unsafe)
  • core: <&mut A as alloc::Allocator>::grow (unsafe)
  • core: <&mut A as alloc::Allocator>::grow_zeroed (unsafe)
  • core: <&mut A as alloc::Allocator>::shrink (unsafe)
  • core: <A as alloc::global::GlobalAlloc>::alloc (unsafe)
  • core: <A as alloc::global::GlobalAlloc>::alloc_zeroed (unsafe)
  • core: <A as alloc::global::GlobalAlloc>::dealloc (unsafe)
  • core: <A as alloc::global::GlobalAlloc>::realloc (unsafe)
  • core: <iter::adapters::GenericShunt<'_, I, R> as iter::adapters::SourceIter>::as_inner (unsafe)
  • core: <iter::adapters::array_chunks::ArrayChunks<I, N> as iter::adapters::SourceIter>::as_inner (unsafe)
  • core: <iter::adapters::cloned::Cloned<I> as iter::adapters::SourceIter>::as_inner (unsafe)
  • core: <iter::adapters::cloned::Cloned<I> as iter::traits::iterator::Iterator>::__iterator_get_unchecked (unsafe)
  • core: <iter::adapters::copied::Copied<I> as iter::adapters::SourceIter>::as_inner (unsafe)
  • core: <iter::adapters::copied::Copied<I> as iter::traits::iterator::Iterator>::__iterator_get_unchecked (unsafe)
  • core: <iter::adapters::enumerate::Enumerate<I> as iter::adapters::SourceIter>::as_inner (unsafe)
  • core: <iter::adapters::filter::Filter<I, P> as iter::adapters::SourceIter>::as_inner (unsafe)
  • core: <iter::adapters::filter_map::FilterMap<I, F> as iter::adapters::SourceIter>::as_inner (unsafe)
  • core: <iter::adapters::flatten::FlatMap<I, U, F> as iter::adapters::SourceIter>::as_inner (unsafe)
  • core: <iter::adapters::flatten::Flatten<I> as iter::adapters::SourceIter>::as_inner (unsafe)
  • core: <iter::adapters::fuse::Fuse<I> as iter::adapters::SourceIter>::as_inner (unsafe)
  • core: <iter::adapters::inspect::Inspect<I, F> as iter::adapters::SourceIter>::as_inner (unsafe)
  • and 3331 more

3. An argument can be any length

1,134 functions (11%) · tracked in kani#4890

The argument is a string or a slice. Kani can only test it up to a maximum length, and CI does not set one.

fn from_utf8(v: &[u8]) -> Result<&str, Utf8Error>   // v can be any length
Which types cause this, most common first (69 types)
  • &str: 285 functions
  • &[u8]: 189 functions
  • &[i32]: 158 functions
  • &mut [i32]: 120 functions
  • &mut [u8]: 83 functions
  • &byte_str::ByteStr: 48 functions
  • &core::ffi::CStr: 38 functions
  • &mut fmt::Formatter<'_>: 35 functions
  • &wtf8::Wtf8: 28 functions
  • &mut [mem::maybe_uninit::MaybeUninit<u8>]: 23 functions
  • &ffi::c_str::CStr: 20 functions
  • &fmt::Formatter<'_>: 13 functions
  • &mut [mem::maybe_uninit::MaybeUninit<i32>]: 13 functions
  • &core::wtf8::Wtf8: 9 functions
  • &[char]: 7 functions
  • &mut [usize]: 7 functions
  • &[u16]: 6 functions
  • &[usize]: 5 functions
  • &core::byte_str::ByteStr: 5 functions
  • &mut [core::mem::MaybeUninit<i32>]: 5 functions
  • &[u64]: 4 functions
  • &mut [u16]: 4 functions
  • &mut [mem::maybe_uninit::MaybeUninit<usize>]: 3 functions
  • &mut core::fmt::Formatter<'_>: 3 functions
  • &[ascii::ascii_char::AsciiChar]: 2 functions
  • &[i16]: 2 functions
  • &[i64]: 2 functions
  • &[isize]: 2 functions
  • &[mem::maybe_uninit::MaybeUninit<i32>]: 2 functions
  • &[u32]: 2 functions
  • &mut [i16]: 2 functions
  • &mut [i64]: 2 functions
  • &mut [i8]: 2 functions
  • &mut [isize]: 2 functions
  • &mut [u32]: 2 functions
  • &mut [u64]: 2 functions
  • &[[i32; 2]]: 1 function
  • &[f32]: 1 function
  • &[f64]: 1 function
  • &[i128]: 1 function
  • &[i8]: 1 function
  • &[mem::maybe_uninit::MaybeUninit<u8>]: 1 function
  • &[u128]: 1 function
  • &mut [[i32; 2]]: 1 function
  • &mut [bool]: 1 function
  • &mut [f32]: 1 function
  • &mut [f64]: 1 function
  • &mut [i128]: 1 function
  • &mut [mem::maybe_uninit::MaybeUninit<i128>]: 1 function
  • &mut [mem::maybe_uninit::MaybeUninit<i16>]: 1 function
  • and 19 more
All 1,134 functions
  • alloc: str::replace_ascii (unsafe)
  • core: <byte_str::ByteStr as clone::CloneToUninit>::clone_to_uninit (unsafe)
  • core: <ffi::c_str::CStr as clone::CloneToUninit>::clone_to_uninit (unsafe)
  • core: <str as clone::CloneToUninit>::clone_to_uninit (unsafe)
  • core: <wtf8::Wtf8 as clone::CloneToUninit>::clone_to_uninit (unsafe)
  • core: ffi::c_str::CStr::from_bytes_with_nul_unchecked (unsafe)
  • core: fmt::num::<impl u128>::_fmt (unsafe)
  • core: fmt::num::<impl u128>::_fmt_inner (unsafe)
  • core: fmt::num::imp::<impl u16>::_fmt (unsafe)
  • core: fmt::num::imp::<impl u16>::_fmt_inner (unsafe)
  • core: fmt::num::imp::<impl u32>::_fmt (unsafe)
  • core: fmt::num::imp::<impl u32>::_fmt_inner (unsafe)
  • core: fmt::num::imp::<impl u64>::_fmt (unsafe)
  • core: fmt::num::imp::<impl u64>::_fmt_inner (unsafe)
  • core: fmt::num::imp::<impl u8>::_fmt (unsafe)
  • core: fmt::num::imp::<impl u8>::_fmt_inner (unsafe)
  • core: fmt::num::imp::<impl usize>::_fmt (unsafe)
  • core: fmt::num::imp::<impl usize>::_fmt_inner (unsafe)
  • core: fmt::num::slice_buffer_to_str (unsafe)
  • core: fmt::num::write_quad (unsafe)
  • core: hash::sip::u8to64_le (unsafe)
  • core: num::imp::flt2dec::strategy::grisu::format_exact_opt::possibly_round (unsafe)
  • core: slice::ascii::<impl [u8]>::as_ascii_unchecked (unsafe)
  • core: str::<impl str>::as_ascii_unchecked (unsafe)
  • core: str::<impl str>::from_utf8_unchecked (unsafe)
  • core: str::<impl str>::from_utf8_unchecked_mut (unsafe)
  • core: str::<impl str>::slice_unchecked (unsafe)
  • core: str::<impl str>::split_at_unchecked (unsafe)
  • core: str::converts::from_utf8_unchecked (unsafe)
  • core: str::converts::from_utf8_unchecked_mut (unsafe)
  • core: str::pattern::small_slice_eq (unsafe)
  • core: wtf8::Wtf8::from_bytes_unchecked (unsafe)
  • core: wtf8::Wtf8::from_mut_bytes_unchecked (unsafe)
  • core: wtf8::slice_unchecked (unsafe)
  • std: ffi::os_str::OsStr::from_encoded_bytes_unchecked (unsafe)
  • std: path::Path::from_u8_slice (unsafe)
  • std: sys::backtrace::_print_fmt (unsafe)
  • std: sys::os_str::bytes::Slice::from_encoded_bytes_unchecked (unsafe)
  • alloc: <&[u8] as ffi::c_str::CString::new::SpecNewImpl>::spec_new_impl
  • alloc: <&mut [u8] as ffi::c_str::CString::new::SpecNewImpl>::spec_new_impl
  • alloc: <&str as ffi::c_str::CString::new::SpecNewImpl>::spec_new_impl
  • alloc: <byte_str::ByteString as core::convert::From<&core::byte_str::ByteStr>>::from
  • alloc: <byte_str::ByteString as core::str::FromStr>::from_str
  • alloc: <ffi::c_str::CString as core::convert::From<&core::ffi::CStr>>::from
  • alloc: <ffi::c_str::CString as core::str::FromStr>::from_str
  • alloc: <i32 as slice::<impl [T]>::to_vec_in::ConvertVec>::to_vec::<alloc::Global>
  • alloc: <rcs::arc::Arc<[i32]> as core::convert::From<&[i32]>>::from
  • alloc: <rcs::arc::Arc<[i32]> as core::convert::From<&mut [i32]>>::from
  • alloc: <rcs::arc::Arc<[i32]> as rcs::arc::ArcFromSlice<i32>>::from_slice
  • alloc: <rcs::arc::Arc<str> as core::convert::From<&str>>::from
  • and 1084 more

The remaining 227 functions (2%) have other reasons, such as a function with no body.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions