Skip to content

Commit

Permalink
delete kani-list.json instead of ignoring it
Browse files Browse the repository at this point in the history
  • Loading branch information
carolynzech committed Jan 9, 2025
1 parent 6ff6275 commit d518e96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ package-lock.json
# Tools
## Kani
*.out
kani-list.*

# Added by cargo
#
Expand Down
7 changes: 4 additions & 3 deletions scripts/run-kani.sh
Original file line number Diff line number Diff line change
Expand Up @@ -297,18 +297,19 @@ main() {
echo "Running Kani list command..."
"$kani_path" list -Z list $unstable_args ./library --std --format markdown
elif [[ "$run_command" == "metrics" ]]; then
echo "Computing Kani-specific metrics..."
local current_dir=$(pwd)
echo "Running Kani list command..."
"$kani_path" list -Z list $unstable_args ./library --std --format json
mv $(pwd)/kani-list.json scripts/kani-std-analysis/kani-list.json
echo "Running Kani's std-analysis command..."
pushd $build_dir
./scripts/std-analysis.sh
popd
pushd scripts/kani-std-analysis
pip install -r requirements.txt
./kani_std_analysis.py
echo "Computing Kani-specific metrics..."
./kani_std_analysis.py --kani-list-file $current_dir/kani-list.json
popd
rm kani-list.json
fi
}

Expand Down

0 comments on commit d518e96

Please sign in to comment.