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

* src/tgbaalgos/scc.cc (dump_scc_dot): Use a bit vector instead of

a map to track visited SCC since they are sequentially numbered.
parent 15b3b9e0
2009-05-28 Alexandre Duret-Lutz <adl@lrde.epita.fr>
* src/tgbaalgos/scc.cc (dump_scc_dot): Use a bit vector instead of
a map to track visited SCC since they are sequentially numbered.
2009-05-28 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Number states using negative values and SCCs using nonnegative
......
......@@ -360,9 +360,8 @@ namespace spot
int start = m.initial();
out << " i -> " << start << std::endl;
typedef std::set<int> seen_map;
seen_map seen;
seen.insert(start);
std::vector<bool> seen(m.scc_count());
seen[start] = true;
std::queue<int> q;
q.push(start);
......@@ -412,11 +411,10 @@ namespace spot
bdd_print_formula(out, m.get_aut()->get_dict(), label);
out << "\"]" << std::endl;
seen_map::const_iterator it = seen.find(dest);
if (it != seen.end())
if (seen[dest])
continue;
seen.insert(dest);
seen[dest] = true;
q.push(dest);
}
}
......
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