17 template <Automaton Aut>
21 "has_bounded_lag: automaton labelset must be a tupleset");
25 "has_bounded_lag: transducer labelset must have at least 2 tapes");
30 using label_t =
typename labelset_t::value_t;
48 template <std::size_t... I>
54 using delay_t = std::array<int, number_of_tapes - 1>;
65 template <std::
size_t I>
68 using tape_labelset_t =
typename labelset_t::template valueset_t<I>;
73 template <std::size_t... I>
77 int i0 = get_size_tape<0>(l);
78 d = {(d[I] + i0 - get_size_tape<I + 1>(l))...};
93 auto visited =
v_[dst];
110 while (
aut_->src_of(t) != dst)
146 template <Automaton Aut>
158 template <Automaton Aut>
labelset_t_of< automaton_t > labelset_t
bool has_bounded_lag(const Aut &aut)
Whether a transducer has a bounded lag.
bool has_bounded_lag(state_t src)
typename detail::transition_t_of_impl< base_t< ValueSet >>::type transition_t_of
state_t_of< automaton_t > state_t
typename detail::labelset_t_of_impl< base_t< ValueSet >>::type labelset_t_of
size_t states_size(const Aut &aut)
The largest state number, plus one.
size_t size(const ExpSet &rs, const typename ExpSet::value_t &r)
typename detail::context_t_of_impl< base_t< ValueSet >>::type context_t_of
typename labelset_t::value_t label_t
std::array< int, number_of_tapes-1 > delay_t
The delay associated with each state.
std::vector< transition_t > parent_state_t
void add_delay(delay_t &d, transition_t tr, seq< I... >)
transition_t_of< automaton_t > transition_t
bool has_bounded_lag(const automaton &aut)
Bridge.
typename detail::state_t_of_impl< base_t< ValueSet >>::type state_t_of
bounded_lag_checker(const automaton_t &aut)
int get_size_tape(label_t l)
std::vector< visit_state > visited_t
static constexpr size_t number_of_tapes
auto & as()
Extract wrapped typed automaton.
auto all_out(const Aut &aut, state_t_of< Aut > s)
Indexes of transitions leaving state s.
void add_delay(delay_t &d, transition_t tr)