twaalgos: Implement dt*a_sat_minimize_incr(...) functions
* python/spot/__init__.py: Add 'incr' boolean argument. * spot/twaalgos/dtbasat.cc: Implement dtba_sat_minimize_incr(...). * spot/twaalgos/dtbasat.hh: Declare it. * spot/twaalgos/dtwasat.cc: Implement dtwa_sat_minimize_incr(...) and deal with options. * spot/twaalgos/dtwasat.hh: Declare it. * spot/twaalgos/postproc.cc: Add option --sat-minimize=incr. * spot/twaalgos/postproc.hh: Add incr parameter. * tests/core/satmin.test: Add tests for incremental version. Update expected result. * tests/core/satmin2.test: Add tests for incremental version. * tests/python/satmin.py: Add tests for incremental version.
This commit is contained in:
parent
9acd7370b2
commit
ee17c2dee4
10 changed files with 1051 additions and 26 deletions
|
|
@ -858,7 +858,8 @@ for fun in ['remove_x', 'relabel', 'relabel_bse',
|
|||
# Better interface to the corresponding C++ function.
|
||||
def sat_minimize(aut, acc=None, colored=False,
|
||||
state_based=False, states=0,
|
||||
max_states=0, dichotomy=False):
|
||||
max_states=0, dichotomy=False,
|
||||
param=0, incr=False):
|
||||
args=''
|
||||
if acc is not None:
|
||||
if type(acc) is not str:
|
||||
|
|
@ -875,7 +876,11 @@ def sat_minimize(aut, acc=None, colored=False,
|
|||
raise ValueError("argument 'states' should be a positive integer")
|
||||
args += ',max-states=' + str(max_states)
|
||||
if dichotomy:
|
||||
args += ',dichotomy';
|
||||
args += ',dichotomy'
|
||||
if param:
|
||||
args += ',param=' + str(param)
|
||||
if incr:
|
||||
args += ',incr'
|
||||
from spot.impl import sat_minimize as sm
|
||||
return sm(aut, args, state_based)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue