43 template <
class SymbolType,
class StateType >
47template <
class SymbolType,
class StateType >
53 for (
const StateType & state : epsilonClosure [ transition.second ] )
68 res.addState ( state );
69 res.addTransition ( symbol, state );
73 if ( ! transition.first.second.empty ( ) ) {
76 for (
auto iter = transition.first.second.begin ( ); std::next ( iter ) != transition.first.second.end ( ); ++ iter ) {
78 res.addState ( newSource );
89 if (
automaton.getInputAlphabet ( ).contains ( transition.first.first ) && transition.first.second.empty ( ) )
Nondeterministic Z-Automaton in Arc-Factored Normal Form. Computation model for unranked regular tree...
Definition: ArcFactoredNondeterministicZAutomaton.h:67
Nondeterministic Z-Automaton. Computation model for unranked regular tree languages.
Definition: NondeterministicZAutomaton.h:68
static ext::map< typename T::StateType, ext::set< typename T::StateType > > allEpsilonClosure(const T &fsm)
Definition: ToArcFactored.h:41
static ArcFactoredNondeterministicZAutomaton< SymbolType, ext::vector< ext::variant< SymbolType, StateType > > > convert(const NondeterministicZAutomaton< SymbolType, StateType > &automaton)
Definition: ToArcFactored.h:48
Class extending the map class from the standard library. Original reason is to allow printing of the ...
Definition: map.hpp:48
Class extending the multimap class from the standard library. Original reason is to allow printing of...
Definition: multimap.hpp:48
iterator insert(const T &key, const R &value)
Insert variant with explicit key and value parameters.
Definition: multimap.hpp:118
Class extending the pair class from the standard library. Original reason is to allow printing of the...
Definition: pair.hpp:43
Implementation of the variant class allowing to store any type of those listed in the template parame...
Definition: variant.hpp:98
Class extending the vector class from the standard library. Original reason is to allow printing of t...
Definition: vector.hpp:45
typename T::StateType StateType
Definition: ToGrammarLeftRG.h:64
typename T::SymbolType SymbolType
Definition: SingleInitialStateEpsilonTransition.h:72
return res
Definition: MinimizeByPartitioning.h:145
Definition: ToGrammar.h:31
constexpr auto make_pair(T1 &&x, T2 &&y)
Definition: pair.hpp:79