Add benchmark for our DTGBA SAT-minimization.
* bench/dtgbasat/: New directory. * bench/Makefile.am: New file. * configure.ac, README: Adjust.
This commit is contained in:
parent
3076c3da4e
commit
983feb5290
15 changed files with 1553 additions and 1 deletions
24
bench/dtgbasat/prepare.sh
Executable file
24
bench/dtgbasat/prepare.sh
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
#!/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
|
||||
Loading…
Add table
Add a link
Reference in a new issue