21 #include <spot/twa/twagraph.hh>
22 #include <spot/misc/bddlt.hh>
23 #include <unordered_map>
36 struct SPOT_API
mtdtwa:
public std::enable_shared_from_this<mtdtwa>
47 dict_->unregister_all_my_variables(
this);
An acceptance condition.
Definition: acc.hh:54
mtdtwa_ptr dtwa_to_mtdtwa(const twa_graph_ptr &aut)
Convert a deterministic TωA to an MTDTwA.
std::pair< acc_cond::mark_t, unsigned > terminal_data_t
Data associated with a terminal BDD node.
Definition: mtdtwa.hh:29
std::vector< terminal_data_t > terminal_data_map_t
Map from terminal BDD values to terminal data.
Definition: mtdtwa.hh:32
std::shared_ptr< const mtdtwa > const_mtdtwa_ptr
Shared pointer to a const mtdtwa.
Definition: mtdtwa.hh:78
std::shared_ptr< mtdtwa > mtdtwa_ptr
Shared pointer to an mtdtwa.
Definition: mtdtwa.hh:75
std::shared_ptr< bdd_dict > bdd_dict_ptr
Shared pointer to a bdd_dict.
Definition: bdddict.hh:304
std::shared_ptr< twa_graph > twa_graph_ptr
Shared pointer to a mutable twa_graph.
Definition: fwd.hh:44
Definition: automata.hh:26
A multi-terminal decision diagram representation of a TωA.
Definition: mtdtwa.hh:37
bdd_dict_ptr dict_
Definition: mtdtwa.hh:52
twa_graph_ptr as_twa(bool state_based=false, bool labels=true) const
Convert to a twa_graph.
mtdtwa(const bdd_dict_ptr &dict) noexcept
Construct an MTDTwA with the given BDD dictionary.
Definition: mtdtwa.hh:40
acc_cond acc
Acceptance condition of the automaton.
Definition: mtdtwa.hh:51
std::ostream & print_dot(std::ostream &os) const
Print the MTBDD in dot format.
terminal_data_map_t terminal_data_map
Map from terminal BDD values to data.
Definition: mtdtwa.hh:54
unsigned num_roots() const
Return the number of root states.
Definition: mtdtwa.hh:60
std::vector< bdd > states
BDD transitions for each root state.
Definition: mtdtwa.hh:50