Automata with no state are no longer allowed.
* NEWS, spot/twa/twa.hh: Document the change. * spot/twa/twagraph.hh, spot/kripke/kripkegraph.hh: Add an exception in get_init_state_number(). get_init_state() now calls get_init_state_number(). * spot/twa/twagraph.cc, spot/twaalgos/simulation.cc, spot/twaalgos/powerset.cc, spot/twaalgos/complete.cc, spot/twaalgos/sccfilter.cc: Remove now useless tests. * spot/twaalgos/hoa.cc: Remove now useless comment. * spot/twaalgos/minimize.cc: Never return an automaton with no state.
This commit is contained in:
parent
da6fc955a3
commit
b3ee68310f
11 changed files with 24 additions and 38 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// -*- coding: utf-8 -*-
|
||||
// Copyright (C) 2009, 2010, 2011, 2013, 2014, 2015 Laboratoire de
|
||||
// Recherche et Développement de l'Epita (LRDE).
|
||||
// Copyright (C) 2009-2011, 2013-2016 Laboratoire de Recherche et
|
||||
// Développement de l'Epita (LRDE).
|
||||
// Copyright (C) 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
|
||||
// département Systèmes Répartis Coopératifs (SRC), Université Pierre
|
||||
// et Marie Curie.
|
||||
|
|
@ -101,11 +101,8 @@ namespace spot
|
|||
|
||||
unsigned nap = number_of_variables(allap);
|
||||
|
||||
// Call this before aut->num_states(), since it might add a state.
|
||||
unsigned init_num = aut->get_init_state_number();
|
||||
|
||||
unsigned ns = aut->num_states();
|
||||
assert(ns > 0);
|
||||
|
||||
if ((-1UL / ns) >> nap == 0)
|
||||
throw std::runtime_error("too many atomic propositions (or states)");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue