postproc: add a SBAcc option
Producing state-based acceptance is now part of the postprocessing routines. That means we can more easily simplify automata with state-based acceptance (using autfilt -S --small --high, for instance) and as as side-effect, ltl2tgba can produce GBA. However the result of ltl2tgba -S is often larger than that of ltl2tgba -B. * src/twaalgos/postproc.cc, src/twaalgos/postproc.hh: Implement the SBAcc option. * src/bin/common_post.cc, src/bin/common_post.hh: Implement -S. * src/bin/autfilt.cc, src/bin/dstar2tgba.cc, src/bin/ltl2tgba.cc, src/bin/ltl2tgta.cc, src/bin/ltldo.cc: Adjust. * src/tests/sim3.test: Augment test case. * NEWS, doc/org/ltl2tgba.org, doc/org/autfilt.org: Document it -S.
This commit is contained in:
parent
dd87bdf868
commit
0786e068ae
13 changed files with 181 additions and 42 deletions
|
|
@ -78,7 +78,9 @@ namespace spot
|
|||
Deterministic = 2,
|
||||
// 3 reserved for unambiguous
|
||||
// Combine Complete as 'Small | Complete' or 'Deterministic | Complete'
|
||||
Complete = 4
|
||||
Complete = 4,
|
||||
// Likewise. State-based acceptance.
|
||||
SBAcc = 8,
|
||||
};
|
||||
typedef int output_pref;
|
||||
|
||||
|
|
@ -104,7 +106,7 @@ namespace spot
|
|||
|
||||
protected:
|
||||
twa_graph_ptr do_simul(const twa_graph_ptr& input, int opt);
|
||||
twa_graph_ptr do_ba_simul(const twa_graph_ptr& input, int opt);
|
||||
twa_graph_ptr do_sba_simul(const twa_graph_ptr& input, int opt);
|
||||
twa_graph_ptr do_degen(const twa_graph_ptr& input);
|
||||
|
||||
output_type type_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue