compsusp: Use new implem of scc_filter to remove suspended variables

* src/tgbaalgos/sccfilter.cc, src/tgbaalgos/sccfilter.hh: Rewrite all
composable filters in a way that allow arguments to be passed.
(scc_filter_susp): New function.
* src/tgbaalgos/sccinfo.cc, src/tgbaalgos/sccinfo.hh (scc_ap_support):
New method.
* src/tgbaalgos/compsusp.cc: Adjust to use tgba_digraph, and
call the new scc_filter_susp().
This commit is contained in:
Alexandre Duret-Lutz 2014-08-11 10:36:44 +02:00
parent 1244b61710
commit 637aeff2d3
5 changed files with 207 additions and 238 deletions

View file

@ -249,6 +249,15 @@ namespace spot
return result;
}
bdd scc_info::scc_ap_support(unsigned scc) const
{
bdd support = bddtrue;
for (auto s: states_of(scc))
for (auto& t: aut_->out(s))
support &= bdd_support(t.cond);
return support;
}
std::ostream&
dump_scc_info_dot(std::ostream& out,
const tgba_digraph* aut, scc_info* sccinfo)
@ -307,5 +316,4 @@ namespace spot
return out;
}
}