sccinfo: rename scc_info(x,opt) into scc_info_with_options(x,opt)

* spot/twaalgos/sccinfo.hh, python/spot/impl.i: Here.  This avoid
ambiguities where options (integer in Python) are interpreted as
initial states.
* tests/python/genem.py: Adjust.
This commit is contained in:
Alexandre Duret-Lutz 2019-04-11 18:06:00 +02:00
parent f7e3d58846
commit 2178684528
3 changed files with 14 additions and 4 deletions

View file

@ -169,7 +169,7 @@ def generic_emptiness2(aut):
# A more modern python version of spot.generic_emptiness_check()
def is_empty1(g):
si = spot.scc_info(g, spot.scc_info_options_NONE)
si = spot.scc_info_with_options(g, spot.scc_info_options_NONE)
for scc_num in range(si.scc_count()):
if si.is_trivial(scc_num):
continue
@ -207,7 +207,7 @@ def is_scc_empty1(si, scc_num, acc=None):
return True
def is_empty2(g):
si = spot.scc_info(g, spot.scc_info_options_STOP_ON_ACC)
si = spot.scc_info_with_options(g, spot.scc_info_options_STOP_ON_ACC)
if si.one_accepting_scc() >= 0:
return False
for scc_num in range(si.scc_count()):