26#include <spot/twa/fwd.hh>
40 const char* prefix =
"p");
80 SPOT_API std::map<formula, unsigned char>
90 std::vector<std::vector<spot::formula>>
98 typedef std::vector<std::tuple<formula, bool, formula>> mapping_t;
105 global_equiv_output_only = 6,
109 unsigned options = polarity | global_equiv,
110 std::ostream* verbose =
nullptr);
127 const std::vector<std::string>& inputs,
128 unsigned options = polarity | global_equiv,
129 std::ostream* verbose =
nullptr);
138 const std::vector<std::tuple<formula, bool, formula>>&
get_mapping()
const
154 std::vector<std::tuple<formula, bool, formula>> mapping_;
Simplify a reactive specification, preserving realizability.
Definition: apcollect.hh:96
realizability_simplifier_option
Definition: apcollect.hh:99
std::pair< formula, mapping_t > simplify(formula f)
Simplify a formula, returning a mapping.
Simplify a reactive specification, preserving realizability.
Definition: apcollect.hh:124
formula simplified_formula() const
Return the simplified formula.
Definition: apcollect.hh:132
void merge_mapping(const realizability_simplifier &other)
Augment the current mapping with output variable renaming from another realizability_simplifier.
void patch_mealy(twa_graph_ptr mealy) const
Patch a Mealy machine to add the missing APs.
const std::vector< std::tuple< formula, bool, formula > > & get_mapping() const
Returns a vector of (from,from_is_input,to)
Definition: apcollect.hh:138
void patch_game(twa_graph_ptr mealy) const
Patch a game to add the missing APs.
std::map< formula, unsigned char > collect_aps_with_polarities(formula f)
Collect the APs occurring in f, along with their polarities.
bdd atomic_prop_collect_as_bdd(formula f, const twa_ptr &a)
Return the set of atomic propositions occurring in a formula, as a BDD.
atomic_prop_set * atomic_prop_collect(formula f, atomic_prop_set *s=nullptr)
Return the set of atomic propositions occurring in a formula.
atomic_prop_set collect_literals(formula f)
Collect the literals occurring in f.
std::set< formula > atomic_prop_set
Set of atomic propositions.
Definition: apcollect.hh:34
std::vector< std::vector< spot::formula > > collect_equivalent_literals(formula f)
Collect equivalent APs.
atomic_prop_set create_atomic_prop_set(unsigned n, const char *prefix="p")
construct an atomic_prop_set with n propositions starting with prefix
Definition: automata.hh:26