21#include <spot/twa/twagraph.hh>
22#include <spot/twaalgos/powerset.hh>
48 const twa_graph_ptr& aut_;
49 std::map<unsigned, int> state_to_var;
50 std::map<int, unsigned> var_to_state;
55 bdd operator()(
unsigned st);
56 void new_dests(
unsigned st, bdd out)
const;
71 unsigned states_and(
const twa_graph_ptr& aut, I begin, I end)
74 throw std::runtime_error
75 (
"state_and() expects an non-empty list of states");
77 bdd combination = bddtrue;
79 combination &= combiner(*begin++);
80 unsigned new_s = aut->new_state();
81 combiner.new_dests(new_s, combination);
88 const std::initializer_list<T>& il)
111 bool named_states =
false,
113 bool raise_if_too_many_sets =
true);
121 std::set<unsigned> states_;
127 : states_(other.states_), is_reset_(other.is_reset_)
133 const std::set<unsigned>& states()
const;
134 bool is_reset()
const;
141 const_twa_graph_ptr aut_;
142 std::vector<int> state_to_var_;
143 std::map<int, unsigned> var_to_state_;
148 void allocate_state_vars();
154 typedef std::shared_ptr<twa_univ_remover> twa_univ_remover_ptr;
Helper class combine outgoing edges in alternating automata.
Definition alternation.hh:46
Helper object to specify when an algorithm should abort its construction.
Definition powerset.hh:44
Abstract class for states.
Definition twa.hh:47
Iterate over the successors of a state.
Definition twa.hh:394
Definition alternation.hh:138
const state * get_init_state() const override
Get the initial state of the automaton.
std::string format_state(const state *s) const override
Format the state as a string for printing.
twa_succ_iterator * succ_iter(const state *s) const override
Get an iterator over the successors of local_state.
A Transition-based ω-Automaton.
Definition twa.hh:619
Definition alternation.hh:119
size_t hash() const override
Hash a state.
int compare(const state *other) const override
Compares two states (that come from the same automaton).
state * clone() const override
Duplicate a state.
Definition automata.hh:26
twa_univ_remover_ptr remove_univ_otf(const const_twa_graph_ptr &aut)
Remove universal edges on the fly from an alternating Büchi automaton.
twa_graph_ptr remove_alternation(const const_twa_graph_ptr &aut, bool named_states=false, const output_aborter *aborter=nullptr, bool raise_if_too_many_sets=true)
Remove universal edges from a weak alternating automaton.
unsigned states_and(const twa_graph_ptr &aut, I begin, I end)
Combine two states in a conjunction.
Definition alternation.hh:71