Files
reactics/experiments/drs_cell_signal/run.sh
2023-09-23 10:36:38 +01:00

69 lines
1.3 KiB
Bash
Executable File

#!/usr/bin/env bash
x_values="`seq 2 20`"
y_values="`seq 2 20`"
z_values="`seq 2 20`"
aut_values="a b"
reactics="$1"
reactics_opts="-z -v -B -c"
input_generator="../../examples/bdd/generators/gen_drs.py"
benchname="sig"
formname="f0"
outdir="results_${benchname}"
if [[ -z "$1" ]]
then
echo "Usage: $0 <path to reactics>"
exit 1
fi
if [[ ! -x "$reactics" ]]
then
echo "Provided path to ReactICS not executable"
fi
if [[ ! -d "$outdir" ]]
then
echo "Creating output directory: $outdir"
mkdir -p $outdir
fi
ulimit -t 3600
ulimit -v 2097152
for a in $aut_values
do
for x in $x_values
do
for y in $y_values
do
for z in $z_values
do
if [[ $y -lt $z ]]
then
# Skip undesired values
continue
fi
filename_base="${outdir}/${benchname}_F${formname}__x${x}_y${y}_z${z}_A${a}"
outfile="${filename_base}.out"
infile="${filename_base}.drs"
$input_generator $x $y $z $a > ${infile}
$reactics $reactics_opts $formname $infile > ${outfile} 2>&1
exitcode=$?
echo "ReactICS exit code: $exitcode"
done
done
done
done
# EOF