Work around spurious g++-12 warnings

* spot/twaalgos/ltl2tgba_fm.cc, spot/tl/formula.hh,
spot/twaalgos/translate.cc: Add SPOT_ASSUME in various places to help
g++.
This commit is contained in:
Alexandre Duret-Lutz 2022-12-08 17:27:32 +01:00
parent 720c380412
commit 1248d326aa
3 changed files with 19 additions and 9 deletions

View file

@ -294,7 +294,9 @@ namespace spot
{
if (SPOT_UNLIKELY(i >= size()))
report_non_existing_child();
return children[i];
const fnode* c = children[i];
SPOT_ASSUME(c != nullptr);
return c;
}
/// \see formula::ff