bin: add a --check option for automata outputs
This currently only allows extra check for stutter invariance. * src/bin/common_aoutput.cc: Add check option, and test stutter invariance. * src/twaalgos/stutter.cc, src/twaalgos/stutter.hh (check_stutter_invariance): New function. * src/tests/stutter-tgba.test: Test it.
This commit is contained in:
parent
fa37bc5f72
commit
fe2fc88fc6
4 changed files with 92 additions and 0 deletions
|
|
@ -57,4 +57,13 @@ namespace spot
|
|||
is_stutter_invariant(twa_graph_ptr&& aut_f,
|
||||
twa_graph_ptr&& aut_nf, bdd aps,
|
||||
int algo = 0);
|
||||
|
||||
/// \brief Check whether \a aut is stutter-invariant
|
||||
///
|
||||
/// This procedure only works if \a aut is deterministic, or if the
|
||||
/// equivalent formula \a f is given. The stutter-invariant property
|
||||
/// of the automaton is updated and also returned.
|
||||
SPOT_API bool
|
||||
check_stutter_invariance(const twa_graph_ptr& aut,
|
||||
const ltl::formula* f = nullptr);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue