21 #include <spot/twa/twa.hh>
22 #include <spot/misc/fixpool.hh>
44 : left_(left), right_(right), count_(1), pool_(pool)
65 virtual size_t hash()
const override;
71 mutable unsigned count_;
129 const state* left_init,
const state* right_init);
140 return SPOT_make_shared_enabled__(
twa_product, left, right);
146 const state* left_init,
147 const state* right_init)
150 left, right, left_init, right_init);
An acceptance condition.
Definition: acc.hh:54
A state for twa_product.
Definition: twaproduct.hh:33
const state * left() const
Return the left component of this product state.
Definition: twaproduct.hh:52
virtual size_t hash() const override
Hash a state.
virtual void destroy() const override
Release a state.
const state * right() const
Return the right component of this product state.
Definition: twaproduct.hh:59
state_product(const state *left, const state *right, fixed_size_pool< pool_type::Safe > *pool)
Constructor.
Definition: twaproduct.hh:41
virtual int compare(const state *other) const override
Compares two states (that come from the same automaton).
virtual state_product * clone() const override
Duplicate a state.
Abstract class for states.
Definition: twa.hh:49
A lazy product with different initial states.
Definition: twaproduct.hh:120
virtual const state * get_init_state() const override
Get the initial state of the automaton.
twa_product_init(const const_twa_ptr &left, const const_twa_ptr &right, const state *left_init, const state *right_init)
Construct a product with explicit initial states.
const state * left_init_
Overridden left initial state.
Definition: twaproduct.hh:132
const state * right_init_
Overridden right initial state.
Definition: twaproduct.hh:133
A lazy product. (States are computed on the fly.)
Definition: twaproduct.hh:81
virtual std::string format_state(const state *state) const override
Format the state as a string for printing.
const_twa_ptr left_
Left component automaton.
Definition: twaproduct.hh:107
twa_product(const const_twa_ptr &left, const const_twa_ptr &right)
Constructor.
const acc_cond & left_acc() const
Return the acceptance condition of the left automaton.
virtual const state * get_init_state() const override
Get the initial state of the automaton.
const acc_cond & right_acc() const
Return the acceptance condition of the right automaton.
const_twa_ptr right_
Right component automaton.
Definition: twaproduct.hh:108
virtual twa_succ_iterator * succ_iter(const state *state) const override
Get an iterator over the successors of local_state.
virtual state * project_state(const state *s, const const_twa_ptr &t) const override
Project a state on an automaton.
fixed_size_pool< pool_type::Safe > pool_
Pool for state_product.
Definition: twaproduct.hh:110
bool left_kripke_
True iff left is a Kripke structure.
Definition: twaproduct.hh:109
Iterate over the successors of a state.
Definition: twa.hh:425
A Transition-based ω-Automaton.
Definition: twa.hh:648
std::shared_ptr< const twa > const_twa_ptr
Shared pointer to a const twa.
Definition: fwd.hh:36
std::shared_ptr< twa_product > twa_product_ptr
Shared pointer to a mutable twa_product.
Definition: fwd.hh:52
Definition: automata.hh:26
twa_product_ptr otf_product(const const_twa_ptr &left, const const_twa_ptr &right)
on-the-fly TGBA product
Definition: twaproduct.hh:137
twa_product_ptr otf_product_at(const const_twa_ptr &left, const const_twa_ptr &right, const state *left_init, const state *right_init)
on-the-fly TGBA product with forced initial states
Definition: twaproduct.hh:144