Equal and Goto should only apply to Boolean expressions.
* src/ltlast/bunop.cc (bunop::bunop): Ensure it using an assert.
This commit is contained in:
parent
7c7704f92e
commit
8cafa200a5
1 changed files with 3 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright (C) 2009, 2010 Laboratoire de Recherche et Développement
|
||||
// Copyright (C) 2009, 2010, 2011 Laboratoire de Recherche et Développement
|
||||
// de l'Epita (LRDE).
|
||||
//
|
||||
// This file is part of Spot, a model checking library.
|
||||
|
|
@ -50,6 +50,8 @@ namespace spot
|
|||
case Equal:
|
||||
case Goto:
|
||||
is.accepting_eword = (min_ == 0);
|
||||
// Equal and Goto can only apply to Boolean formulae.
|
||||
assert(child->is_boolean());
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue