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:
Alexandre Duret-Lutz 2016-12-24 18:31:19 +01:00
parent 87c9d6f039
commit 9f6924ccfb
16 changed files with 81 additions and 5 deletions

View file

@ -160,6 +160,9 @@ namespace spot
if (!has_separate_sets(in))
throw std::runtime_error
("direct_simulation() requires separate Inf and Fin sets");
if (in->is_alternating())
throw std::runtime_error
("direct_simulation() does not yet support alternation");
scc_info_.reset(new scc_info(in));