Simplify the construction of TA.
* src/ltlvisit/apcollect.cc, src/ltlvisit/apcollect.hh: Add a version that builds a BDD. * src/tgbatest/ltl2tgba.cc: Use it.
This commit is contained in:
parent
8e1438c98f
commit
20c3f9f8ba
3 changed files with 27 additions and 12 deletions
|
|
@ -1101,18 +1101,7 @@ main(int argc, char** argv)
|
|||
//TA, STA, GTA, SGTA and TGTA
|
||||
if (ta_opt || tgta_opt)
|
||||
{
|
||||
spot::ltl::atomic_prop_set* aps = atomic_prop_collect(f, 0);
|
||||
|
||||
bdd atomic_props_set_bdd = bddtrue;
|
||||
for (spot::ltl::atomic_prop_set::const_iterator i = aps->begin(); i
|
||||
!= aps->end(); ++i)
|
||||
{
|
||||
bdd atomic_prop = bdd_ithvar((a->get_dict())->var_map[*i]);
|
||||
|
||||
atomic_props_set_bdd &= atomic_prop;
|
||||
|
||||
}
|
||||
delete aps;
|
||||
bdd atomic_props_set_bdd = atomic_prop_collect_as_bdd(f, a);
|
||||
|
||||
if (ta_opt)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue