acc: add a maybe_accepting() method

* spot/twa/acc.cc, spot/twa/acc.hh: Implement the new method, and
use it to implement inf_accepting().
* tests/python/accparse2.py: Add some tests.
This commit is contained in:
Alexandre Duret-Lutz 2017-05-30 18:04:57 +02:00
parent f7d14ab526
commit 78add1d44b
3 changed files with 54 additions and 13 deletions

View file

@ -24,6 +24,7 @@
#include <sstream>
#include <vector>
#include <spot/tl/defaultenv.hh>
#include <spot/misc/trival.hh>
#include <iostream>
namespace spot
@ -888,6 +889,10 @@ namespace spot
bool inf_satisfiable(mark_t inf) const;
trival maybe_accepting(mark_t infinitely_often,
mark_t always_present) const;
// Remove all the acceptance sets in rem.
//
// If MISSING is set, the acceptance sets are assumed to be
@ -1238,6 +1243,11 @@ namespace spot
return code_.inf_satisfiable(inf);
}
trival maybe_accepting(mark_t infinitely_often, mark_t always_present) const
{
return code_.maybe_accepting(infinitely_often, always_present);
}
mark_t accepting_sets(mark_t inf) const;
std::ostream& format(std::ostream& os, mark_t m) const