4 #include <unordered_set>
14 template <Automaton Aut>
18 using automaton_t = Aut;
20 "is_deterministic: requires free labelset");
23 std::unordered_set<label_t> seen;
25 if (!seen.insert(aut->label_of(t)).second)
31 template <Automaton Aut>
36 "num_deterministic_states: requires free labelset");
39 for (
auto s: aut->states())
45 template <Automaton Aut>
54 template <Automaton Aut>
59 "is_deterministic: requires free labelset");
64 for (
auto s: aut->states())
71 template <Automaton Aut>
83 template <Automaton Aut>
91 template <Automaton Aut>
auto all_out(const Aut &aut, state_t_of< Aut > s)
Indexes of transitions leaving state s.
bool is_codeterministic(const automaton &aut)
Bridge.
bool is_deterministic(const automaton &aut)
Bridge.
typename detail::labelset_t_of_impl< base_t< ValueSet >>::type labelset_t_of
Aut transpose(const transpose_automaton< Aut > &aut)
typename detail::state_t_of_impl< base_t< ValueSet >>::type state_t_of
bool is_deterministic(const Aut &aut, state_t_of< Aut > s)
Whether state s is deterministic in aut.
auto initial_transitions(const Aut &aut) -> decltype(aut->all_out(aut->pre()))
Indexes of transitions to (visible) initial states.
size_t num_codeterministic_states(const Aut &aut)
Number of non-deterministic states of transpositive automaton.
std::shared_ptr< detail::automaton_base > automaton
typename detail::label_t_of_impl< base_t< ValueSet >>::type label_t_of
size_t num_deterministic_states(const Aut &aut)
Number of non-deterministic states.
bool is_codeterministic(const Aut &aut)
Whether the transpositive automaton is deterministic.
size_t size(const ExpSet &rs, const typename ExpSet::value_t &r)