17 #ifndef AWALI_ALGOS_SUB_AUTOMATON_HH
18 # define AWALI_ALGOS_SUB_AUTOMATON_HH
22 namespace awali {
namespace sttc {
29 template <
typename Aut,
typename Pred>
34 std::vector<state_t> to_erase;
35 for(
auto s : aut->states())
37 to_erase.emplace_back(s);
38 for(
auto s : to_erase)
42 template <
typename Aut>
47 std::vector<state_t> to_erase;
49 for(
auto s : aut->all_states())
50 if(it == sts.end() || *it != s) {
51 if(s!= aut->pre() && s!=aut->post())
52 to_erase.emplace_back(s);
56 for(
auto s : to_erase)
void sub_automaton(Aut &aut, Pred keep_state)
Definition: sub_automaton.hh:32
Main namespace of Awali.
Definition: ato.hh:22