Store the scc_map_ as a vector instead of a std::map. There is no

point in using a map since the SCC are numbered in sequence.

* src/tgbaalgos/scc.hh (scc_map::relabel_component): Return the
number of the SCC instead of taking it as argument.
(scc_map::scc_num_): Delete this variable.  scc_map_.size() gives
the same information.
(scc_map::scc_map_type): Define using std::vector instead of
std::map.
* src/tgbaalgos/scc.cc: Adjust all uses.
This commit is contained in:
Alexandre Duret-Lutz 2009-05-28 13:32:36 +02:00
parent 07ead6134e
commit 96a7a49c52
3 changed files with 45 additions and 28 deletions

View file

@ -1,3 +1,16 @@
2009-05-28 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Store the scc_map_ as a vector instead of a std::map. There is no
point in using a map since the SCC are numbered in sequence.
* src/tgbaalgos/scc.hh (scc_map::relabel_component): Return the
number of the SCC instead of taking it as argument.
(scc_map::scc_num_): Delete this variable. scc_map_.size() gives
the same information.
(scc_map::scc_map_type): Define using std::vector instead of
std::map.
* src/tgbaalgos/scc.cc: Adjust all uses.
2009-05-28 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Keep track of conditions in SCC, and add a more verbose dump.