Commit d4b9ebaa authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

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

Make sure to create the source state before the destination state.
parent d645e0ac
2004-12-09 Alexandre Duret-Lutz <adl@src.lip6.fr>
* src/tgba/tgbaexplicit.cc (tgba_explicit::create_transition):
Make sure to create the source state before the destination state.
2004-12-08 Denis Poitrenaud <Denis.Poitrenaud@lip6.fr>
* src/tgbaalgos/emptiness.cc: Suppress a horrible space before a ')'.
......@@ -7,9 +12,9 @@
* src/tgba/tgbaexplicit.hh, src/tgba/tgbaexplicit.cc
(set_init_state): Return a pointer to the initial state.
* src/tgbaalgos/emptiness.hh, src/tgbaalgos/emptiness.cc
* src/tgbaalgos/emptiness.hh, src/tgbaalgos/emptiness.cc
(tgba_run_to_tgba): New function.
* src/tgbatest/ltl2tgba.cc: Add option -G.
* src/tgbatest/ltl2tgba.cc: Add option -G.
2004-12-08 Alexandre Duret-Lutz <adl@src.lip6.fr>
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment