Have scc_map keep track of APs that are occurring in a SCC.
* src/tgbaalgos/scc.hh (scc_map::scc): Add a supp member to hold APs. * src/tgbaalgos/scc.cc (scc_map::build_map): Update supp. (scc_map::ap_set_of): New function. (dump_scc_dot): Show the output of ap_set_of().
This commit is contained in:
parent
ada681d813
commit
b3486965a0
3 changed files with 33 additions and 2 deletions
|
|
@ -105,6 +105,14 @@ namespace spot
|
|||
/// \pre This should only be called once build_map() has run.
|
||||
const cond_set& cond_set_of(unsigned n) const;
|
||||
|
||||
/// \brief Return the set of atomic properties occurring in an SCC.
|
||||
///
|
||||
/// \return a BDD that is a conjuction of all atomic properties
|
||||
/// occurring on the transitions in the SCC n.
|
||||
///
|
||||
/// \pre This should only be called once build_map() has run.
|
||||
bdd ap_set_of(unsigned n) const;
|
||||
|
||||
/// \brief Return the set of acceptance conditions occurring in an SCC.
|
||||
///
|
||||
/// \pre This should only be called once build_map() has run.
|
||||
|
|
@ -133,7 +141,7 @@ namespace spot
|
|||
struct scc
|
||||
{
|
||||
public:
|
||||
scc(int index) : index(index), acc(bddfalse) {};
|
||||
scc(int index) : index(index), acc(bddfalse), supp(bddtrue) {};
|
||||
/// Index of the SCC.
|
||||
int index;
|
||||
/// The union of all acceptance conditions of transitions which
|
||||
|
|
@ -143,6 +151,8 @@ namespace spot
|
|||
std::list<const state*> states;
|
||||
/// Set of conditions used in the SCC.
|
||||
cond_set conds;
|
||||
/// Conjunction of atomic propositions used in the SCC.
|
||||
bdd supp;
|
||||
/// Successor SCC.
|
||||
succ_type succ;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue