Skip to content

Commit

Permalink
Added missing expected file
Browse files Browse the repository at this point in the history
  • Loading branch information
JustusAdam committed Dec 14, 2023
1 parent 6192f3e commit 00bfe6e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
20 changes: 20 additions & 0 deletions tests/expected/function-contract/modifies/vec_pass.expected
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
modify.assertion\
- Status: SUCCESS\
- Description: "v.len() > 0"\
in function modify

modify_replace.assertion\
- Status: SUCCESS\
- Description: "element set"\
in function modify_replace

modify_replace.assertion\
- Status: SUCCESS\
- Description: "vector tail equality"\
in function modify_replace

assertion\
- Status: SUCCESS\
- Description: "v [0] == src"

VERIFICATION:- SUCCESSFUL
4 changes: 2 additions & 2 deletions tests/expected/function-contract/modifies/vec_pass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ fn modify(v: &mut Vec<u32>, src: u32) {
v[0] = src
}

//#[kani::unwind(10)]
//#[kani::proof_for_contract(modify)]
#[kani::unwind(10)]
#[kani::proof_for_contract(modify)]
fn main() {
let v_len = kani::any_where(|i| *i < 4);
let mut v: Vec<u32> = vec![kani::any()];
Expand Down

0 comments on commit 00bfe6e

Please sign in to comment.