Add support for computing operator nesting depth
* spot/tl/hierarchy.hh, spot/tl/hierarchy.cc (nesting_depth): New function. * python/spot/__init__.py: Also make it a method of formula in Python * bin/common_output.cc, bin/common_output.hh: Implement --stats=%[OP]n. * NEWS: Mention it. * tests/core/format.test, tests/python/formulas.ipynb: Test it.
This commit is contained in:
parent
49b76bcf66
commit
62d1e0219d
8 changed files with 218 additions and 25 deletions
|
|
@ -851,7 +851,8 @@ for fun in dir(formula):
|
|||
_addfilter(fun)
|
||||
|
||||
for fun in ['remove_x', 'relabel', 'relabel_bse',
|
||||
'simplify', 'unabbreviate']:
|
||||
'simplify', 'unabbreviate', 'negative_normal_form',
|
||||
'mp_class', 'nesting_depth']:
|
||||
_addmap(fun)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue