ace152e096
Added compile_sdc_run script which runs bzreax (compiles and run controller synthesis tool reax) on heptagon programs.
34 lines
597 B
Text
34 lines
597 B
Text
|
|
checkdir=_check_builds
|
|
|
|
shopt -s nullglob
|
|
|
|
# script de test
|
|
|
|
COMPILER_DIR="../compiler"
|
|
if [ -x $COMPILER_DIR/heptc.native ];
|
|
then
|
|
COMPILER=heptc.native
|
|
else
|
|
if [ -x $COMPILER_DIR/heptc.byte ];
|
|
then
|
|
COMPILER=heptc.byte
|
|
else
|
|
echo "Error: no compiler found."
|
|
exit 2
|
|
fi
|
|
fi
|
|
|
|
HEPTC="../$COMPILER_DIR/$COMPILER -stdlib ../../lib"
|
|
CC="gcc -std=c99 -I ../../../lib/c"
|
|
LD="gcc"
|
|
JAVAC="javac -classpath ../../../lib/java:."
|
|
JAVA="java -classpath ../../../lib/java:."
|
|
REAX="reax"
|
|
BZREAX="bzreax"
|
|
NBSTEP=100
|
|
|
|
if [ ! -x $checkdir ];
|
|
then
|
|
mkdir $checkdir
|
|
fi
|