rename set_single_acceptance_set() to set_buchi()

Fixes #66.

* src/dstarparse/dra2ba.cc, src/dstarparse/nra2nba.cc,
src/hoaparse/hoaparse.yy, src/tgba/tgbagraph.hh,
src/tgbaalgos/complete.cc, src/tgbaalgos/degen.cc,
src/tgbaalgos/dtbasat.cc, src/tgbaalgos/dtgbacomp.cc,
src/tgbaalgos/minimize.cc, src/tgbaalgos/postproc.cc: Here.
This commit is contained in:
Alexandre Duret-Lutz 2015-03-18 20:27:37 +01:00
parent 2dbef514bd
commit 47d9a2d57c
10 changed files with 11 additions and 11 deletions

View file

@ -225,7 +225,7 @@ namespace spot
{
out_->copy_ap_of(a->aut);
out_->prop_state_based_acc();
acc_ = out_->set_single_acceptance_set();
acc_ = out_->set_buchi();
out_->new_states(num_states_ * (a->accpair_count + 1));
out_->set_init_state(a->aut->get_init_state_number());

View file

@ -45,7 +45,7 @@ namespace spot
num_states_(a->aut->num_states())
{
out_->copy_ap_of(aut);
out_->set_single_acceptance_set();
out_->set_buchi();
out_->prop_state_based_acc();
out_->new_states(num_states_ * (d_->accpair_count + 1));
// This converts the initial state of aut (not a->aut) into a

View file

@ -1042,7 +1042,7 @@ incorrectly-labeled-edge: trans-label unlabeled-edge
/**********************************************************************/
never: "never" { res.namer = res.h->aut->create_namer<std::string>();
res.h->aut->set_single_acceptance_set();
res.h->aut->set_buchi();
res.h->aut->prop_state_based_acc();
res.acc_state = State_Acc;
res.pos_acc_sets = res.h->aut->acc().all_sets();

View file

@ -348,7 +348,7 @@ namespace spot
acc_.set_generalized_buchi();
}
acc_cond::mark_t set_single_acceptance_set()
acc_cond::mark_t set_buchi()
{
set_generalized_buchi(1);
return acc_.mark(0);

View file

@ -31,7 +31,7 @@ namespace spot
// We cannot safely complete an automaton if it has no
// acceptance set as the added sink would become accepting.
// In this case, add an acceptance set to all transitions.
allacc = aut->set_single_acceptance_set();
allacc = aut->set_buchi();
for (auto& t: aut->transition_vector())
t.acc = allacc;
}

View file

@ -201,7 +201,7 @@ namespace spot
// The result automaton is an SBA.
auto res = make_tgba_digraph(dict);
res->copy_ap_of(a);
res->set_single_acceptance_set();
res->set_buchi();
if (want_sba)
res->prop_state_based_acc();
// Preserve determinism, weakness, and stutter-invariance

View file

@ -638,7 +638,7 @@ namespace spot
auto autdict = aut->get_dict();
auto a = make_tgba_digraph(autdict);
a->copy_ap_of(aut);
acc_cond::mark_t acc = a->set_single_acceptance_set();
acc_cond::mark_t acc = a->set_buchi();
if (state_based)
a->prop_state_based_acc();
a->new_states(satdict.cand_size);

View file

@ -40,7 +40,7 @@ namespace spot
// We will modify res in place, and the resulting
// automaton will only have one acceptance set.
// This changes aut->acc();
res->set_single_acceptance_set();
res->set_buchi();
// The resulting automaton is weak.
res->prop_inherently_weak();
res->prop_state_based_acc();
@ -127,7 +127,7 @@ namespace spot
// We will modify res in place, and the resulting
// automaton will only have one acceptance set.
acc_cond::mark_t all_acc = res->set_single_acceptance_set();
acc_cond::mark_t all_acc = res->set_buchi();
res->prop_state_based_acc();
unsigned sink = res->num_states();

View file

@ -141,7 +141,7 @@ namespace spot
// transition in res.
if (!final->empty())
res->set_single_acceptance_set();
res->set_buchi();
for (sit = sets.begin(); sit != sets.end(); ++sit)
{

View file

@ -40,7 +40,7 @@ namespace spot
{
if (a->acc().num_sets() == 0)
{
auto m = a->set_single_acceptance_set();
auto m = a->set_buchi();
for (auto& t: a->transitions())
t.acc = m;
}