formula: replace nth() by operator[]()
* src/ltlast/formula.hh (formula::nth): Replace by ... (formula::operator[]): ... this. * src/ltlvisit/mark.cc, src/ltlvisit/mutation.cc, src/ltlvisit/print.cc, src/ltlvisit/relabel.cc, src/ltlvisit/remove_x.cc, src/ltlvisit/simpfg.cc, src/ltlvisit/simplify.cc, src/ltlvisit/snf.cc, src/ltlvisit/unabbrev.cc, src/twa/formula2bdd.cc, src/twaalgos/compsusp.cc, src/twaalgos/ltl2taa.cc, src/twaalgos/ltl2tgba_fm.cc, wrap/python/spot_impl.i: Adjust.
This commit is contained in:
parent
533268000d
commit
2369389850
15 changed files with 373 additions and 373 deletions
|
|
@ -64,7 +64,7 @@ namespace spot
|
|||
unsigned mos = f.size();
|
||||
for (unsigned i = 0; i < mos; ++i)
|
||||
{
|
||||
ltl::formula c = f.nth(i);
|
||||
ltl::formula c = f[i];
|
||||
if (c.is_boolean())
|
||||
res.push_back(c);
|
||||
else if (oblig_ && c.is_syntactic_obligation())
|
||||
|
|
@ -91,7 +91,7 @@ namespace spot
|
|||
{
|
||||
// res || susp -> (res && G![susp]) || G[susp])
|
||||
auto r = ltl::formula::multop(op, res);
|
||||
auto gn = ltl::formula::G(ltl::formula::Not(g.nth(0)));
|
||||
auto gn = ltl::formula::G(ltl::formula::Not(g[0]));
|
||||
return ltl::formula::Or({ltl::formula::And({r, gn}), g});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue