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
|
|
@ -1,5 +1,5 @@
|
|||
// -*- coding: utf-8 -*-
|
||||
// Copyright (C) 2014, 2015 Laboratoire de Recherche et
|
||||
// Copyright (C) 2014, 2015, 2016 Laboratoire de Recherche et
|
||||
// Developpement de l Epita (LRDE).
|
||||
//
|
||||
// This file is part of Spot, a model checking library.
|
||||
|
|
@ -73,6 +73,9 @@ namespace spot
|
|||
twa_graph_ptr
|
||||
canonicalize(twa_graph_ptr aut)
|
||||
{
|
||||
if (aut->is_alternating())
|
||||
throw std::runtime_error
|
||||
("canonicalize does not yet support alternation");
|
||||
std::vector<unsigned> state2class(aut->num_states(), 0);
|
||||
state2class[aut->get_init_state_number()] = 1;
|
||||
size_t distinct_classes = 2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue