ltl_to_tgba_fm: Build a tgba_digraph instead of a tgba_explicit_formula
The conversion is not complete, because the conversion from SERE to DRA used for the closure operator is still building a tgba_explicit_formula. * src/tgbaalgos/ltl2tgba_fm.cc, src/tgbaalgos/ltl2tgba_fm.hh: Return a tgba_digraph. * src/priv/acccompl.cc: Simplify. * src/graph/ngraph.hh: Add a way to iterate over all names. * src/tgba/tgbagraph.hh (compute_support_conditions): Return something useful. It's actually used by the constructor of testing automata. * src/tgbatest/wdba.test: Adjust to the fact that state are not labeled by formulas anymore. * src/bin/ltl2tgba.cc, src/bin/ltl2tgta.cc: Do not try to enable UTF8 on automata anymore.
This commit is contained in:
parent
38887f4960
commit
7b23691629
8 changed files with 77 additions and 97 deletions
|
|
@ -120,14 +120,14 @@ while read f; do
|
|||
|
||||
# If the labels of the state have only digits, assume the minimization
|
||||
# worked.
|
||||
x=`../ltl2tgba -f -Rm "!($f)" |
|
||||
grep -v -- '->' |
|
||||
sed -n 's/.*label="\(..*\)".*/\1/p' |
|
||||
tr -d '0-9\n'`
|
||||
case $x in
|
||||
"") echo "wrongly minimized !($f)"; success=false;;
|
||||
*) echo "OK !($f)";;
|
||||
esac
|
||||
../ltl2tgba -kt -Rm "!($f)" > out1
|
||||
../ltl2tgba -kt -R3 "!($f)" > out2
|
||||
if cmp out1 out2; then
|
||||
echo "OK !($f)";
|
||||
else
|
||||
echo "wrongly minimized !($f)";
|
||||
success=false;
|
||||
fi
|
||||
done < non-obligations.txt
|
||||
|
||||
$success
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue