dtbasat,dtgbasat: rewrite using the tgba_digraph interface
This gets rid of many state*/int conversions. We now use scc_info instead of scc_map. Finally the loops are now all 0-based. * src/tgbaalgos/sccinfo.cc, src/tgbaalgos/sccinfo.hh (weak_sccs): New method. * src/tgbaalgos/dtbasat.cc, src/tgbaalgos/dtbasat.hh, src/tgbaalgos/dtgbasat.cc, src/tgbaalgos/dtgbasat.hh: Use the tgba_digraph interface. * src/tgbatest/ltl2tgba.cc: Adjust calls.
This commit is contained in:
parent
99d28c3cc2
commit
edb220af6a
7 changed files with 381 additions and 425 deletions
|
|
@ -250,6 +250,17 @@ namespace spot
|
|||
return result;
|
||||
}
|
||||
|
||||
std::vector<bool> scc_info::weak_sccs() const
|
||||
{
|
||||
unsigned n = scc_count();
|
||||
std::vector<bool> result(scc_count());
|
||||
auto acc = used_acc();
|
||||
bdd all = bdd_support(aut_->neg_acceptance_conditions());
|
||||
for (unsigned s = 0; s < n; ++s)
|
||||
result[s] = !is_accepting_scc(s) || acc[s] == all;
|
||||
return result;
|
||||
}
|
||||
|
||||
bdd scc_info::scc_ap_support(unsigned scc) const
|
||||
{
|
||||
bdd support = bddtrue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue