File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ const NANOSEC_IN_ONE_MILLISEC: u64 = 1_000_000;
28
28
// Euclid's two-thousand-year-old algorithm for finding the greatest common divisor.
29
29
#[ cfg_attr( kani, kani:: requires( x > 0 && y > 0 ) ) ]
30
30
#[ cfg_attr( kani, kani:: ensures(
31
- result != 0
31
+ | & result| result != 0
32
32
&& x % result == 0
33
33
&& y % result == 0
34
34
) ) ]
Original file line number Diff line number Diff line change @@ -24,11 +24,12 @@ def test_kani(results_dir):
24
24
"""
25
25
Test all Kani proof harnesses.
26
26
"""
27
- # --enable-stubbing is required to enable the stubbing feature
27
+ # -Z stubbing is required to enable the stubbing feature
28
+ # -Z function-contracts is required to enable the function contracts feature
28
29
# --restrict-vtable is required for some virtio queue proofs, which go out of memory otherwise
29
30
# -j enables kani harnesses to be verified in parallel (required to keep CI time low)
30
31
# --output-format terse is required by -j
31
- # --enable-unstable is needed for each of the above
32
+ # --enable-unstable is needed to enable `-Z` flags
32
33
_ , stdout , _ = utils .check_output (
33
34
"cargo kani --enable-unstable -Z stubbing -Z function-contracts --restrict-vtable -j --output-format terse"
34
35
)
You can’t perform that action at this time.
0 commit comments