Introduce spot::state_set.
* src/tgba/state.hh: Define state_set and shared_state_set. * src/tgba/taatgba.cc, src/tgba/taatgba.hh: Rename the existing state_set (that inherits from spot::state) as set_state. * src/tgba/tgbakvcomplement.cc: Use shared_state_set instead of state_set. * src/tgbaalgos/minimize.cc (state_set): Rename as... (build_state_set): ... this.
This commit is contained in:
parent
d2560944b6
commit
68ce9980d1
5 changed files with 55 additions and 47 deletions
|
|
@ -81,7 +81,7 @@ namespace spot
|
|||
}
|
||||
|
||||
// Find all states of an automaton.
|
||||
void state_set(const tgba* a, hash_set* seen)
|
||||
void build_state_set(const tgba* a, hash_set* seen)
|
||||
{
|
||||
std::queue<const state*> tovisit;
|
||||
// Perform breadth-first traversal.
|
||||
|
|
@ -515,7 +515,7 @@ namespace spot
|
|||
|
||||
// non_final contain all states.
|
||||
// final is empty: there is no acceptance condition
|
||||
state_set(det_a, non_final);
|
||||
build_state_set(det_a, non_final);
|
||||
|
||||
return minimize_dfa(det_a, final, non_final);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue