ltl: keep track of spin-compatible AP
* src/misc/bareword.cc, src/misc/bareword.hh (is_spin_ap): New function. * src/ltlast/formula.cc, src/ltlast/formula.hh (is_spin_atomic_props): New method and boolean. * src/ltlast/atomic_prop.cc, src/ltlast/constant.cc: Update it. * src/ltltest/kind.test: Test it.
This commit is contained in:
parent
16a8c03143
commit
a4a0cf3bb2
7 changed files with 143 additions and 108 deletions
|
|
@ -293,6 +293,11 @@ namespace spot
|
|||
return is.lbt_atomic_props;
|
||||
}
|
||||
|
||||
bool has_spin_atomic_props() const
|
||||
{
|
||||
return is.spin_atomic_props;
|
||||
}
|
||||
|
||||
/// The properties as a field of bits. For internal use.
|
||||
unsigned get_props() const
|
||||
{
|
||||
|
|
@ -354,6 +359,7 @@ namespace spot
|
|||
bool not_marked:1; // No occurrence of EConcatMarked.
|
||||
bool accepting_eword:1; // Accepts the empty word.
|
||||
bool lbt_atomic_props:1; // Use only atomic propositions like p42.
|
||||
bool spin_atomic_props:1; // Use only spin-compatible atomic props.
|
||||
};
|
||||
union
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue