spot
0.9.1
|
An implementation of the Couvreur99 emptiness-check algorithm. More...
#include <tgbaalgos/gtec/gtec.hh>
Public Types | |
typedef unsigned(unsigned_statistics::* | unsigned_fun )() const |
typedef std::map< const char *, unsigned_fun, char_ptr_less_than > | stats_map |
Public Member Functions | |
couvreur99_check (const tgba *a, option_map o=option_map(), const numbered_state_heap_factory *nshf=numbered_state_heap_hash_map_factory::instance()) | |
virtual | ~couvreur99_check () |
virtual emptiness_check_result * | check () |
Check whether the automaton's language is empty. | |
virtual std::ostream & | print_stats (std::ostream &os) const |
Print statistics, if any. | |
const couvreur99_check_status * | result () const |
Return the status of the emptiness-check. | |
const tgba * | automaton () const |
The automaton that this emptiness-check inspects. | |
const option_map & | options () const |
Return the options parametrizing how the emptiness check is realized. | |
const char * | parse_options (char *options) |
Modify the algorithm options. | |
virtual bool | safe () const |
Return false iff accepting_run() can return 0 for non-empty automata. | |
virtual const unsigned_statistics * | statistics () const |
Return statistics, if available. | |
virtual void | options_updated (const option_map &old) |
Notify option updates. | |
void | set_states (unsigned n) |
void | inc_states () |
void | inc_transitions () |
void | inc_depth (unsigned n=1) |
void | dec_depth (unsigned n=1) |
unsigned | states () const |
unsigned | transitions () const |
unsigned | max_depth () const |
unsigned | depth () const |
unsigned | get (const char *str) const |
Public Attributes | |
stats_map | stats |
Protected Member Functions | |
void | remove_component (const state *start_delete) |
Remove a strongly component from the hash. | |
unsigned | get_removed_components () const |
unsigned | get_vmsize () const |
Protected Attributes | |
couvreur99_check_status * | ecs_ |
bool | poprem_ |
Whether to store the state to be removed. | |
unsigned | removed_components |
Number of dead SCC removed by the algorithm. | |
const tgba * | a_ |
The automaton. | |
option_map | o_ |
The options. |
An implementation of the Couvreur99 emptiness-check algorithm.
See the documentation for spot::couvreur99.
typedef std::map<const char*, unsigned_fun, char_ptr_less_than> spot::unsigned_statistics::stats_map [inherited] |
typedef unsigned(unsigned_statistics::* spot::unsigned_statistics::unsigned_fun)() const [inherited] |
spot::couvreur99_check::couvreur99_check | ( | const tgba * | a, |
option_map | o = option_map() , |
||
const numbered_state_heap_factory * | nshf = numbered_state_heap_hash_map_factory::instance() |
||
) |
virtual spot::couvreur99_check::~couvreur99_check | ( | ) | [virtual] |
const tgba* spot::emptiness_check::automaton | ( | ) | const [inline, inherited] |
The automaton that this emptiness-check inspects.
References spot::emptiness_check::a_.
virtual emptiness_check_result* spot::couvreur99_check::check | ( | ) | [virtual] |
Check whether the automaton's language is empty.
Implements spot::emptiness_check.
Reimplemented in spot::couvreur99_check_shy.
void spot::ec_statistics::dec_depth | ( | unsigned | n = 1 | ) | [inline, inherited] |
References spot::ec_statistics::depth_.
unsigned spot::ec_statistics::depth | ( | ) | const [inline, inherited] |
References spot::ec_statistics::depth_.
unsigned spot::unsigned_statistics::get | ( | const char * | str | ) | const [inline, inherited] |
References spot::unsigned_statistics::stats.
unsigned spot::couvreur99_check::get_removed_components | ( | ) | const [protected] |
unsigned spot::couvreur99_check::get_vmsize | ( | ) | const [protected] |
void spot::ec_statistics::inc_depth | ( | unsigned | n = 1 | ) | [inline, inherited] |
References spot::ec_statistics::depth_, and spot::ec_statistics::max_depth_.
void spot::ec_statistics::inc_states | ( | ) | [inline, inherited] |
References spot::ec_statistics::states_.
void spot::ec_statistics::inc_transitions | ( | ) | [inline, inherited] |
References spot::ec_statistics::transitions_.
unsigned spot::ec_statistics::max_depth | ( | ) | const [inline, inherited] |
References spot::ec_statistics::max_depth_.
Referenced by spot::ec_statistics::ec_statistics().
const option_map& spot::emptiness_check::options | ( | ) | const [inline, inherited] |
Return the options parametrizing how the emptiness check is realized.
References spot::emptiness_check::o_.
virtual void spot::emptiness_check::options_updated | ( | const option_map & | old | ) | [virtual, inherited] |
Notify option updates.
const char* spot::emptiness_check::parse_options | ( | char * | options | ) | [inherited] |
Modify the algorithm options.
virtual std::ostream& spot::couvreur99_check::print_stats | ( | std::ostream & | os | ) | const [virtual] |
Print statistics, if any.
Reimplemented from spot::emptiness_check.
void spot::couvreur99_check::remove_component | ( | const state * | start_delete | ) | [protected] |
Remove a strongly component from the hash.
This function remove all accessible state from a given state. In other words, it removes the strongly connected component that contains this state.
const couvreur99_check_status* spot::couvreur99_check::result | ( | ) | const |
Return the status of the emptiness-check.
When check() succeed, the status should be passed along to spot::counter_example.
This status should not be deleted, it is a pointer to a member of this class that will be deleted when the couvreur99 object is deleted.
virtual bool spot::emptiness_check::safe | ( | ) | const [virtual, inherited] |
Return false iff accepting_run() can return 0 for non-empty automata.
void spot::ec_statistics::set_states | ( | unsigned | n | ) | [inline, inherited] |
References spot::ec_statistics::states_.
unsigned spot::ec_statistics::states | ( | ) | const [inline, inherited] |
References spot::ec_statistics::states_.
Referenced by spot::ec_statistics::ec_statistics().
virtual const unsigned_statistics* spot::emptiness_check::statistics | ( | ) | const [virtual, inherited] |
Return statistics, if available.
unsigned spot::ec_statistics::transitions | ( | ) | const [inline, inherited] |
References spot::ec_statistics::transitions_.
Referenced by spot::ec_statistics::ec_statistics().
const tgba* spot::emptiness_check::a_ [protected, inherited] |
The automaton.
Referenced by spot::emptiness_check::automaton().
couvreur99_check_status* spot::couvreur99_check::ecs_ [protected] |
option_map spot::emptiness_check::o_ [protected, inherited] |
The options.
Referenced by spot::emptiness_check::options().
bool spot::couvreur99_check::poprem_ [protected] |
Whether to store the state to be removed.
unsigned spot::couvreur99_check::removed_components [protected] |
Number of dead SCC removed by the algorithm.
stats_map spot::unsigned_statistics::stats [inherited] |