Skip to content
Snippets Groups Projects
Commit 5b63f5db authored by Jan Trávníček's avatar Jan Trávníček
Browse files

fix use template parameter

parent 7b08cf34
No related branches found
No related tags found
No related merge requests found
......@@ -66,19 +66,19 @@ automaton::MultiInitialStateNFA < SymbolType, StateType > EpsilonRemoverOutgoing
fsm.setFinalStates ( origFSM.getFinalStates ( ) );
fsm.setInputAlphabet ( origFSM.getInputAlphabet ( ) );
 
std::map < label::Label, std::set < label::Label > > closures = automaton::properties::efficient::AllEpsilonClosure::allEpsilonClosure ( origFSM );
std::map < StateType, std::set < StateType > > closures = automaton::properties::efficient::AllEpsilonClosure::allEpsilonClosure ( origFSM );
 
std::map < std::pair < label::Label, alphabet::Symbol >, std::set < label::Label > > transitions = origFSM.getSymbolTransitions ( );
std::map < std::pair < StateType, SymbolType >, std::set < StateType > > transitions = origFSM.getSymbolTransitions ( );
 
for ( const std::pair < const std::pair < label::Label, alphabet::Symbol >, std::set < label::Label > > & transition : transitions )
for ( const label::Label & to : transition.second )
for ( const label::Label & toClosure : closures [ to ] )
for ( const std::pair < const std::pair < StateType, SymbolType >, std::set < StateType > > & transition : transitions )
for ( const StateType & to : transition.second )
for ( const StateType & toClosure : closures [ to ] )
fsm.addTransition ( transition.first.first, transition.first.second, toClosure );
 
/**
* Step 2 from Melichar 2.41
*/
const std::set < label::Label > & cl = closures [ origFSM.getInitialState ( ) ];
const std::set < StateType > & cl = closures [ origFSM.getInitialState ( ) ];
fsm.setInitialStates ( cl );
 
return fsm;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment