tgba_complete: rename as complete and export in Python
* src/twaalgos/complete.cc, src/twaalgos/complete.hh (tgba_complete, tgba_complete_here): Rename as... (complete, complete_here): ... these. Also fix useless output of acceptance marks on transition leading to the sink when the automaton does not use state-based acceptance. * src/tests/ikwiad.cc, src/twaalgos/dtgbacomp.cc, src/twaalgos/dtgbasat.cc, src/twaalgos/postproc.cc, src/twaalgos/product.cc: Adjust. * wrap/python/spot_impl.i: Export these function. * wrap/python/tests/automata.ipynb: Test spot.complete().
This commit is contained in:
parent
afe5b2a1c0
commit
5e07e8384d
9 changed files with 257 additions and 37 deletions
|
|
@ -156,7 +156,7 @@ namespace spot
|
|||
|| (type_ == Monitor && a->num_sets() == 0))
|
||||
{
|
||||
if (COMP_)
|
||||
a = tgba_complete(a);
|
||||
a = complete(a);
|
||||
if (SBACC_)
|
||||
a = sbacc(a);
|
||||
return a;
|
||||
|
|
@ -207,7 +207,7 @@ namespace spot
|
|||
a = m;
|
||||
}
|
||||
if (COMP_)
|
||||
a = tgba_complete(a);
|
||||
a = complete(a);
|
||||
return a;
|
||||
}
|
||||
|
||||
|
|
@ -216,7 +216,7 @@ namespace spot
|
|||
if (type_ == BA)
|
||||
a = do_degen(a);
|
||||
if (COMP_)
|
||||
a = tgba_complete(a);
|
||||
a = complete(a);
|
||||
if (SBACC_)
|
||||
a = sbacc(a);
|
||||
return a;
|
||||
|
|
@ -380,7 +380,7 @@ namespace spot
|
|||
in = dba;
|
||||
}
|
||||
|
||||
const_twa_graph_ptr res = tgba_complete(in);
|
||||
const_twa_graph_ptr res = complete(in);
|
||||
if (target_acc == 1)
|
||||
{
|
||||
if (sat_states_ != -1)
|
||||
|
|
@ -457,7 +457,7 @@ namespace spot
|
|||
sim = dba ? dba : sim;
|
||||
|
||||
if (COMP_)
|
||||
sim = tgba_complete(sim);
|
||||
sim = complete(sim);
|
||||
if (SBACC_)
|
||||
sim = sbacc(sim);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue