File tree Expand file tree Collapse file tree 2 files changed +6
-28
lines changed Expand file tree Collapse file tree 2 files changed +6
-28
lines changed Original file line number Diff line number Diff line change @@ -74,13 +74,15 @@ jobs:
7474 submodules : true
7575
7676 # Step 2: Run Kani autoharness on the std library for selected functions.
77- # Uses "--include-pattern no::such::function" to make sure we do not try
78- # to run across all possible functions as that may take a lot longer than
79- # expected
77+ # Uses "--include-pattern" to make sure we do not try to run across all
78+ # possible functions as that may take a lot longer than expected
8079 - name : Run Kani Verification
8180 run : |
8281 scripts/run-kani.sh --run autoharness --kani-args \
83- --include-pattern no:such::function:: \
82+ --include-pattern time::Duration::from_micros \
83+ --include-pattern time::Duration::from_millis \
84+ --include-pattern time::Duration::from_nanos \
85+ --include-pattern time::Duration::from_secs \
8486 --jobs=3 --output-format=terse
8587
8688 run-kani-list :
Original file line number Diff line number Diff line change @@ -1756,30 +1756,6 @@ pub mod duration_verify {
17561756 let _ = Duration :: new ( secs, nanos) ;
17571757 }
17581758
1759- #[ kani:: proof_for_contract( Duration :: from_secs) ]
1760- fn duration_from_secs ( ) {
1761- let secs = kani:: any :: < u64 > ( ) ;
1762- let _ = Duration :: from_secs ( secs) ;
1763- }
1764-
1765- #[ kani:: proof_for_contract( Duration :: from_millis) ]
1766- fn duration_from_millis ( ) {
1767- let ms = kani:: any :: < u64 > ( ) ;
1768- let _ = Duration :: from_millis ( ms) ;
1769- }
1770-
1771- #[ kani:: proof_for_contract( Duration :: from_micros) ]
1772- fn duration_from_micros ( ) {
1773- let micros = kani:: any :: < u64 > ( ) ;
1774- let _ = Duration :: from_micros ( micros) ;
1775- }
1776-
1777- #[ kani:: proof_for_contract( Duration :: from_nanos) ]
1778- fn duration_from_nanos ( ) {
1779- let nanos = kani:: any :: < u64 > ( ) ;
1780- let _ = Duration :: from_nanos ( nanos) ;
1781- }
1782-
17831759 #[ kani:: proof_for_contract( Duration :: as_secs) ]
17841760 fn duration_as_secs ( ) {
17851761 let dur = safe_duration ( ) ;
You can’t perform that action at this time.
0 commit comments