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

* iface/gspn/eesrg.cc (tgba_gspn_eesrg::get_init_state): Do not

call get_init_state(), use 0 instead.
(tgba_gspn_eesrg::format_state): Handle the case where s->left() == 0.
Reported by Soheib Baarir.
parent bc05ceb6
2003-11-06 Alexandre Duret-Lutz <adl@src.lip6.fr>
* iface/gspn/eesrg.cc (tgba_gspn_eesrg::get_init_state): Do not
call get_init_state(), use 0 instead.
(tgba_gspn_eesrg::format_state): Handle the case where s->left() == 0.
Reported by Soheib Baarir.
* src/ltlparse/ltlscan.ll: Cosmetics.
* configure.ac: Bump version to 0.0k.
......
......@@ -344,11 +344,10 @@ namespace spot
state* tgba_gspn_eesrg::get_init_state() const
{
State s;
int err = initial_state(&s);
if (err)
throw gspn_exeption("initial_state()", err);
return new state_gspn_eesrg(s, data_->operand->get_init_state());
// Use 0 as initial state for the EESRG side. State 0 does not
// exists, but when passed to succ() it will produce the list
// of initial states.
return new state_gspn_eesrg(0, data_->operand->get_init_state());
}
tgba_succ_iterator*
......@@ -391,9 +390,17 @@ namespace spot
assert(s);
std::ostringstream os;
char* str;
int err = print_state(s->left(), &str);
if (err)
throw gspn_exeption("print_state()", err);
State gs = s->left();
if (gs)
{
int err = print_state(gs, &str);
if (err)
throw gspn_exeption("print_state()", err);
}
else
{
str = strdup("-1");
}
// Rewrite all new lines as \\\n.
const char* pos = str;
......
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