rename tgba_run as twa_run

Part of #113.

* src/twaalgos/emptiness.cc, src/twaalgos/emptiness.hh (tgba_run):
Rename as ...
(twa_run): ... this.
* NEWS: Mention it.
* iface/ltsmin/modelcheck.cc, src/tests/complementation.cc,
src/tests/emptchk.cc, src/tests/ikwiad.cc, src/tests/randtgba.cc,
src/twa/twa.hh, src/twaalgos/bfssteps.cc, src/twaalgos/bfssteps.hh,
src/twaalgos/gtec/ce.cc, src/twaalgos/gtec/ce.hh,
src/twaalgos/gv04.cc, src/twaalgos/magic.cc, src/twaalgos/minimize.cc,
src/twaalgos/ndfs_result.hxx, src/twaalgos/projrun.cc,
src/twaalgos/projrun.hh, src/twaalgos/reducerun.cc,
src/twaalgos/reducerun.hh, src/twaalgos/replayrun.cc,
src/twaalgos/replayrun.hh, src/twaalgos/se05.cc, src/twaalgos/word.cc,
src/twaalgos/word.hh, wrap/python/ajax/spotcgi.in,
wrap/python/spot_impl.i: Adjust.
This commit is contained in:
Alexandre Duret-Lutz 2015-10-24 17:20:30 +02:00
parent 4a91fccc33
commit 4221e68d44
28 changed files with 147 additions and 146 deletions

View file

@ -34,10 +34,10 @@
namespace spot
{
// tgba_run
// twa_run
//////////////////////////////////////////////////////////////////////
tgba_run::~tgba_run()
twa_run::~twa_run()
{
for (auto i : prefix)
i.s->destroy();
@ -45,7 +45,7 @@ namespace spot
i.s->destroy();
}
tgba_run::tgba_run(const tgba_run& run)
twa_run::twa_run(const twa_run& run)
{
for (steps::const_iterator i = run.prefix.begin();
i != run.prefix.end(); ++i)
@ -61,28 +61,28 @@ namespace spot
}
}
tgba_run&
tgba_run::operator=(const tgba_run& run)
twa_run&
twa_run::operator=(const twa_run& run)
{
if (&run != this)
{
this->~tgba_run();
new(this) tgba_run(run);
this->~twa_run();
new(this) twa_run(run);
}
return *this;
}
// print_tgba_run
// print_twa_run
//////////////////////////////////////////////////////////////////////
std::ostream&
print_tgba_run(std::ostream& os,
print_twa_run(std::ostream& os,
const const_twa_ptr& a,
const const_tgba_run_ptr& run)
const const_twa_run_ptr& run)
{
bdd_dict_ptr d = a->get_dict();
os << "Prefix:" << std::endl;
for (tgba_run::steps::const_iterator i = run->prefix.begin();
for (twa_run::steps::const_iterator i = run->prefix.begin();
i != run->prefix.end(); ++i)
{
os << " " << a->format_state(i->s) << std::endl;
@ -93,7 +93,7 @@ namespace spot
os << std::endl;
}
os << "Cycle:" << std::endl;
for (tgba_run::steps::const_iterator i = run->cycle.begin();
for (twa_run::steps::const_iterator i = run->cycle.begin();
i != run->cycle.end(); ++i)
{
os << " " << a->format_state(i->s) << std::endl;
@ -109,7 +109,7 @@ namespace spot
// emptiness_check_result
//////////////////////////////////////////////////////////////////////
tgba_run_ptr
twa_run_ptr
emptiness_check_result::accepting_run()
{
return nullptr;
@ -287,11 +287,11 @@ namespace spot
return nullptr;
}
// tgba_run_to_tgba
// twa_run_to_tgba
//////////////////////////////////////////////////////////////////////
twa_graph_ptr
tgba_run_to_tgba(const const_twa_ptr& a, const const_tgba_run_ptr& run)
twa_run_to_tgba(const const_twa_ptr& a, const const_twa_run_ptr& run)
{
auto d = a->get_dict();
auto res = make_twa_graph(d);
@ -301,7 +301,7 @@ namespace spot
const state* s = a->get_init_state();
unsigned src;
unsigned dst;
const tgba_run::steps* l;
const twa_run::steps* l;
acc_cond::mark_t seen_acc = 0U;
typedef std::unordered_map<const state*, unsigned,
@ -313,7 +313,7 @@ namespace spot
else
l = &run->prefix;
tgba_run::steps::const_iterator i = l->begin();
twa_run::steps::const_iterator i = l->begin();
assert(s->compare(i->s) == 0);
src = res->new_state();