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
|
|
@ -101,13 +101,13 @@ namespace spot
|
|||
case op::AP:
|
||||
return bdd_ithvar(d->register_proposition(f, owner));
|
||||
case op::Not:
|
||||
return bdd_not(recurse(f.nth(0)));
|
||||
return bdd_not(recurse(f[0]));
|
||||
case op::Xor:
|
||||
return bdd_apply(recurse(f.nth(0)), recurse(f.nth(1)), bddop_xor);
|
||||
return bdd_apply(recurse(f[0]), recurse(f[1]), bddop_xor);
|
||||
case op::Implies:
|
||||
return bdd_apply(recurse(f.nth(0)), recurse(f.nth(1)), bddop_imp);
|
||||
return bdd_apply(recurse(f[0]), recurse(f[1]), bddop_imp);
|
||||
case op::Equiv:
|
||||
return bdd_apply(recurse(f.nth(0)), recurse(f.nth(1)), bddop_biimp);
|
||||
return bdd_apply(recurse(f[0]), recurse(f[1]), bddop_biimp);
|
||||
case op::And:
|
||||
case op::Or:
|
||||
{
|
||||
|
|
@ -120,7 +120,7 @@ namespace spot
|
|||
}
|
||||
unsigned s = f.size();
|
||||
for (unsigned n = 0; n < s; ++n)
|
||||
res = bdd_apply(res, recurse(f.nth(n)), op);
|
||||
res = bdd_apply(res, recurse(f[n]), op);
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue