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:
parent
88d0d2e112
commit
2c435c6c11
2 changed files with 19 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue