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

rename copy_acceptance_conditions_of()

... into copy_acceptance_of().  For #65.

* src/tgba/tgbagraph.hh, src/tgbaalgos/dupexp.cc,
src/tgbaalgos/emptiness.cc, src/tgbaalgos/mask.cc,
src/tgbaalgos/powerset.cc, src/tgbaalgos/sbacc.cc,
src/tgbaalgos/simulation.cc, src/tgbaalgos/stutter.cc: Here.
parent c3fbbaa8
...@@ -190,7 +190,7 @@ namespace spot ...@@ -190,7 +190,7 @@ namespace spot
: tgba(other->get_dict()), : tgba(other->get_dict()),
g_(other->g_), init_number_(other->init_number_) g_(other->g_), init_number_(other->init_number_)
{ {
copy_acceptance_conditions_of(other); copy_acceptance_of(other);
copy_ap_of(other); copy_ap_of(other);
prop_copy(other, p); prop_copy(other, p);
} }
...@@ -426,7 +426,7 @@ namespace spot ...@@ -426,7 +426,7 @@ namespace spot
SPOT_RETURN(g_.is_dead_transition(t)); SPOT_RETURN(g_.is_dead_transition(t));
/// \brief Copy the acceptance conditions of another tgba. /// \brief Copy the acceptance conditions of another tgba.
void copy_acceptance_conditions_of(const const_tgba_ptr& a) void copy_acceptance_of(const const_tgba_ptr& a)
{ {
// FIXME: Should rename as copy_acceptance_condition*_of // FIXME: Should rename as copy_acceptance_condition*_of
acc_ = a->acc(); acc_ = a->acc();
......
...@@ -39,7 +39,7 @@ namespace spot ...@@ -39,7 +39,7 @@ namespace spot
dupexp_iter(const const_tgba_ptr& a, tgba::prop_set p) dupexp_iter(const const_tgba_ptr& a, tgba::prop_set p)
: T(a), out_(make_tgba_digraph(a->get_dict())) : T(a), out_(make_tgba_digraph(a->get_dict()))
{ {
out_->copy_acceptance_conditions_of(a); out_->copy_acceptance_of(a);
out_->copy_ap_of(a); out_->copy_ap_of(a);
out_->prop_copy(a, p); out_->prop_copy(a, p);
} }
......
...@@ -296,7 +296,7 @@ namespace spot ...@@ -296,7 +296,7 @@ namespace spot
auto d = a->get_dict(); auto d = a->get_dict();
auto res = make_tgba_digraph(d); auto res = make_tgba_digraph(d);
res->copy_ap_of(a); res->copy_ap_of(a);
res->copy_acceptance_conditions_of(a); res->copy_acceptance_of(a);
const state* s = a->get_init_state(); const state* s = a->get_init_state();
unsigned src; unsigned src;
......
...@@ -55,7 +55,7 @@ namespace spot ...@@ -55,7 +55,7 @@ namespace spot
auto res = make_tgba_digraph(in->get_dict()); auto res = make_tgba_digraph(in->get_dict());
res->copy_ap_of(in); res->copy_ap_of(in);
res->prop_copy(in, { true, true, true, true, false }); res->prop_copy(in, { true, true, true, true, false });
res->copy_acceptance_conditions_of(in); res->copy_acceptance_of(in);
transform_copy(in, res, [&](unsigned src, transform_copy(in, res, [&](unsigned src,
bdd& cond, bdd& cond,
acc_cond::mark_t&, acc_cond::mark_t&,
......
...@@ -366,7 +366,7 @@ namespace spot ...@@ -366,7 +366,7 @@ namespace spot
const_tgba_digraph_ptr ref, power_map& refmap, const_tgba_digraph_ptr ref, power_map& refmap,
unsigned threshold) unsigned threshold)
{ {
det->copy_acceptance_conditions_of(ref); det->copy_acceptance_of(ref);
scc_info sm(det); scc_info sm(det);
......
...@@ -31,7 +31,7 @@ namespace spot ...@@ -31,7 +31,7 @@ namespace spot
auto res = make_tgba_digraph(old->get_dict()); auto res = make_tgba_digraph(old->get_dict());
res->copy_ap_of(old); res->copy_ap_of(old);
res->copy_acceptance_conditions_of(old); res->copy_acceptance_of(old);
typedef std::pair<unsigned, acc_cond::mark_t> pair_t; typedef std::pair<unsigned, acc_cond::mark_t> pair_t;
std::map<pair_t, unsigned> s2n; std::map<pair_t, unsigned> s2n;
......
...@@ -207,7 +207,7 @@ namespace spot ...@@ -207,7 +207,7 @@ namespace spot
{ {
a_ = make_tgba_digraph(in->get_dict()); a_ = make_tgba_digraph(in->get_dict());
a_->copy_ap_of(in); a_->copy_ap_of(in);
a_->copy_acceptance_conditions_of(in); a_->copy_acceptance_of(in);
a_->new_states(ns); a_->new_states(ns);
auto& acccond = in->acc(); auto& acccond = in->acc();
...@@ -485,7 +485,7 @@ namespace spot ...@@ -485,7 +485,7 @@ namespace spot
{ {
tgba_digraph_ptr res = make_tgba_digraph(a_->get_dict()); tgba_digraph_ptr res = make_tgba_digraph(a_->get_dict());
res->copy_ap_of(a_); res->copy_ap_of(a_);
res->copy_acceptance_conditions_of(a_); res->copy_acceptance_of(a_);
if (Sba) if (Sba)
res->prop_state_based_acc(); res->prop_state_based_acc();
......
...@@ -314,7 +314,7 @@ namespace spot ...@@ -314,7 +314,7 @@ namespace spot
tgba_digraph_ptr res = make_tgba_digraph(a->get_dict()); tgba_digraph_ptr res = make_tgba_digraph(a->get_dict());
// We use the same BDD variables as the input. // We use the same BDD variables as the input.
res->copy_ap_of(a); res->copy_ap_of(a);
res->copy_acceptance_conditions_of(a); res->copy_acceptance_of(a);
// These maps make it possible to convert stutter_state to number // These maps make it possible to convert stutter_state to number
// and vice-versa. // and vice-versa.
ss2num_map ss2num; ss2num_map ss2num;
......
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