* bench/dtgbasat/: New directory. * bench/Makefile.am: New file. * configure.ac, README: Adjust.
24 lines
861 B
Bash
Executable file
24 lines
861 B
Bash
Executable file
#!/bin/sh
|
|
|
|
ltlfilt=../../src/bin/ltlfilt
|
|
ltl2tgba=../../src/bin/ltl2tgba
|
|
dstar2tgba=../../src/bin/dstar2tgba
|
|
|
|
# Rename all formulas using a b c... suppress duplicates.
|
|
$ltlfilt -q --relabel=abc -u formulas > nodups.ltl
|
|
|
|
while read f; do
|
|
acc=`$ltl2tgba "$f" --low -a --stats="%a"`
|
|
acc2=`$ltl2tgba "$f" -D --stats="%a"`
|
|
if $ltlfilt -f "$f" --obligation >/dev/null; then
|
|
echo "$f, WDBA, $acc, $acc2"
|
|
elif test `$ltl2tgba "$f" -D --stats="%d"` = 1; then
|
|
echo "$f, trad, $acc, $acc2"
|
|
elif test `$ltl2tgba "$f" -x tba-det -D --stats="%d"` = 1; then
|
|
echo "$f, TCONG, $acc, $acc2"
|
|
elif test `$ltlfilt --remove-wm -f "$f" -l | ltl2dstar --ltl2nba=spin:$ltl2tgba@-sD - - | $dstar2tgba -D --low --stats="%d"` = 1; then
|
|
echo "$f, DRA, $acc, $acc2"
|
|
else
|
|
echo "$f, not DBA-realizable, $acc, $acc2"
|
|
fi
|
|
done < nodups.ltl | tee info.ltl
|