Skip to content

Commit

Permalink
Syntax fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tautschnig committed Feb 6, 2024
1 parent 2a286fc commit a044577
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/kani/Intrinsics/Math/Arith/powf32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ fn verify_pow() {
let x: f32 = kani::any();
kani::assume(x.is_normal());
let x2 = x.powf(2.0);
assert!(x2 >= 0);
assert!(x2 >= 0.0);
}
4 changes: 2 additions & 2 deletions tests/kani/Intrinsics/Math/Arith/powi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ fn verify_powi32() {
let x: f32 = kani::any();
kani::assume(x.is_normal());
let x2 = x.powi(2);
assert!(x2 >= 0);
assert!(x2 >= 0.0);
}

#[kani::proof]
fn verify_powi64() {
let x: f64 = kani::any();
kani::assume(x.is_normal());
let x2 = x.powi(2);
assert!(x2 >= 0);
assert!(x2 >= 0.0);
}

0 comments on commit a044577

Please sign in to comment.