Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add obeys_key_model for usize and isize #1420

Merged
merged 1 commit into from
Jan 29, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions source/vstd/std_specs/hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,13 @@ pub broadcast proof fn axiom_u128_obeys_hash_table_key_model()
admit();
}

pub broadcast proof fn axiom_usize_obeys_hash_table_key_model()
ensures
#[trigger] obeys_key_model::<usize>(),
{
admit();
}

pub broadcast proof fn axiom_i8_obeys_hash_table_key_model()
ensures
#[trigger] obeys_key_model::<i8>(),
Expand Down Expand Up @@ -170,6 +177,13 @@ pub broadcast proof fn axiom_i128_obeys_hash_table_key_model()
admit();
}

pub broadcast proof fn axiom_isize_obeys_hash_table_key_model()
ensures
#[trigger] obeys_key_model::<isize>(),
{
admit();
}

pub broadcast proof fn axiom_box_bool_obeys_hash_table_key_model()
ensures
#[trigger] obeys_key_model::<Box<bool>>(),
Expand Down Expand Up @@ -931,11 +945,13 @@ pub broadcast group group_hash_axioms {
axiom_u32_obeys_hash_table_key_model,
axiom_u64_obeys_hash_table_key_model,
axiom_u128_obeys_hash_table_key_model,
axiom_usize_obeys_hash_table_key_model,
axiom_i8_obeys_hash_table_key_model,
axiom_i16_obeys_hash_table_key_model,
axiom_i32_obeys_hash_table_key_model,
axiom_i164_obeys_hash_table_key_model,
axiom_i128_obeys_hash_table_key_model,
axiom_isize_obeys_hash_table_key_model,
axiom_box_bool_obeys_hash_table_key_model,
axiom_box_integer_type_obeys_hash_table_key_model,
axiom_random_state_builds_valid_hashers,
Expand Down