Add a has_lbt_atomic_props() method to LTL formulas.
* src/ltlast/formula.hh (has_lbt_atomic_props): New method. * src/ltlast/formula.cc (printprops): Display it. * src/ltlast/atomic_prop.cc: Update it. * src/bin/ltlcheck.cc, src/bin/genltl.cc: Use it. * doc/tl/tl.tex: Menton has_lbt_atomic_props().
This commit is contained in:
parent
f40925f67b
commit
b2de0136b2
6 changed files with 46 additions and 7 deletions
|
|
@ -52,6 +52,15 @@ namespace spot
|
|||
is.syntactic_persistence = true;
|
||||
is.not_marked = true;
|
||||
is.accepting_eword = false;
|
||||
// is.lbt_atomic_props should be true if the name has the form
|
||||
// pNN where NN is any number of digit.
|
||||
std::string::const_iterator pos = name.begin();
|
||||
is.lbt_atomic_props = (pos != name.end() && *pos++ == 'p');
|
||||
while (is.lbt_atomic_props && pos != name.end())
|
||||
{
|
||||
char l = *pos++;
|
||||
is.lbt_atomic_props = (l >= '0' && l <= '9');
|
||||
}
|
||||
}
|
||||
|
||||
atomic_prop::~atomic_prop()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue