zlktree: simplify heuristic computation

* spot/twaalgos/zlktree.cc: Here.
* spot/twaalgos/zlktree.hh: Add a way to remove an option.
This commit is contained in:
Alexandre Duret-Lutz 2021-09-30 17:05:18 +02:00
parent 88d0d2e112
commit 2c435c6c11
2 changed files with 19 additions and 4 deletions

View file

@ -196,6 +196,15 @@ namespace spot
return static_cast<acd_options>(static_cast<ut>(left)
| static_cast<ut>(right));
}
inline
acd_options operator-(acd_options left, acd_options right)
{
typedef std::underlying_type_t<acd_options> ut;
return static_cast<acd_options>(static_cast<ut>(left)
& ~static_cast<ut>(right));
}
#endif
/// \ingroup twa_acc_transform