Commit 2dbef514 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

move copy_acceptance_of and copy_ap_of to tgba.hh

Fixes #65.

* src/tgba/tgbagraph.hh (copy_acceptance_of, copy_ap_of): Move...
* src/tgba/tgba.hh: ... here.
parent a79267b8
......@@ -658,6 +658,21 @@ namespace spot
prop_state_based_acc();
}
/// \brief Copy the acceptance condition of another tgba.
void copy_acceptance_of(const const_tgba_ptr& a)
{
acc_ = a->acc();
unsigned num = acc_.num_sets();
prop_single_acc_set(!acc_.uses_fin_acceptance() && num == 1);
if (num == 0)
prop_state_based_acc();
}
void copy_ap_of(const const_tgba_ptr& a)
{
get_dict()->register_all_propositions_of(a, this);
}
protected:
/// Do the actual computation of tgba::support_conditions().
virtual bdd compute_support_conditions(const state* state) const = 0;
......
......@@ -425,22 +425,6 @@ namespace spot
auto is_dead_transition(const graph_t::trans_storage_t& t) const
SPOT_RETURN(g_.is_dead_transition(t));
/// \brief Copy the acceptance conditions of another tgba.
void copy_acceptance_of(const const_tgba_ptr& a)
{
// FIXME: Should rename as copy_acceptance_condition*_of
acc_ = a->acc();
unsigned num = acc_.num_sets();
prop_single_acc_set(!acc_.uses_fin_acceptance() && num == 1);
if (num == 0)
prop_state_based_acc();
}
void copy_ap_of(const const_tgba_ptr& a)
{
get_dict()->register_all_propositions_of(a, this);
}
virtual bdd compute_support_conditions(const state* s) const
{
bdd sum = bddfalse;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment