forked from opprop/units-inference
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add compile and clean up scripts for coq
- Loading branch information
Showing
3 changed files
with
67 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
rm .*.aux | ||
rm *.vo | ||
rm *.glob |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#!/bin/bash | ||
|
||
# Fail the whole script if any command fails | ||
set -e | ||
|
||
myDir="`dirname $0`" | ||
case `uname -s` in | ||
CYGWIN*) | ||
myDir=`cygpath -m $mydir` | ||
;; | ||
esac | ||
|
||
if [ "$myDir" = "" ]; | ||
then | ||
myDir="." | ||
fi | ||
|
||
ROOT=$(cd ${myDir} && pwd) | ||
|
||
# use system installed coqc if available | ||
if [[ $(command -v coqc) ]] && [[ $(coqc -v | grep 8.8.0) ]] ; then | ||
COQC=$(command -v coqc) | ||
fi | ||
if [ -z "$COQC" ] && [ -e $ROOT/coq-source/bin/coqc ] ; then | ||
COQC="$ROOT/coq-source/bin/coqc" | ||
fi | ||
echo "Using coqc at $COQC" | ||
$COQC -v | ||
|
||
# Compile options | ||
COQC="$COQC -opt" | ||
|
||
$COQC TacticalLemmas.v | ||
$COQC IDDefs.v | ||
$COQC MapsDefs.v | ||
|
||
$COQC UnitsDefs.v | ||
|
||
$COQC ValueDefs.v | ||
$COQC GammaDefs.v | ||
$COQC HeapDefs.v | ||
$COQC SubtypingDefs.v | ||
$COQC GammaHeapCorrespondence.v | ||
|
||
$COQC UnitsArithmetics.v | ||
|
||
$COQC FieldsDefs.v | ||
$COQC ExpressionsDefs.v | ||
$COQC StatementDefs.v | ||
$COQC ProgramDefs.v | ||
$COQC UnitsSoundness.v | ||
|
||
echo "Compilation complete." |