Skip to content

Commit

Permalink
Added Kani to CI. (#1)
Browse files Browse the repository at this point in the history
* Added kani integration.

* Fix yaml problem.

* yaml hash problem

* No need to cd?

* Use new release, not the hash

* Added comment describing the unwind value.

Co-authored-by: Yoshiki Takashima <[email protected]>
  • Loading branch information
YoshikiTakashima and Yoshiki Takashima authored Jan 13, 2023
1 parent 14ac71e commit e73facc
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/continuous-integration-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,27 @@ jobs:
command: test
args: --no-default-features

kani:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Verify with Kani
uses: model-checking/[email protected]
with:
enable-propproof: true
args: |
--tests -p prost-types --default-unwind 3 \
--harness "tests::check_timestamp_roundtrip_via_system_time"
# --default-unwind N roughly corresponds to how much effort
# Kani will spend trying to prove correctness of the
# program. Higher the number, more programs can be proven
# correct. However, Kani will require more time and memory. If
# Kani fails with "Failed Checks: unwinding assertion," this
# number may need to be raised for Kani to succeed.

no-std:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit e73facc

Please sign in to comment.