File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change 53
53
- name : Run Kani Verification
54
54
run : head/scripts/run-kani.sh --path ${{github.workspace}}/head
55
55
56
+ kani-autoharness :
57
+ name : Verify std library using autoharness
58
+ runs-on : ${{ matrix.os }}
59
+ strategy :
60
+ matrix :
61
+ os : [ubuntu-latest, macos-latest]
62
+ include :
63
+ - os : ubuntu-latest
64
+ base : ubuntu
65
+ - os : macos-latest
66
+ base : macos
67
+ fail-fast : false
68
+
69
+ steps :
70
+ # Step 1: Check out the repository
71
+ - name : Checkout Repository
72
+ uses : actions/checkout@v4
73
+ with :
74
+ submodules : true
75
+
76
+ # Step 2: Run Kani on the std library for selected functions
77
+ - name : Run Kani Verification
78
+ run : |
79
+ scripts/run-kani.sh --kani-args \
80
+ --include-pattern alloc::__default_lib_allocator:: \
81
+ --jobs=3 --output-format=terse
82
+
56
83
run-kani-list :
57
84
name : Kani List
58
85
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -297,6 +297,15 @@ main() {
297
297
--enable-unstable \
298
298
--cbmc-args --object-bits 12
299
299
fi
300
+ elif [[ " $run_command " == " autoharness" ]]; then
301
+ # Run verification for all automatically generated harnesses (not in parallel)
302
+ echo " Running Kani autoharness command..."
303
+ " $kani_path " autoharness -Z autoharness -Z unstable-options --std ./library \
304
+ $unstable_args \
305
+ --no-assert-contracts \
306
+ $command_args \
307
+ --enable-unstable \
308
+ --cbmc-args --object-bits 12
300
309
elif [[ " $run_command " == " list" ]]; then
301
310
echo " Running Kani list command..."
302
311
" $kani_path " list -Z list $unstable_args ./library --std --format markdown
You can’t perform that action at this time.
0 commit comments