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:
Alexandre Duret-Lutz 2011-02-13 22:21:31 +01:00
parent 7c7704f92e
commit 8cafa200a5

View file

@ -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;
}
}