22 #include <spot/twaalgos/gtec/status.hh>
23 #include <spot/twaalgos/emptiness.hh>
24 #include <spot/twaalgos/emptiness_stats.hh>
138 virtual std::ostream&
print_stats(std::ostream& os)
const override;
148 std::shared_ptr<const couvreur99_check_status>
result()
const;
152 std::shared_ptr<couvreur99_check_status>
ecs_;
200 std::stack<acc_cond::mark_t>
arc;
A version of spot::couvreur99_check that tries to visit known states first.
Definition: gtec.hh:176
bool group_
Whether successors should be grouped for states in the same SCC.
Definition: gtec.hh:232
std::list< successor > succ_queue
Queue type for unprocessed successors of a state.
Definition: gtec.hh:208
std::list< todo_item > todo_list
List type for the DFS stack.
Definition: gtec.hh:225
succ_queue::iterator pos
Iterator into current successor queue.
Definition: gtec.hh:211
void clear_todo()
Clear the DFS stack.
todo_list todo
The DFS stack.
Definition: gtec.hh:226
couvreur99_check_shy(const const_twa_ptr &a, option_map o=option_map())
Construct the shy variant for the given automaton and options.
virtual emptiness_check_result_ptr check() override
Check whether the automaton's language is empty.
std::stack< acc_cond::mark_t > arc
Stack of inter-SCC acceptance marks.
Definition: gtec.hh:200
int num
Counter of visited nodes (DFS order).
Definition: gtec.hh:203
bool group2_
If set, reprocess successors of merged SCCs (implies group_).
Definition: gtec.hh:236
An implementation of the Couvreur99 emptiness-check algorithm.
Definition: gtec.hh:128
std::shared_ptr< couvreur99_check_status > ecs_
Shared status object holding the DFS data structures.
Definition: gtec.hh:152
bool poprem_
Whether to store the state to be removed.
Definition: gtec.hh:161
couvreur99_check(const const_twa_ptr &a, option_map o=option_map())
Construct an emptiness check for the given automaton and options.
void remove_component(const state *start_delete)
Remove a strongly component from the hash.
unsigned get_vmsize() const
Return the virtual memory size used by the process (in kB).
std::shared_ptr< const couvreur99_check_status > result() const
Return the status of the emptiness-check.
virtual std::ostream & print_stats(std::ostream &os) const override
Print statistics, if any.
virtual emptiness_check_result_ptr check() override
Check whether the automaton's language is empty.
unsigned get_removed_components() const
Return the number of dead SCCs removed by the algorithm.
unsigned removed_components
Number of dead SCC removed by the algorithm.
Definition: gtec.hh:163
Emptiness-check statistics.
Definition: emptiness_stats.hh:62
Common interface to emptiness check algorithms.
Definition: emptiness.hh:144
Manage a map of options.
Definition: optionmap.hh:34
Abstract class for states.
Definition: twa.hh:49
emptiness_check_ptr couvreur99(const const_twa_ptr &a, option_map options=option_map())
Check whether the language of an automaton is empty.
std::shared_ptr< emptiness_check > emptiness_check_ptr
Shared pointer to emptiness_check.
Definition: emptiness.hh:207
std::shared_ptr< emptiness_check_result > emptiness_check_result_ptr
Shared pointer to emptiness_check_result.
Definition: emptiness.hh:139
std::shared_ptr< const twa > const_twa_ptr
Shared pointer to a const twa.
Definition: fwd.hh:36
Definition: automata.hh:26
An acceptance mark.
Definition: acc.hh:76
A successor state with its associated acceptance marks, used in the shy Couvreur check.
Definition: gtec.hh:187
const spot::state * s
Definition: gtec.hh:189
successor(acc_cond::mark_t acc, const spot::state *s) noexcept
Construct a successor from acceptance marks and a state.
Definition: gtec.hh:191
acc_cond::mark_t acc
Acceptance marks on the edge to this successor.
Definition: gtec.hh:188
DFS stack item holding a state and its queue of unprocessed successors.
Definition: gtec.hh:216
succ_queue q
Definition: gtec.hh:219
todo_item(const state *s, int n, couvreur99_check_shy *shy)
Construct a DFS stack item for the given state.
int n
The DFS order number of this state.
Definition: gtec.hh:218
const state * s
The state at this DFS stack entry.
Definition: gtec.hh:217