* iface/gspn/eesrg.cc (tgba_succ_iterator_gspn_eesrg::step):
Really Skip unknown variables.
This commit is contained in:
parent
1a94645802
commit
bff5f4ee67
2 changed files with 15 additions and 10 deletions
|
|
@ -1,5 +1,8 @@
|
||||||
2003-11-03 Alexandre Duret-Lutz <adl@src.lip6.fr>
|
2003-11-03 Alexandre Duret-Lutz <adl@src.lip6.fr>
|
||||||
|
|
||||||
|
* iface/gspn/eesrg.cc (tgba_succ_iterator_gspn_eesrg::step):
|
||||||
|
Really Skip unknown variables.
|
||||||
|
|
||||||
* configure.ac, NEWS: Bump version to 0.0j.
|
* configure.ac, NEWS: Bump version to 0.0j.
|
||||||
|
|
||||||
* iface/gspn/eesrg.cc (tgba_succ_iterator_gspn_eesrg::step):
|
* iface/gspn/eesrg.cc (tgba_succ_iterator_gspn_eesrg::step):
|
||||||
|
|
|
||||||
|
|
@ -208,26 +208,28 @@ namespace spot
|
||||||
while (cond != bddtrue)
|
while (cond != bddtrue)
|
||||||
{
|
{
|
||||||
int var = bdd_var(cond);
|
int var = bdd_var(cond);
|
||||||
tgba_gspn_eesrg_private_::prop_map::iterator i =
|
|
||||||
data_->prop_dict.find(var);
|
|
||||||
|
|
||||||
// It's OK if VAR is unknown from GreatSPN (it might have
|
|
||||||
// been used to synchornize other automaton or something),
|
|
||||||
// just skip it.
|
|
||||||
if (i != data_->prop_dict.end())
|
|
||||||
continue;
|
|
||||||
|
|
||||||
bdd high = bdd_high(cond);
|
bdd high = bdd_high(cond);
|
||||||
|
int res;
|
||||||
if (high == bddfalse)
|
if (high == bddfalse)
|
||||||
{
|
{
|
||||||
cond = bdd_low(cond);
|
cond = bdd_low(cond);
|
||||||
props[i->second] = 0;
|
res = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
cond = high;
|
cond = high;
|
||||||
props[i->second] = 1;
|
res = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// It's OK if VAR is unknown from GreatSPN (it might have
|
||||||
|
// been used to synchornize other automaton or something),
|
||||||
|
// just skip it.
|
||||||
|
tgba_gspn_eesrg_private_::prop_map::iterator i =
|
||||||
|
data_->prop_dict.find(var);
|
||||||
|
if (i != data_->prop_dict.end())
|
||||||
|
props[i->second] = res;
|
||||||
|
|
||||||
assert(cond != bddfalse);
|
assert(cond != bddfalse);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue