implement is_liveness() and is_liveness_automaton()
* spot/twaalgos/strength.cc, spot/twaalgos/strength.hh, spot/tl/hierarchy.cc, spot/tl/hierarchy.hh: Here. * bin/ltlfilt.cc (--liveness): New filter. * NEWS: Mention those. * tests/core/ltlfilt.test, tests/python/ltlsimple.py: Add test cases.
This commit is contained in:
parent
d2316b1428
commit
d94efe9fe1
8 changed files with 63 additions and 11 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// -*- coding: utf-8 -*-
|
||||
// Copyright (C) 2017 Laboratoire de Recherche et Développement de
|
||||
// l'Epita (LRDE)
|
||||
// Copyright (C) 2017, 2018 Laboratoire de Recherche et Développement
|
||||
// de l'Epita (LRDE)
|
||||
//
|
||||
// This file is part of Spot, a model checking library.
|
||||
//
|
||||
|
|
@ -184,4 +184,14 @@ namespace spot
|
|||
///
|
||||
/// The string should be terminated by '\0' or ']'.
|
||||
SPOT_API unsigned nesting_depth(formula f, const char* opers);
|
||||
|
||||
|
||||
/// \brief Check whether a formula represents a liveness property.
|
||||
///
|
||||
/// A formula represents a liveness property if any finite prefix
|
||||
/// can be extended into a word accepted by the formula.
|
||||
///
|
||||
/// The test is done by conversion to automaton. If you already
|
||||
/// have an automaton, use spot::is_liveness_automaton() instead.
|
||||
SPOT_API bool is_liveness(formula f);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue