translate: use relabel_bse() to speed translations with a lot of APs

Fixes #268, reported by Yann Thierry-Mieg.

* spot/twaalgos/translate.cc, spot/twaalgos/translate.hh: Call
relabel_bse() + relabel_here().
* tests/core/format.test: Add a test case.
* bin/spot-x.cc, NEWS: Document the change.
This commit is contained in:
Alexandre Duret-Lutz 2017-06-20 13:42:58 +02:00
parent 0bc1dd4446
commit 05abed6d2f
5 changed files with 73 additions and 3 deletions

View file

@ -123,6 +123,10 @@ jb) | (c & jb) | (d & jb) | (e & jb) | (f & m) | (f & h) | (f & i) |
(r & y) | (r & t) | (r & u) | (r & v) | (r & w) | (fb & x) | (x & z) |
(ab & x) | (bb & x) | (cb & x)))'
test 3,5 = `ltl2tgba --low --any --stats=%s,%e "$f"`
# While we are at it, make sure we can translate this beast. Dispite
# the huge number of atomic propositiions, there is only one Boolean
# subformula and it is used twice.
test 3,4 = `ltl2tgba --stats=%s,%e "$f"`
cat >foo <<EOF
HOA: v1