* 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.
This commit is contained in:
parent
bc05ceb6b4
commit
f7851c17c0
2 changed files with 20 additions and 8 deletions
|
|
@ -1,5 +1,10 @@
|
||||||
2003-11-06 Alexandre Duret-Lutz <adl@src.lip6.fr>
|
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.
|
* src/ltlparse/ltlscan.ll: Cosmetics.
|
||||||
|
|
||||||
* configure.ac: Bump version to 0.0k.
|
* configure.ac: Bump version to 0.0k.
|
||||||
|
|
|
||||||
|
|
@ -344,11 +344,10 @@ namespace spot
|
||||||
|
|
||||||
state* tgba_gspn_eesrg::get_init_state() const
|
state* tgba_gspn_eesrg::get_init_state() const
|
||||||
{
|
{
|
||||||
State s;
|
// Use 0 as initial state for the EESRG side. State 0 does not
|
||||||
int err = initial_state(&s);
|
// exists, but when passed to succ() it will produce the list
|
||||||
if (err)
|
// of initial states.
|
||||||
throw gspn_exeption("initial_state()", err);
|
return new state_gspn_eesrg(0, data_->operand->get_init_state());
|
||||||
return new state_gspn_eesrg(s, data_->operand->get_init_state());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tgba_succ_iterator*
|
tgba_succ_iterator*
|
||||||
|
|
@ -391,9 +390,17 @@ namespace spot
|
||||||
assert(s);
|
assert(s);
|
||||||
std::ostringstream os;
|
std::ostringstream os;
|
||||||
char* str;
|
char* str;
|
||||||
int err = print_state(s->left(), &str);
|
State gs = s->left();
|
||||||
if (err)
|
if (gs)
|
||||||
throw gspn_exeption("print_state()", err);
|
{
|
||||||
|
int err = print_state(gs, &str);
|
||||||
|
if (err)
|
||||||
|
throw gspn_exeption("print_state()", err);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
str = strdup("-1");
|
||||||
|
}
|
||||||
|
|
||||||
// Rewrite all new lines as \\\n.
|
// Rewrite all new lines as \\\n.
|
||||||
const char* pos = str;
|
const char* pos = str;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue