Skip to content

Commit

Permalink
Removed kani assumes removed from proof_for_contract
Browse files Browse the repository at this point in the history
  • Loading branch information
aa-luna committed Oct 8, 2024
1 parent daf1576 commit 21ae29e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions library/core/src/num/nonzero.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2213,9 +2213,6 @@ nonzero_integer! {
fn nonzero_check_new_unchecked() {
let x: i32 = kani::any(); // Generates a symbolic value of type i32

// Only proceed if x is not zero, because passing zero would violate the precondition
kani::assume(x != 0);

unsafe {
let _ = NonZeroI32::new_unchecked(x); // Calls NonZero::new_unchecked
}
Expand Down

0 comments on commit 21ae29e

Please sign in to comment.