Skip to content

Commit

Permalink
rlimit bump
Browse files Browse the repository at this point in the history
  • Loading branch information
karthikbhargavan committed Dec 18, 2024
1 parent 20cee83 commit d345143
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/barrett/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ pub(crate) const FIELD_MODULUS: i32 = 3329;
/// `|result| ≤ FIELD_MODULUS / 2 · (|value|/BARRETT_R + 1)
///
/// In particular, if `|value| < BARRETT_R`, then `|result| < FIELD_MODULUS`.
#[hax::fstar::options("--z3rlimit 200")]
#[hax::requires((i64::from(value) >= -BARRETT_R && i64::from(value) <= BARRETT_R))]
#[hax::ensures(|result| result > -FIELD_MODULUS && result < FIELD_MODULUS &&
result % FIELD_MODULUS == value % FIELD_MODULUS)]
Expand Down

0 comments on commit d345143

Please sign in to comment.