* iface/gspn/gspn.cc (tgba_succ_iterator_gspn::tgba_succ_iterator_gspn):
Set size_ to 1 when stuttering is needed, so that done() does not return true immediately.
This commit is contained in:
parent
7abc2604f3
commit
44ebe5a746
2 changed files with 11 additions and 2 deletions
|
|
@ -1,3 +1,9 @@
|
||||||
|
2004-07-16 Alexandre Duret-Lutz <adl@src.lip6.fr>
|
||||||
|
|
||||||
|
* iface/gspn/gspn.cc (tgba_succ_iterator_gspn::tgba_succ_iterator_gspn):
|
||||||
|
Set size_ to 1 when stuttering is needed, so that done() does not
|
||||||
|
return true immediately.
|
||||||
|
|
||||||
2004-07-12 Alexandre Duret-Lutz <adl@src.lip6.fr>
|
2004-07-12 Alexandre Duret-Lutz <adl@src.lip6.fr>
|
||||||
|
|
||||||
* src/tgbaalgos/gtec/gtec.hh: Typos in comments.
|
* src/tgbaalgos/gtec/gtec.hh: Typos in comments.
|
||||||
|
|
|
||||||
|
|
@ -146,10 +146,10 @@ namespace spot
|
||||||
// * If DEAD is any other string, this is the name a property
|
// * If DEAD is any other string, this is the name a property
|
||||||
// that should be true when looping on a dead state, and false
|
// that should be true when looping on a dead state, and false
|
||||||
// otherwise.
|
// otherwise.
|
||||||
// We handle these three case by setting ALIVE_PROP and DEAD_PROP
|
// We handle these three cases by setting ALIVE_PROP and DEAD_PROP
|
||||||
// appropriately. ALIVE_PROP is the bdd that should be ANDed
|
// appropriately. ALIVE_PROP is the bdd that should be ANDed
|
||||||
// to all transitions leaving a live state, while DEAD_PROP should
|
// to all transitions leaving a live state, while DEAD_PROP should
|
||||||
// bdd ANDed to all transitions leaving a dead state.
|
// be ANDed to all transitions leaving a dead state.
|
||||||
if (!strcasecmp(dead.c_str(), "false"))
|
if (!strcasecmp(dead.c_str(), "false"))
|
||||||
{
|
{
|
||||||
alive_prop = bddtrue;
|
alive_prop = bddtrue;
|
||||||
|
|
@ -241,6 +241,9 @@ namespace spot
|
||||||
// GreatSPN should return successors_ == 0 and size_ == 0 when a
|
// GreatSPN should return successors_ == 0 and size_ == 0 when a
|
||||||
// state has no successors.
|
// state has no successors.
|
||||||
assert((size_ <= 0) ^ (successors_ != 0));
|
assert((size_ <= 0) ^ (successors_ != 0));
|
||||||
|
// If we have to stutter on a dead state, we have one successor.
|
||||||
|
if (size_ <= 0 && data_->dead_prop != bddfalse)
|
||||||
|
size_ = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual
|
virtual
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue