* src/tgba/tgbaexplicit.cc (tgba_explicit::create_transition):

Make sure to create the source state before the destination state.
This commit is contained in:
Alexandre Duret-Lutz 2004-12-09 08:20:12 +00:00
parent d645e0ac54
commit d4b9ebaaff
2 changed files with 12 additions and 3 deletions

View file

@ -175,7 +175,11 @@ namespace spot
tgba_explicit::create_transition(const std::string& source,
const std::string& dest)
{
return create_transition(add_state(source), add_state(dest));
// It's important that the source be created before the
// destination, so the first encountered source becomes the
// default initial state.
state* s = add_state(source);
return create_transition(s, add_state(dest));
}
void