This commit is contained in:
Artur Meski
2018-10-22 20:54:09 +01:00
parent eef037fd97
commit 66f9e36c5d

View File

@@ -2,17 +2,26 @@
TMPINPUT="tmp_$RANDOM$RANDOM.rs" TMPINPUT="tmp_$RANDOM$RANDOM.rs"
CMD="./reactics -bB" CMD="./reactics -B"
for opt in "" "z" "x" "zx";do timelimit="$((30*60))" # 30 minutes
for i in `seq 2 10`;do for opt in "z" "zb" "x" "xz" "xzb" "xb" "" "b";do
for f in `seq 1 3`; do
done=0
for i in `seq 2 20`;do
if [[ $done -eq 1 ]];then
echo "Skipping f=$f i=$i for $opt"
continue
fi
echo "[i] n=$i; generating input file" echo "[i] n=$i; generating input file"
in/scripts/gen_tgc_sc.py $i > $TMPINPUT in/scripts/gen_tgc_sc.py $i > $TMPINPUT
for f in `seq 1 2`; do
echo "[i] Testing formula f$f" echo "[i] Testing formula f$f"
if [[ "$opt" = "" ]];then if [[ "$opt" = "" ]];then
@@ -26,13 +35,15 @@ for opt in "" "z" "x" "zx";do
TMPCMD="$CMD $CMDOPT -c f$f $TMPINPUT" TMPCMD="$CMD $CMDOPT -c f$f $TMPINPUT"
echo "[i] running reactics: $TMPCMD" echo "[i] running reactics: $TMPCMD"
res=$($TMPCMD | grep STAT) res=$(timeout $timelimit $TMPCMD | grep STAT)
if [[ $? -ne 0 ]];then
done=1
fi
mem=$(echo $res | cut -d';' -f 5) mem=$(echo $res | cut -d';' -f 5)
time=$(echo $res | cut -d';' -f 6) time=$(echo $res | cut -d';' -f 6)
echo "[.] Finished. time:$time, mem:$mem" echo "[.] Finished. time:$time, mem:$mem"
echo "$i $time $mem" >> bench_drs_tgc_${opt_str}_f$f.dat echo "$i $time $mem" >> bench_drs_tgc_${opt_str}_f$f.dat
done done