Skip to content

Commit

Permalink
Update library/kani_core/src/models.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
celinval authored Nov 22, 2024
1 parent 5c4d5b7 commit 97e9048
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions library/kani_core/src/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,10 @@ macro_rules! generate_models {

/// Compute the size of a slice or object with a slice tail.
///
/// Most information are extracted by the Kani compiler at compilation time,
/// except for the length of the slice.
/// Thus, alignment should be safe to use (power-of-two and smaller than isize::MAX).
/// The slice length may be a symbolic value which is computed at runtime.
/// All the other inputs are extracted and validated by Kani compiler,
/// i.e., these are well known concrete values that should be safe to use.
/// Example, align is a power-of-two and smaller than isize::MAX.
///
/// Thus, this generate the logic to ensure the size computation does not
/// does not overflow and it is smaller than `isize::MAX`.
Expand Down

0 comments on commit 97e9048

Please sign in to comment.