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

Optimize previous patch.

* src/tgbaalgos/scc.hh (scc_map::scc::supp_rec): Initialize to
bddfalse, since this cannot occur in reallife.
* src/tgbaalgos/scc.cc (scc_map::update_supp_rec): Adjust.
parent fa8dd7f1
2009-09-18 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Optimize previous patch.
* src/tgbaalgos/scc.hh (scc_map::scc::supp_rec): Initialize to
bddfalse, since this cannot occur in reallife.
* src/tgbaalgos/scc.cc (scc_map::update_supp_rec): Adjust.
2009-09-17 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Have scc_map keep track of APs that are reachable from a SCC.
......
......@@ -112,15 +112,15 @@ namespace spot
bdd& res = scc_map_[state].supp_rec;
if (res == bddtrue)
if (res == bddfalse)
{
const succ_type& s = succ(state);
succ_type::const_iterator it;
res = scc_map_[state].supp;
for (it = s.begin(); it != s.end(); ++it)
res &= update_supp_rec(it->first);
res &= scc_map_[state].supp;
}
return res;
......
......@@ -150,7 +150,7 @@ namespace spot
{
public:
scc(int index) : index(index), acc(bddfalse),
supp(bddtrue), supp_rec(bddtrue) {};
supp(bddtrue), supp_rec(bddfalse) {};
/// Index of the SCC.
int index;
/// The union of all acceptance conditions of transitions which
......
Markdown is supported
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