twa_run: let as_twa work on the result of intersecting_run

Reported by Philipp Schlehuber-Caissier.

* spot/twaalgos/emptiness.cc (as_twa): Simplify considerably.  Don't
try to replay the run, and don't merge identical states.
* spot/twaalgos/word.hh, spot/twaalgos/emptiness.hh: Improve
documentation.
* tests/python/intrun.py: Add a test case.
* NEWS: Mention the bug.
This commit is contained in:
Alexandre Duret-Lutz 2023-04-18 14:48:10 +02:00
parent d152b3a316
commit ae10361bdd
5 changed files with 73 additions and 60 deletions

5
NEWS
View file

@ -25,6 +25,11 @@ New in spot 2.11.4.dev (not yet released)
- Building from the git repository would fail to report a missing
emacs (issue #528).
- Fix exception raised by aut1.intersecting_run(aut2).as_twa()
because the run did not match transitions present in aut1
verbatim. We also changed the behavior of as_twa() to not merge
identical states.
New in spot 2.11.4 (2023-02-10)
Python: