Skip to content

Commit 29a6bf7

Browse files
Include alloc in the Kani metrics collected by run-kani.sh (#697)
`run-kani.sh --run metrics` computes contract metrics for `core` and `std` only; `alloc` is one of the three crates the autoharness baseline is measured on, so adding it in this PR. `std-analysis.sh` already produces `alloc_scan_*.csv`. The only other piece is the seed `metrics-data-alloc.json`, which `kani_std_analysis.py` needs to exist before it can append the first entry. Note that until #696 lands, alloc's `*_under_contract` numbers will read 0 for the same reason core's and std's currently do. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.
1 parent 67dfd8c commit 29a6bf7

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"results": []
3+
}

‎scripts/run-kani.sh‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,9 @@ main() {
350350
./kani_std_analysis.py --crate core \
351351
--kani-list-file $current_dir/kani-list.json \
352352
--metrics-file metrics-data-core.json
353+
./kani_std_analysis.py --crate alloc \
354+
--kani-list-file $current_dir/kani-list.json \
355+
--metrics-file metrics-data-alloc.json
353356
./kani_std_analysis.py --crate std \
354357
--kani-list-file $current_dir/kani-list.json \
355358
--metrics-file metrics-data-std.json

0 commit comments

Comments
 (0)