Skip to content

Commit

Permalink
Merge pull request #7 from esbmc/dev
Browse files Browse the repository at this point in the history
Time feature
  • Loading branch information
Goblin57 authored Aug 8, 2024
2 parents e06fe5a + e5d45e3 commit 918c0d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ runs:
do
echo "----------------------------------------------------"
echo "Running ESBMC on $path"
$GITHUB_WORKSPACE/bin/esbmc ${{ inputs.esbmc-options }} "$path" || true
\time -f "CPU time: %Us\t\t\tPeak memory usage: %Mkb" $GITHUB_WORKSPACE/bin/esbmc ${{ inputs.esbmc-options }} "$path" || true
if [[ "${{ inputs.esbmc-options }}" =~ "--output-goto" && -f "$GOTO_FILENAME" ]]; then
mv "$GOTO_FILENAME" "__""$path""_""$NOSPACE_GOTO_FILENAME"
fi
Expand All @@ -175,7 +175,7 @@ runs:

- name: Install ESBMC macOS
run: |
brew install -q boost
brew install -q boost gnu-time
wget -q -O esbmc.zip https://github.com/esbmc/esbmc/releases/download/v7.6/release-macos-latest.zip
unzip -o -q esbmc.zip
chmod +x $GITHUB_WORKSPACE/bin/esbmc
Expand Down Expand Up @@ -230,7 +230,7 @@ runs:
do
echo "----------------------------------------------------"
echo "Running ESBMC on $path"
$GITHUB_WORKSPACE/bin/esbmc --smtlib --smt-formula-only ${{ inputs.esbmc-options }} "$path" || true
gtime -f "CPU time: %Us\t\t\tPeak memory usage: %Mkb" $GITHUB_WORKSPACE/bin/esbmc --smtlib --smt-formula-only ${{ inputs.esbmc-options }} "$path" || true
if [[ "${{ inputs.esbmc-options }}" =~ "--output-goto" && -f "$GOTO_FILENAME" ]]; then
mv "$GOTO_FILENAME" "__""$path""_""$NOSPACE_GOTO_FILENAME"
fi
Expand Down

0 comments on commit 918c0d6

Please sign in to comment.