Skip to content

Commit

Permalink
new script
Browse files Browse the repository at this point in the history
  • Loading branch information
HanielB committed Oct 26, 2022
1 parent 37d5542 commit 6751c64
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion lean-proof.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
#!/bin/bash

~/cvc/wt-leanPrinter/prod/bin/cvc5 $@ | tail -n +2
tfile="$(mktemp /tmp/foo.XXXXXXXXX)" || exit 1
outfile="$(mktemp /tmp/foo.XXXXXXXXX)" || exit 1

./prod/bin/cvc5 --dump-proofs --proof-format=lean --proof-granularity=theory-rewrite --dag-thresh=0 $@ | tail -n +2 > $tfile

cd ~/lean-smt
lean --load-dynlib=/home/hbarbosa/lean-smt/build/lib/libSmt.so $tfile > $outfile
cd - > /dev/null
if ! grep -q "error" $outfile; then
echo "SUCCESS"
else
echo "ERROR-LEAN"
fi

0 comments on commit 6751c64

Please sign in to comment.