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

* src/tgbaalgos/ltl2tgba_fm.cc (ltl_to_tgba_fm): Do not assert

that the true state has only one link when unobs is used.
parent 0864d1ca
2004-10-27 Alexandre Duret-Lutz <adl@src.lip6.fr>
* src/tgbaalgos/ltl2tgba_fm.cc (ltl_to_tgba_fm): Do not assert
that the true state has only one link when unobs is used.
2004-10-23 Alexandre Duret-Lutz <adl@src.lip6.fr>
* src/evtgbatest/Makefile.am (CLEANFILES): New variable.
......
......@@ -854,18 +854,20 @@ namespace spot
bdd cond_for_true = bddfalse;
if (i != dests.end())
{
// There should be only one transition going to 1 (true) ...
assert(i->second.size() == 1);
prom_map::const_iterator j = i->second.begin();
// ... and it is not expected to make any promises.
assert(j->first == bddtrue);
cond_for_true = j->second;
// When translating LTL for an event-based logic with
// unobservable events, the 1 state should accept even
// unobservable events.
// unobservable events, the 1 state should accept all events,
// even unobservable events.
if (unobs && f == constant::true_instance())
cond_for_true = all_events;
else
{
// There should be only one transition going to 1 (true) ...
assert(i->second.size() == 1);
prom_map::const_iterator j = i->second.begin();
// ... and it is not expected to make any promises.
assert(j->first == bddtrue);
cond_for_true = j->second;
}
tgba_explicit::transition* t =
a->create_transition(now, constant::true_instance()->val_name());
a->add_condition(t, d.bdd_to_formula(cond_for_true));
......
Supports Markdown
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