2 # run as the following:
3 # ./runalloy.sh [hexiom] [--alloy]
4 # ./runalloy.sh [nqueens] [--alloy]
5 # ./runalloy.sh [sudoku-csolver] [--alloy]
6 # ./runalloy.sh [killerSudoku] [--alloy]
8 #./run.sh deserializealloytest ../Benchmarks/sudoku-csolver/4x4.dump --alloy
9 #./run.sh java edu.mit.csail.sdg.alloy4whole.ExampleAlloyCompilerNoViz satune.als > solution.log
10 if [ "$#" -lt 2 ]; then
11 echo "Illegal number of argument"
12 echo "./runinterpreter.sh [benchmark] [--alloy/--z3/--smtrat/--mathsat/--all] [timeout]"
18 OUTPUT="$1-SMTsolvers.csv"
19 DUMP=$(find . -name "*.dump")
21 LINE="Benchmark, Alloy, Z3, Smtrat, Mathsat"
24 if [[ $d = *$1* ]] && [[ $d = *learningset* ]]; then
26 if [[ $2 = *--all* ]]; then
27 SOLVERS="--alloy --z3 --smtrat --mathsat"
29 for solver in $SOLVERS; do
31 echo "./run.sh deserializealloytest .$d $solver $3"
32 ./run.sh deserializealloytest "."$d $solver $3
34 DIFF=$(echo "$END - $START" | bc)
37 echo "$d$LINE" >> $OUTPUT
40 ./run.sh deserializealloytest "."$d $2 $3
42 DIFF=$(echo "$END - $START" | bc)
43 echo "CSOLVER solve time: $DIFF"