hierarchy: Add is_persistence() and make is_recurrence() use it

* NEWS: Update.
* bin/man/spot-x.x: Add environment variable.
* spot/tl/hierarchy.cc: Implement them.
* spot/tl/hierarchy.hh: Declare them.
This commit is contained in:
Alexandre GBAGUIDI AISSE 2017-07-28 13:28:09 +02:00
parent e59274b609
commit c827f75c37
4 changed files with 208 additions and 28 deletions

13
NEWS
View file

@ -51,8 +51,17 @@ New in spot 2.4.0.dev (not yet released)
recognize more if the original language can not be expressed with
a co-Büchi acceptance condition.
- The function spot::is_recurrence() is now public. It checks if a formula
has the reccurence property.
- The new functions spot::is_recurrence() and spot::is_persistence()
check respectively if a formula f belongs to the recurrence or
persistence class. Two algorithms are available, one that
checks if a formula is cobuchi_realizable (then it belongs to the
persistence class) and the other that checks if it is
detbuchi_realizable (then it belongs to the recurrence class).
Force one method or the other by setting the environment variable
SPOT_PR_CHECK to 1 or 2.
Note that thanks to the duality of both classes, both algorithms
will work either on f or its negation.
(see https://spot.lrde.epita.fr/hierarchy.html for details).
Deprecation notices: