Simplify the construction of TA.

* src/ltlvisit/apcollect.cc, src/ltlvisit/apcollect.hh: Add a version
that builds a BDD.
* src/tgbatest/ltl2tgba.cc: Use it.
This commit is contained in:
Alexandre Duret-Lutz 2012-06-24 21:56:47 +02:00
parent 8e1438c98f
commit 20c3f9f8ba
3 changed files with 27 additions and 12 deletions

View file

@ -27,9 +27,12 @@
#include <set>
#include "ltlast/atomic_prop.hh"
#include "bdd.h"
namespace spot
{
class tgba;
namespace ltl
{
/// \addtogroup ltl_misc
@ -50,6 +53,14 @@ namespace spot
atomic_prop_set*
atomic_prop_collect(const formula* f, atomic_prop_set* s = 0);
/// \brief Return the set of atomic propositions occurring in a formula, as a BDD.
///
/// \param f the formula to inspect
/// \param a that automaton that should register the BDD variables used.
/// \return A conjunction the atomic propositions.
bdd
atomic_prop_collect_as_bdd(const formula* f, tgba* a);
/// @}
}
}