graph: rename num_transitions() as num_edges()
And in fact, rename most "trans*" as "edges*", because that what they really are. * src/bin/autfilt.cc, src/bin/ltlcross.cc, src/bin/randaut.cc, src/dstarparse/dra2ba.cc, src/dstarparse/dstarparse.yy, src/dstarparse/nra2nba.cc, src/dstarparse/nsa2tgba.cc, src/graph/graph.hh, src/graph/ngraph.hh, src/ltlvisit/exclusive.cc, src/parseaut/parseaut.yy, src/tests/complementation.cc, src/tests/graph.cc, src/tests/ltl2tgba.cc, src/tests/ngraph.cc, src/tests/twagraph.cc, src/twa/twagraph.cc, src/twa/twagraph.hh, src/twa/twamask.hh, src/twaalgos/are_isomorphic.cc, src/twaalgos/are_isomorphic.hh, src/twaalgos/canonicalize.cc, src/twaalgos/cleanacc.cc, src/twaalgos/complete.cc, src/twaalgos/compsusp.cc, src/twaalgos/cycles.cc, src/twaalgos/degen.cc, src/twaalgos/dot.cc, src/twaalgos/dtbasat.cc, src/twaalgos/dtgbacomp.cc, src/twaalgos/dtgbasat.cc, src/twaalgos/dupexp.cc, src/twaalgos/emptiness.cc, src/twaalgos/isunamb.cc, src/twaalgos/isweakscc.cc, src/twaalgos/ltl2tgba_fm.cc, src/twaalgos/mask.hh, src/twaalgos/minimize.cc, src/twaalgos/postproc.cc, src/twaalgos/powerset.cc, src/twaalgos/product.cc, src/twaalgos/randomgraph.cc, src/twaalgos/randomize.cc, src/twaalgos/randomize.hh, src/twaalgos/relabel.cc, src/twaalgos/remfin.cc, src/twaalgos/safety.cc, src/twaalgos/sbacc.cc, src/twaalgos/sccfilter.cc, src/twaalgos/sepsets.cc, src/twaalgos/simulation.cc, src/twaalgos/stutter.cc, src/twaalgos/totgba.cc: Rename these.
This commit is contained in:
parent
a1ba0a89c5
commit
af8634d8c4
53 changed files with 685 additions and 693 deletions
|
|
@ -1021,16 +1021,14 @@ incorrectly-unlabeled-edge: checked-state-num trans-acc_opt
|
|||
"(previous edge is labeled)");
|
||||
else
|
||||
cond = res.state_label;
|
||||
res.h->aut->new_transition(res.cur_state, $1,
|
||||
cond,
|
||||
$2 | res.acc_state);
|
||||
res.h->aut->new_edge(res.cur_state, $1,
|
||||
cond, $2 | res.acc_state);
|
||||
}
|
||||
labeled-edge: trans-label checked-state-num trans-acc_opt
|
||||
{
|
||||
if (res.cur_label != bddfalse)
|
||||
res.h->aut->new_transition(res.cur_state, $2,
|
||||
res.cur_label,
|
||||
$3 | res.acc_state);
|
||||
res.h->aut->new_edge(res.cur_state, $2,
|
||||
res.cur_label, $3 | res.acc_state);
|
||||
}
|
||||
| trans-label state-conj-2 trans-acc_opt
|
||||
{
|
||||
|
|
@ -1067,8 +1065,8 @@ unlabeled-edge: checked-state-num trans-acc_opt
|
|||
}
|
||||
}
|
||||
if (cond != bddfalse)
|
||||
res.h->aut->new_transition(res.cur_state, $1,
|
||||
cond, $2 | res.acc_state);
|
||||
res.h->aut->new_edge(res.cur_state, $1,
|
||||
cond, $2 | res.acc_state);
|
||||
}
|
||||
| state-conj-2 trans-acc_opt
|
||||
{
|
||||
|
|
@ -1097,7 +1095,7 @@ never: "never" { res.namer = res.h->aut->create_namer<std::string>();
|
|||
if (res.accept_all_needed && !res.accept_all_seen)
|
||||
{
|
||||
unsigned n = res.namer->new_state("accept_all");
|
||||
res.h->aut->new_acc_transition(n, n, bddtrue);
|
||||
res.h->aut->new_acc_edge(n, n, bddtrue);
|
||||
}
|
||||
// If we aliased existing state, we have some unreachable
|
||||
// states to remove.
|
||||
|
|
@ -1172,7 +1170,7 @@ nc-state:
|
|||
|
||||
auto acc = !strncmp("accept", $1->c_str(), 6) ?
|
||||
res.h->aut->acc().all_sets() : spot::acc_cond::mark_t(0U);
|
||||
res.namer->new_transition(*$1, *$1, bddtrue, acc);
|
||||
res.namer->new_edge(*$1, *$1, bddtrue, acc);
|
||||
delete $1;
|
||||
}
|
||||
| nc-ident-list { delete $1; }
|
||||
|
|
@ -1185,7 +1183,7 @@ nc-state:
|
|||
{
|
||||
bdd c = bdd_from_int(p.first);
|
||||
bdd_delref(p.first);
|
||||
res.namer->new_transition(*$1, *p.second, c, acc);
|
||||
res.namer->new_edge(*$1, *p.second, c, acc);
|
||||
delete p.second;
|
||||
}
|
||||
delete $1;
|
||||
|
|
@ -1445,9 +1443,9 @@ lbtt-transitions:
|
|||
{
|
||||
res.states_map.emplace(dst, dst);
|
||||
}
|
||||
res.h->aut->new_transition(res.cur_state, dst,
|
||||
res.cur_label,
|
||||
res.acc_state | $3);
|
||||
res.h->aut->new_edge(res.cur_state, dst,
|
||||
res.cur_label,
|
||||
res.acc_state | $3);
|
||||
}
|
||||
|
||||
%%
|
||||
|
|
@ -1563,7 +1561,7 @@ static void fix_acceptance(result_& r)
|
|||
auto onlyneg = r.neg_acc_sets - r.pos_acc_sets;
|
||||
if (onlyneg)
|
||||
{
|
||||
for (auto& t: r.h->aut->transition_vector())
|
||||
for (auto& t: r.h->aut->edge_vector())
|
||||
t.acc ^= onlyneg;
|
||||
}
|
||||
|
||||
|
|
@ -1579,7 +1577,7 @@ static void fix_acceptance(result_& r)
|
|||
auto v = acc.sets(both);
|
||||
auto vs = v.size();
|
||||
base = acc.add_sets(vs);
|
||||
for (auto& t: r.h->aut->transition_vector())
|
||||
for (auto& t: r.h->aut->edge_vector())
|
||||
if ((t.acc & both) != both)
|
||||
for (unsigned i = 0; i < vs; ++i)
|
||||
if (!t.acc.has(v[i]))
|
||||
|
|
@ -1631,7 +1629,7 @@ static void fix_initial_state(result_& r)
|
|||
// unless one of the actual initial state has no incoming edge.
|
||||
auto& aut = r.h->aut;
|
||||
std::vector<unsigned> has_incoming(aut->num_states(), 0);
|
||||
for (auto& t: aut->transitions())
|
||||
for (auto& t: aut->edges())
|
||||
has_incoming[t.dst] = true;
|
||||
|
||||
bool found = false;
|
||||
|
|
@ -1649,7 +1647,7 @@ static void fix_initial_state(result_& r)
|
|||
for (auto p: start)
|
||||
if (p != init)
|
||||
for (auto& t: aut->out(p))
|
||||
aut->new_transition(init, t.dst, t.cond);
|
||||
aut->new_edge(init, t.dst, t.cond);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue