Skip to content

Commit

Permalink
Update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
verifit committed Oct 18, 2023
1 parent 39ad81b commit 42f8c7b
Show file tree
Hide file tree
Showing 3 changed files with 114 additions and 16 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.*
!.gitignore
!.gitmodules
tools/awali/_build
66 changes: 57 additions & 9 deletions run_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,60 @@
BASEDIR=$(dirname "$0")
TIMEOUT=60
JOBS=6
SUFFIX="--suffix .first-real-experiments"

"$BASEDIR/scripts/run_pyco.sh" --config "$BASEDIR/jobs/tacas-24-automata-inclusion.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" $SUFFIX inputs/bench-double-automata-inclusion.input
"$BASEDIR/scripts/run_pyco.sh" --config "$BASEDIR/jobs/tacas-24-bool-comb-cox-diff.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" $SUFFIX inputs/bench-double-bool-comb-cox.input
"$BASEDIR/scripts/run_pyco.sh" --config "$BASEDIR/jobs/tacas-24-bool-comb-cox-inter.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" $SUFFIX inputs/bench-double-bool-comb-cox.input
"$BASEDIR/scripts/run_pyco.sh" --config "$BASEDIR/jobs/tacas-24-bool-comb-intersect.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" $SUFFIX inputs/bench-variadic-bool-comb-intersect.input
"$BASEDIR/scripts/run_pyco.sh" --config "$BASEDIR/jobs/tacas-24-email-filter.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" $SUFFIX inputs/bench-quintuple-email-filter.input
"$BASEDIR/scripts/run_pyco.sh" --config "$BASEDIR/jobs/tacas-24-z3-noodler.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" $SUFFIX inputs/bench-single-z3-noodler.input
"$BASEDIR/scripts/run_pyco.sh" --config "$BASEDIR/jobs/tacas-24-presburger-complement.yaml" --timeout "$TIMEOUT" --jobs $SUFFIX "$JOBS" inputs/bench-single-presburger-complement.input
SUFFIX="--suffix .forty-jalib-automata-again"
METHODS=""
EXCLUDE=""

usage() { {
[ $# -gt 0 ] && echo "error: $1"
echo "usage: ./run_all.sh [opt1, ..., optn]"
echo "options:"
echo " -m|--methods will measure only selected tools"
echo " -e|--exclude will not measure selected tools"
echo " -j|--jobs will run only number of jobs"
} >&2
}

while [ $# -gt 0 ]; do
case "$1" in
-h|--help)
usage
exit 0;;
-m|--methods)
METHODS="-m $2"
shift 2;;
-e|--exclude)
EXCLUDE="-e $2"
shift 2;;
-j|--jobs)
JOBS=$2
shift 2;;
esac
done

start_time=$SECONDS

## Inclusion comparison
# "$BASEDIR/scripts/run_pyco.sh" $EXCLUDE $METHODS --config "$BASEDIR/jobs/tmp-automata-inclusion.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" $SUFFIX inputs/bench-double-automata-inclusion.input
# "$BASEDIR/scripts/run_pyco.sh" $EXCLUDE $METHODS --config "$BASEDIR/jobs/tmp-email-filter.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" $SUFFIX inputs/bench-quintuple-email-filter.input


"$BASEDIR/scripts/run_pyco.sh" $EXCLUDE $METHODS --config "$BASEDIR/jobs/tacas-24-automata-inclusion.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" $SUFFIX inputs/bench-double-automata-inclusion.input
# "$BASEDIR/scripts/run_pyco.sh" $EXCLUDE $METHODS --config "$BASEDIR/jobs/tacas-24-email-filter.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" $SUFFIX inputs/bench-quintuple-email-filter.input
"$BASEDIR/scripts/run_pyco.sh" $EXCLUDE $METHODS --config "$BASEDIR/jobs/tacas-24-z3-noodler.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" $SUFFIX inputs/bench-single-z3-noodler.input
"$BASEDIR/scripts/run_pyco.sh" $EXCLUDE $METHODS --config "$BASEDIR/jobs/tacas-24-z3-noodler.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" $SUFFIX inputs/bench-single-z3-noodler-big.input
"$BASEDIR/scripts/run_pyco.sh" $EXCLUDE $METHODS --config "$BASEDIR/jobs/tacas-24-z3-noodler-concat.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" $SUFFIX inputs/bench-single-z3-noodler.input
"$BASEDIR/scripts/run_pyco.sh" $EXCLUDE $METHODS --config "$BASEDIR/jobs/tacas-24-presburger-complement.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" $SUFFIX inputs/bench-single-presburger-complement.input
"$BASEDIR/scripts/run_pyco.sh" $EXCLUDE $METHODS --config "$BASEDIR/jobs/tacas-24-presburger-complement.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" $SUFFIX inputs/bench-single-presburger-explicit-complement.input
"$BASEDIR/scripts/run_pyco.sh" $EXCLUDE $METHODS --config "$BASEDIR/jobs/tacas-24-bool-comb-ere.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" $SUFFIX inputs/bench-variadic-bool-comb-ere.input
"$BASEDIR/scripts/run_pyco.sh" $EXCLUDE $METHODS --config "$BASEDIR/jobs/tacas-24-bool-comb-cox-union.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" $SUFFIX inputs/bench-double-bool-comb-cox.input
"$BASEDIR/scripts/run_pyco.sh" $EXCLUDE $METHODS --config "$BASEDIR/jobs/tacas-24-bool-comb-cox-inter.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" $SUFFIX inputs/bench-double-bool-comb-cox.input
"$BASEDIR/scripts/run_pyco.sh" $EXCLUDE $METHODS --config "$BASEDIR/jobs/tacas-24-bool-comb-intersect-union.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" $SUFFIX inputs/bench-variadic-bool-comb-intersect.input
"$BASEDIR/scripts/run_pyco.sh" $EXCLUDE $METHODS --config "$BASEDIR/jobs/tacas-24-bool-comb-intersect.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" $SUFFIX inputs/bench-variadic-bool-comb-intersect.input
"$BASEDIR/scripts/run_pyco.sh" $EXCLUDE $METHODS --config "$BASEDIR/jobs/tacas-24-bool-comb-intersect.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" $SUFFIX inputs/bench-variadic-z3-noodler-intersect.input

## Not run, everything timeouts
# "$BASEDIR/scripts/run_pyco.sh" $EXCLUDE $METHODS --config "$BASEDIR/jobs/tacas-24-bool-comb-cox-diff.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" $SUFFIX inputs/bench-double-bool-comb-cox.input
secs=$((SECONDS - start_time))
formated_elapsed=$(printf "%dd:%dh:%dm:%ds\n" $((secs/86400)) $((secs%86400/3600)) $((secs%3600/60)) $((secs%60)))
eval "echo [!] All benchmarks done in $formated_elapsed"
60 changes: 53 additions & 7 deletions run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,57 @@
BASEDIR=$(dirname "$0")
TIMEOUT=5
JOBS=6
METHODS=""

"$BASEDIR/scripts/run_pyco.sh" --test-run --config "$BASEDIR/jobs/tacas-24-automata-inclusion.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" inputs/bench-double-automata-inclusion.input
"$BASEDIR/scripts/run_pyco.sh" --test-run --config "$BASEDIR/jobs/tacas-24-bool-comb-cox-diff.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" inputs/bench-double-bool-comb-cox.input
"$BASEDIR/scripts/run_pyco.sh" --test-run --config "$BASEDIR/jobs/tacas-24-bool-comb-cox-inter.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" inputs/bench-double-bool-comb-cox.input
"$BASEDIR/scripts/run_pyco.sh" --test-run --config "$BASEDIR/jobs/tacas-24-bool-comb-intersect.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" inputs/bench-variadic-bool-comb-intersect.input
"$BASEDIR/scripts/run_pyco.sh" --test-run --config "$BASEDIR/jobs/tacas-24-email-filter.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" inputs/bench-quintuple-email-filter.input
"$BASEDIR/scripts/run_pyco.sh" --test-run --config "$BASEDIR/jobs/tacas-24-z3-noodler.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" inputs/bench-single-z3-noodler.input
"$BASEDIR/scripts/run_pyco.sh" --test-run --config "$BASEDIR/jobs/tacas-24-presburger-complement.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" inputs/bench-single-presburger-complement.input
usage() { {
[ $# -gt 0 ] && echo "error: $1"
echo "usage: ./run_test.sh [opt1, ..., optn]"
echo "options:"
echo " -m|--methods will measure only selected tools"
} >&2
}

while [ $# -gt 0 ]; do
case "$1" in
-h|--help)
usage
exit 0;;
-m|--methods)
METHODS="-m $2"
shift 2;;
esac
done

start_time=$SECONDS

# "$BASEDIR/scripts/run_pyco.sh" $METHODS --test-run --config "$BASEDIR/jobs/tacas-24-bool-comb-ere.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" inputs/bench-variadic-bool-comb-ere.input
# read -p "Press enter to continue"
# "$BASEDIR/scripts/run_pyco.sh" $METHODS --test-run --config "$BASEDIR/jobs/tacas-24-automata-inclusion.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" inputs/bench-double-automata-inclusion.input
# read -p "Press enter to continue"
# "$BASEDIR/scripts/run_pyco.sh" $METHODS --test-run --config "$BASEDIR/jobs/tacas-24-bool-comb-cox-diff.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" inputs/bench-double-bool-comb-cox.input
# read -p "Press enter to continue"
# "$BASEDIR/scripts/run_pyco.sh" $METHODS --test-run --config "$BASEDIR/jobs/tacas-24-bool-comb-cox-inter.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" inputs/bench-double-bool-comb-cox.input
# read -p "Press enter to continue"
# "$BASEDIR/scripts/run_pyco.sh" $METHODS --test-run --config "$BASEDIR/jobs/tacas-24-bool-comb-cox-union.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" inputs/bench-double-bool-comb-cox.input
# read -p "Press enter to continue"
# "$BASEDIR/scripts/run_pyco.sh" $METHODS --test-run --config "$BASEDIR/jobs/tacas-24-email-filter.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" inputs/bench-quintuple-email-filter.input
# read -p "Press enter to continue"
# "$BASEDIR/scripts/run_pyco.sh" $METHODS --test-run --config "$BASEDIR/jobs/tacas-24-z3-noodler.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" inputs/bench-single-z3-noodler.input
# read -p "Press enter to continue"
# "$BASEDIR/scripts/run_pyco.sh" $METHODS --test-run --config "$BASEDIR/jobs/tacas-24-z3-noodler.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" inputs/bench-single-z3-noodler-big.input
# read -p "Press enter to continue"
# "$BASEDIR/scripts/run_pyco.sh" $METHODS --test-run --config "$BASEDIR/jobs/tacas-24-z3-noodler-concat.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" inputs/bench-single-z3-noodler.input
# read -p "Press enter to continue"
# "$BASEDIR/scripts/run_pyco.sh" $METHODS --test-run --config "$BASEDIR/jobs/tacas-24-presburger-complement.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" inputs/bench-single-presburger-complement.input
# read -p "Press enter to continue"
# "$BASEDIR/scripts/run_pyco.sh" $METHODS --test-run --config "$BASEDIR/jobs/tacas-24-presburger-complement.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" inputs/bench-single-presburger-explicit-complement.input
# read -p "Press enter to continue"
# "$BASEDIR/scripts/run_pyco.sh" $METHODS --test-run --config "$BASEDIR/jobs/tacas-24-bool-comb-intersect-union.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" inputs/bench-variadic-bool-comb-intersect.input
# read -p "Press enter to continue"
# "$BASEDIR/scripts/run_pyco.sh" $METHODS --test-run --config "$BASEDIR/jobs/tacas-24-bool-comb-intersect.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" inputs/bench-variadic-bool-comb-intersect.input
# read -p "Press enter to continue"
"$BASEDIR/scripts/run_pyco.sh" $METHODS --test-run --config "$BASEDIR/jobs/tacas-24-bool-comb-intersect.yaml" --timeout "$TIMEOUT" --jobs "$JOBS" inputs/bench-variadic-z3-noodler-intersect.input

secs=$((SECONDS - start_time))
formated_elapsed=$(printf "%dd:%dh:%dm:%ds\n" $((secs/86400)) $((secs%86400/3600)) $((secs%3600/60)) $((secs%60)))
eval "echo [!] Test benchmarking done in $formated_elapsed"

0 comments on commit 42f8c7b

Please sign in to comment.