Skip to content

Commit

Permalink
Use kani::any() instead of concrete value in test_ctlz_nonzero
Browse files Browse the repository at this point in the history
  • Loading branch information
adpaco-aws committed Mar 3, 2022
1 parent bef1597 commit 0ac5186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/kani/Intrinsics/Count/ctlz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ macro_rules! test_ctlz {
// exclude zero
macro_rules! test_ctlz_nonzero {
($ty:ty) => {
let var_nonzero: $ty = 8;
let var_nonzero: $ty = kani::any();
kani::assume(var_nonzero != 0);
unsafe {
assert!(ctlz(var_nonzero) == ctlz_nonzero(var_nonzero));
Expand Down

0 comments on commit 0ac5186

Please sign in to comment.