* src/tgba/bddprint.cc, src/tgba/bddprint.hh: Add bdd_print_isop that prints the bdd into a Irreductible Sum Of Product. * src/tgbaalgos/dupexp.cc, src/tgbaalgos/dupexp.hh: Add a way to know which states (in the input) is which (in the result). * src/tgbaalgos/simulation.cc, src/tgbaalgos/simulation.hh: Add the Don't Care Simulation and the Don't Care Iterated Simulation. * src/tgbatest/ltl2tgba.cc, src/tgbatest/spotlbtt.test, src/tgbatest/Makefile.am, src/tgbatest/sim.test: Test them. * bench/ltl2tgba/algorithms, bench/ltl2tgba/README, bench/ltl2tgba/algorithms: Add a way to bench the don't care simulation.
47 lines
1.6 KiB
Text
47 lines
1.6 KiB
Text
# Fill "$@" with the list of translators we want to benchmark.
|
|
|
|
# Add a dummy initial argument to clear "$@" and also in case one of
|
|
# the tools starts with "-".
|
|
set dummy
|
|
|
|
|
|
if test -n "$BENCH_SIMULATION"; then
|
|
translator="../../src/tgbatest/ltl2tgba"
|
|
set "$@" "$translator -R3 -Rm -r7 -t %s >%T" \
|
|
"$translator -t -RDS -Rm -r7 -R3 %s >%T" \
|
|
"$translator -t -RDCS -r7 -Rm -R3 %s >%T" \
|
|
"$translator -t -RRS -r7 -R3 -Rm %s >%T" \
|
|
"$translator -t -RIS -r7 -R3 -Rm %s >%T" \
|
|
"$translator -t -RDCIS -r7 -Rm -R3 %s >%T" \
|
|
"$translator -t -R3 -Rm -r7 -DS %s >%T" \
|
|
"$translator -t -r7 -R3 -Rm -RDS -DS %s >%T" \
|
|
"$translator -t -RDCS -r7 -Rm -R3 -DS %s >%T" \
|
|
"$translator -t -RRS -r7 -R3 -Rm -DS %s >%T" \
|
|
"$translator -t -RIS -r7 -R3 -Rm -DS %s >%T" \
|
|
"$translator -t -RDCIS -r7 -R3 -Rm -DS %s >%T"
|
|
|
|
else
|
|
# Add third-party tools if they are available
|
|
test -n "$SPIN" && set "$@" "$SPIN -f %s >%N"
|
|
test -n "$LTL2BA" && set "$@" "$LTL2BA -f %s >%N"
|
|
test -n "$LTL3BA" && set "$@" "$LTL3BA -f %s >%N" \
|
|
"$LTL3BA -M -f %s >%N" \
|
|
"$LTL3BA -S -f %s >%N" \
|
|
"$LTL3BA -S -M -f %s >%N"
|
|
|
|
# Use -s to output a neverclaim, like the other tools.
|
|
set "$@" "$LTL2TGBA --det -s %s >%N" \
|
|
"$LTL2TGBA --small -s %s >%N"
|
|
fi;
|
|
# If you want to add your own tool, you can add it here.
|
|
# See 'man ltlcross' for the list of %-escape you may use
|
|
# to specify input formula and output automaton.
|
|
#
|
|
# set "$@" "tool options %... > %..."
|
|
|
|
|
|
# Set the timeout to 5 minutes
|
|
set "$@" --timeout=300
|
|
|
|
# Finaly remove the dummy initial argument
|
|
shift
|