diff --git a/alib2data/src/automaton/FSM/EpsilonNFA.cpp b/alib2data/src/automaton/FSM/EpsilonNFA.cpp index 1eb93f96494ebfe4af40f3d16977253f30e52ef8..1c47c21f6648bb2a8108927aaf34f6c2c32aa05c 100644 --- a/alib2data/src/automaton/FSM/EpsilonNFA.cpp +++ b/alib2data/src/automaton/FSM/EpsilonNFA.cpp @@ -88,7 +88,6 @@ bool EpsilonNFA::removeInputSymbol(const alphabet::Symbol& symbol) { } return inputAlphabet.erase(symbol); - } bool EpsilonNFA::addTransition(const State& from, const std::variant<string::Epsilon, alphabet::Symbol>& input, const State& to) { @@ -102,7 +101,7 @@ bool EpsilonNFA::addTransition(const State& from, const std::variant<string::Eps throw AutomatonException("State \"" + (std::string) to.getName() + "\" doesn't exist."); std::pair<State, std::variant<string::Epsilon, alphabet::Symbol> > key = std::make_pair(from, input); - + return transitions[key].insert(to).second; }