Skip to content

Commit b1a7e11

Browse files
committed
Kani: use -Z unstable-options instead of --enable-unstable
`--enable-unstable` has been removed from Kani's latest version and will, thus, break upgrading to a newer Kani version.
1 parent 4b3883d commit b1a7e11

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/run-kani.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ run_verification_subset() {
218218
-j \
219219
--output-format=terse \
220220
"${command_args[@]}" \
221-
--enable-unstable \
221+
-Z unstable-options \
222222
--cbmc-args --object-bits 12
223223
}
224224

@@ -300,7 +300,7 @@ main() {
300300
$unstable_args \
301301
--no-assert-contracts \
302302
"${command_args[@]}" \
303-
--enable-unstable \
303+
-Z unstable-options \
304304
--cbmc-args --object-bits 12
305305
fi
306306
elif [[ "$run_command" == "autoharness" ]]; then
@@ -311,7 +311,7 @@ main() {
311311
$unstable_args \
312312
--no-assert-contracts \
313313
"${command_args[@]}" \
314-
--enable-unstable \
314+
-Z unstable-options \
315315
--cbmc-args --object-bits 12
316316
elif [[ "$run_command" == "list" ]]; then
317317
echo "Running Kani list command..."
@@ -347,7 +347,7 @@ main() {
347347
$unstable_args \
348348
--no-assert-contracts \
349349
"${command_args[@]}" \
350-
--enable-unstable \
350+
-Z unstable-options \
351351
--cbmc-args --object-bits 12
352352
# remove metadata file for Kani-generated "dummy" crate that we won't
353353
# get scanner data for

0 commit comments

Comments
 (0)