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
|
|
@ -29,17 +29,17 @@ namespace spot
|
|||
formula simplify_f_g(formula p)
|
||||
{
|
||||
// 1 U p = Fp
|
||||
if (p.is(op::U) && p.nth(0).is_true())
|
||||
return formula::F(p.nth(1));
|
||||
if (p.is(op::U) && p[0].is_true())
|
||||
return formula::F(p[1]);
|
||||
// 0 R p = Gp
|
||||
if (p.is(op::R) && p.nth(0).is_false())
|
||||
return formula::G(p.nth(1));
|
||||
if (p.is(op::R) && p[0].is_false())
|
||||
return formula::G(p[1]);
|
||||
// p W 0 = Gp
|
||||
if (p.is(op::W) && p.nth(1).is_false())
|
||||
return formula::G(p.nth(0));
|
||||
if (p.is(op::W) && p[1].is_false())
|
||||
return formula::G(p[0]);
|
||||
// p M 1 = Fp
|
||||
if (p.is(op::M) && p.nth(1).is_true())
|
||||
return formula::F(p.nth(0));
|
||||
if (p.is(op::M) && p[1].is_true())
|
||||
return formula::F(p[0]);
|
||||
return p.map(simplify_f_g);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue