introduce formula::is_leaf()

Fixes #307.

* spot/tl/formula.hh: Here.
* tests/python/ltlparse.py: Test it.
* NEWS: Mention it.
This commit is contained in:
Alexandre Duret-Lutz 2017-11-23 11:29:52 +01:00
parent 246b5d8fed
commit 974a4238f6
3 changed files with 28 additions and 2 deletions

3
NEWS
View file

@ -187,6 +187,9 @@ New in spot 2.4.2.dev (not yet released)
Fin(i) & Fin(j) = f Inf(i) | Inf(j) = t
Fin(i) & Inf(i) = f Fin(i) | Inf(i) = t
- The new spot::formula::is_leaf() method can be used to detect
formulas without children (atomic propositions, or constants).
Deprecation notices:
(These functions still work but compilers emit warnings.)