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
{{ message }}
Repository navigation
-Z uninit-checks: the integer_min, integer_max and cold_path intrinsics are reported as unsupported #5164
Z-Kani CompilerIssues that require some changes to the compiler[F] Spurious FailureIssues that cause Kani verification to fail despite the code being correct.
With -Z uninit-checks, any harness that reaches these intrinsics fails with
Kani does not support reasoning about memory initialization of intrinsic `Unimplemented { name: "integer_min", issue_link: "..." }`.
None of them touches memory: integer_min/integer_max return one of their two integer arguments (they back Ord::min/max for integers in current core), and cold_path is a hint with no arguments. So there's nothing to check, and they can go in the list of intrinsics that need no instrumentation.
They are common in std: in verify-rust-std's VecDeque harnesses (#681), 26 failures across resize_with, append, shrink_to, wrap_copy and others come from these three (integer_min 20, integer_max 4, cold_path 2), so every harness that calls cmp::min on a length fails.
kani -Z uninit-checks min.rs at c5e65fd fails with the "does not support reasoning about memory initialization of intrinsic" check for both integer_min and integer_max; without the flag it verifies.
Z-Kani CompilerIssues that require some changes to the compiler[F] Spurious FailureIssues that cause Kani verification to fail despite the code being correct.
Activity