Skip to content

Commit

Permalink
Fix test and update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
celinval committed Aug 2, 2023
1 parent 2b9838f commit 5ea6ded
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
9 changes: 7 additions & 2 deletions docs/src/reference/attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ VERIFICATION:- SUCCESSFUL
This may change the verification time required to verify a harness.

At present, `<solver>` can be one of:
- `minisat` (default): [MiniSat](http://minisat.se/).
- `cadical`: [CaDiCaL](https://github.com/arminbiere/cadical).
- `minisat`: [MiniSat](http://minisat.se/).
- `cadical` (default): [CaDiCaL](https://github.com/arminbiere/cadical).
- `kissat`: [kissat](https://github.com/arminbiere/kissat).
- `bin="<SAT_SOLVER_BINARY>"`: A custom solver binary, `"<SAT_SOLVER_BINARY>"`, that must be in path.

Expand All @@ -226,6 +226,11 @@ fn check() {

Changing the solver may result in different verification times depending on the harness.

Note that the default solver may vary depending on Kani's version.
We highly recommend users to annotate their harnesses if the choice of solver
has a major impact on performance, even if the solver used is the current
default one.

## `#[kani::stub(<original>, <replacement>)]`

**Replaces the function/method with name <original> with the function/method with name <replacement> during compilation**
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/concrete-playback/message-order/expected
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Concrete playback unit test for `dummy`:
#[test]
fn kani_concrete_playback_dummy
let concrete_vals: Vec<Vec<u8>> = vec![
// 32778
vec![10, 128, 0, 0],
// 10
vec![10, 0, 0, 0],
];
kani::concrete_playback_run(concrete_vals, dummy);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/concrete-playback/message-order/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@

#[kani::proof]
fn dummy() {
kani::cover!(kani::any::<u32>() != 10);
kani::cover!(kani::any::<u32>() == 10);
}

0 comments on commit 5ea6ded

Please sign in to comment.