Skip to content

Commit

Permalink
fix(prusti): Add #[trusted] attribute to play_game functions
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuSoysal authored Mar 5, 2024
1 parent 935463d commit ddc9f72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use prusti_contracts::*;

const MAX_FIBONACCI: u32 = 2_971_215_073;

#[trusted]
pub fn play_game(n: u32) {
println!("{}", fizz_buzz_fibonacci(n));
}
Expand Down
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#![feature(test)]
extern crate test;

use prusti_contracts::*;

use template_exercisme::play_game;

#[trusted]
fn main() {
let args: Vec<String> = std::env::args().collect();
let i = args
Expand Down

0 comments on commit ddc9f72

Please sign in to comment.