Modify the powerset algorithm to keep track of accepting states
from the initial automaton. * src/tgba/tgbaexplicit.cc, src/tgba/tgbaexplicit.hh: Added class tgba_explicit_number, a tgba_explicit where states are labelled by integers. * src/tgbaalgos/powerset.hh, src/tgbaalgos/powerset.cc: When building the deterministic automaton, keep track of which states were created from an accepting state in the initial automaton. The states are added to the new optional parameter (if not 0), acc_list. Use tgba_explicit_number instead of tgba_explicit_string to build the result. * src/tgbaalgos/scc.cc (spot): Small fix. Print everything on std::cout.
This commit is contained in:
parent
bd742ef6a4
commit
e2e138f6e6
6 changed files with 95 additions and 18 deletions
|
|
@ -345,6 +345,18 @@ namespace spot
|
|||
virtual state* add_default_init();
|
||||
virtual std::string format_state(const spot::state* s) const;
|
||||
};
|
||||
|
||||
class tgba_explicit_number:
|
||||
public tgba_explicit_labelled<int, std::tr1::hash<int> >
|
||||
{
|
||||
public:
|
||||
tgba_explicit_number(bdd_dict* dict):
|
||||
tgba_explicit_labelled<int, std::tr1::hash<int> >(dict)
|
||||
{};
|
||||
virtual ~tgba_explicit_number();
|
||||
virtual state* add_default_init();
|
||||
virtual std::string format_state(const spot::state* s) const;
|
||||
};
|
||||
}
|
||||
|
||||
#endif // SPOT_TGBA_TGBAEXPLICIT_HH
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue