twaalgos: add many guards against alternation
* spot/twa/twagraph.hh, spot/twaalgos/are_isomorphic.cc, spot/twaalgos/canonicalize.cc, spot/twaalgos/couvreurnew.cc, spot/twaalgos/cycles.cc, spot/twaalgos/degen.cc, spot/twaalgos/determinize.cc, spot/twaalgos/isunamb.cc, spot/twaalgos/isweakscc.cc, spot/twaalgos/mask.hh, spot/twaalgos/minimize.cc, spot/twaalgos/product.cc, spot/twaalgos/randomize.cc, spot/twaalgos/sbacc.cc, spot/twaalgos/sccfilter.cc, spot/twaalgos/simulation.cc: Throw a runtime_error if the input is alternating.
This commit is contained in:
parent
87c9d6f039
commit
9f6924ccfb
16 changed files with 81 additions and 5 deletions
|
|
@ -296,9 +296,9 @@ namespace spot
|
|||
virtual const twa_graph_state* get_init_state() const override
|
||||
{
|
||||
unsigned n = get_init_state_number();
|
||||
if (SPOT_UNLIKELY(is_univ_dest(n)))
|
||||
if (SPOT_UNLIKELY(is_alternating()))
|
||||
throw std::runtime_error
|
||||
("get_init_state() does not work with universal initial states");
|
||||
("the abstract interface does not support alternating automata");
|
||||
return state_from_number(n);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue