tgbadigraph: delegate useful graph methods

* src/tgba/tgbagraph.hh (new_state, new_states, new_transitions, out,
trans_data): Delegate these useful graph methods so we do not have to
call get_graph().
* src/graphtest/tgbagraph.cc, src/tgbaalgos/dtbasat.cc,
src/tgbaalgos/dtgbasat.cc, src/tgbaalgos/dupexp.cc,
src/tgbaalgos/emptiness.cc, src/tgbaalgos/lbtt.cc,
src/tgbaalgos/powerset.cc, src/tgbaalgos/randomgraph.cc,
src/tgbaalgos/sccfilter.cc,
src/tgbaalgos/sccinfo.cc,src/tgbaalgos/simulation.cc: Simplify.
This commit is contained in:
Alexandre Duret-Lutz 2014-07-10 10:23:48 +02:00
parent 18f6fe772b
commit 1a93166d15
12 changed files with 92 additions and 75 deletions

View file

@ -81,7 +81,7 @@ namespace spot
num_ = -1;
h_[init] = num_;
root_.emplace_front(num_, bddfalse, bddfalse);
todo_.emplace(init, aut->get_graph().out(init).begin());
todo_.emplace(init, aut->out(init).begin());
}
while (!todo_.empty())
@ -148,7 +148,7 @@ namespace spot
// for later processing.
h_[dest] = --num_;
root_.emplace_front(num_, cond, acc);
todo_.emplace(dest, aut->get_graph().out(dest).begin());
todo_.emplace(dest, aut->out(dest).begin());
continue;
}
@ -230,8 +230,7 @@ namespace spot
std::vector<bdd> scc_info::used_acc() const
{
auto& g = aut_->get_graph();
unsigned n = g.num_states();
unsigned n = aut_->num_states();
std::vector<bdd> result(scc_count());
acceptance_convertor conv(aut_->neg_acceptance_conditions());
@ -240,7 +239,7 @@ namespace spot
unsigned src_scc = scc_of(src);
if (!is_accepting_scc(src_scc))
continue;
for (auto& t: g.out(src))
for (auto& t: aut_->out(src))
{
if (scc_of(t.dst) != src_scc)
continue;