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

Fix standard_of() w.r.t. listg.

* include/vaucanson/algorithms/standard_of.hxx
(Standard_OfVisitor): After concatenating to automata, and before
erasing the obsolete initial state of the RHS, do not explicitly
erase the transition leaving that initial state.  This is useless
because del_state() already does the work.  This was bogus because
del_transition invalidates the delta_iterator in the listg
implementation.
* include/vaucanson/algorithms/standard.hxx: Typos.
parent fe4bc86d
2009-07-01 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Fix standard_of() w.r.t. listg.
* include/vaucanson/algorithms/standard_of.hxx
(Standard_OfVisitor): After concatenating to automata, and before
erasing the obsolete initial state of the RHS, do not explicitly
erase the transition leaving that initial state. This is useless
because del_state() already does the work. This was bogus because
del_transition invalidates the delta_iterator in the listg
implementation.
* include/vaucanson/algorithms/standard.hxx: Typos.
2009-06-05 Alexandre Duret-Lutz <adl@lrde.epita.fr>
 
Make listg the default graph implementation, since we now know
......
......@@ -277,7 +277,7 @@ namespace vcsn {
}
// Group the common part of the concat of standard automata algorithm.
// - 'lhs' and 'rhs' are the to automaton to concatanate.
// - 'lhs' and 'rhs' are the two automata to concatanate.
// - 'rhs_i' is the initial state of rhs.
// - 'lhs_final_*' are respectively the begin and end iterator of the set
// containing the final states of lhs.
......
......@@ -119,12 +119,7 @@ namespace vcsn {
lhs_finals.end(),
identity_);
// Clean the automata from rhs_ini and its transitions.
for (typename automaton_t::delta_iterator i(auto_->value(), initial_);
! i.done();
i.next())
auto_->del_transition(*i);
// Remove the obsolete initial state of rhs
auto_->del_state(initial_);
initial_ = lhs_i;
return auto_;
......
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