bench: make ltlcross and ltlclass work again
They were not updated since we moved binaries around in Spot 2.0. Let them use ltl2tgba directly. * bench/ltlclasses/plot.gnu, bench/ltlclasses/run, bench/ltlcounter/plot.gnu, bench/ltlcounter/run: Adjust.
This commit is contained in:
parent
7e7c257597
commit
98e7e4e49a
4 changed files with 43 additions and 78 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014 Laboratoire de
|
||||
# Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2017 Laboratoire de
|
||||
# Recherche et Développement de l'EPITA (LRDE)
|
||||
#
|
||||
# This file is part of Spot, a model checking library.
|
||||
|
|
@ -18,35 +18,21 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
gen=../../src/bin/genltl
|
||||
LTL2TGBA=../../src/tests/ikwiad
|
||||
gen=../../bin/genltl
|
||||
LTL2TGBA=../../bin/ltl2tgba
|
||||
|
||||
echo "# Benching ltl2tgba_fm..."
|
||||
echo "# the following values are also saved to file 'results.fm'"
|
||||
echo "# time1 = translation time"
|
||||
echo "# time2 = exploration time"
|
||||
echo "# n, states, transitions, user time1, system time1, wall time1, user time1, system time2, wall time2"
|
||||
for n in 1 2 3 4 5 6 7 8 9 10 11 12 13; do
|
||||
$LTL2TGBA -T -ks -f "`$gen --rv-counter-linear $n`" >out 2>&1
|
||||
states=`sed -n 's/^states: \([0-9]*\)$/\1/p' out`
|
||||
transitions=`sed -n 's/^transitions: \([0-9]*\)$/\1/p' out`
|
||||
time=`sed -n 's/ *translating formula *| *\([0-9]*\) .*| *\([0-9]*\) .*| *\([0-9]*\) .*|.*/\1,\2,\3/p' out`
|
||||
time2=`sed -n 's/ *producing output *| *\([0-9]*\) .*| *\([0-9]*\) .*| *\([0-9]*\) .*|.*/\1,\2,\3/p' out`
|
||||
echo $n,$states,$transitions,$time,$time2
|
||||
echo "# n, states, edge, time"
|
||||
for n in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15; do
|
||||
$LTL2TGBA --any --low "`"$gen" --rv-counter-linear $n`" --stats="$n,%s,%e,%r"
|
||||
done | tee results.fm
|
||||
|
||||
echo "# Benching ltl2taa..."
|
||||
echo "# the following values are also saved to file 'results.taa'"
|
||||
echo "# time1 = translation time"
|
||||
echo "# time2 = exploration time"
|
||||
echo "# n, states, transitions, user time1, system time1, wall time1, user time1, system time2, wall time2"
|
||||
for n in 1 2 3 4 5 6 7; do
|
||||
$LTL2TGBA -T -ks -taa "`$gen --rv-counter-linear $n`" >out 2>&1
|
||||
states=`sed -n 's/^states: \([0-9]*\)$/\1/p' out`
|
||||
transitions=`sed -n 's/^transitions: \([0-9]*\)$/\1/p' out`
|
||||
time=`sed -n 's/ *translating formula *| *\([0-9]*\) .*| *\([0-9]*\) .*| *\([0-9]*\) .*|.*/\1,\2,\3/p' out`
|
||||
time2=`sed -n 's/ *producing output *| *\([0-9]*\) .*| *\([0-9]*\) .*| *\([0-9]*\) .*|.*/\1,\2,\3/p' out`
|
||||
echo $n,$states,$transitions,$time,$time2
|
||||
done | tee results.taa
|
||||
# echo "# Benching ltl2taa..."
|
||||
# echo "# the following values are also saved to file 'results.taa'"
|
||||
# echo "# n, states, transitions, time"
|
||||
# for n in 1 2 3 4 5 6 7; do
|
||||
# $LTL2TGBA --any --low "`"$gen" --rv-counter-linear $n`" --stats="$n,%s,%e,%r"
|
||||
# done | tee results.taa
|
||||
|
||||
echo "# now run 'gnuplot plot.gnu'"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue