23 #include <spot/twa/bdddict.hh>
38 bool synt_impl =
true,
39 bool event_univ =
true,
40 bool containment_checks =
false,
41 bool containment_checks_stronger =
false,
42 bool nenoform_stop_on_boolean =
false,
43 bool reduce_size_strictly =
false,
44 bool boolean_to_isop =
false,
45 bool favor_event_univ =
false,
46 bool keep_top_xor =
false,
47 bool unit_prop =
false)
48 : reduce_basics(basics),
50 event_univ(event_univ),
51 containment_checks(containment_checks),
52 containment_checks_stronger(containment_checks_stronger),
53 nenoform_stop_on_boolean(nenoform_stop_on_boolean),
54 reduce_size_strictly(reduce_size_strictly),
55 boolean_to_isop(boolean_to_isop),
56 favor_event_univ(favor_event_univ),
57 keep_top_xor(keep_top_xor),
72 containment_checks =
true;
73 containment_checks_stronger =
true;
113 unsigned containment_max_states = 0;
116 unsigned containment_max_ops = 16;
121 return reduce_basics || synt_impl || event_univ
122 || containment_checks || containment_checks_stronger
123 || nenoform_stop_on_boolean || reduce_size_strictly
124 || boolean_to_isop || favor_event_univ || keep_top_xor
140 class tl_simplifier_cache;
245 tl_simplifier_cache* cache_;
Manage a map of options.
Definition: optionmap.hh:34
Options controlling which simplification passes the tl_simplifier applies.
Definition: simplify.hh:34
void save_to_option_map(option_map &om, const char *prefix) const
bool containment_checks
Enable language containment checks.
Definition: simplify.hh:90
bool containment_checks_stronger
Definition: simplify.hh:91
bool reduce_size_strictly
Definition: simplify.hh:98
bool favor_event_univ
Try to isolate subformulae that are eventual and universal.
Definition: simplify.hh:102
tl_simplifier_options(int level)
Construct from a simplification level (0–3).
Definition: simplify.hh:66
bool unit_prop
Definition: simplify.hh:110
tl_simplifier_options(bool basics=true, bool synt_impl=true, bool event_univ=true, bool containment_checks=false, bool containment_checks_stronger=false, bool nenoform_stop_on_boolean=false, bool reduce_size_strictly=false, bool boolean_to_isop=false, bool favor_event_univ=false, bool keep_top_xor=false, bool unit_prop=false)
Construct with individual option flags.
Definition: simplify.hh:37
bool keep_top_xor
Definition: simplify.hh:106
bool boolean_to_isop
If true, Boolean subformulae will be rewritten in ISOP form.
Definition: simplify.hh:100
bool is_enabled() const
Return true if any simplification option is enabled.
Definition: simplify.hh:119
bool synt_impl
Enable syntactic implication simplifications.
Definition: simplify.hh:88
bool load_from_option_map(const option_map &om, const char *prefix)
bool nenoform_stop_on_boolean
Definition: simplify.hh:94
bool event_univ
Enable eventuality/universality reductions.
Definition: simplify.hh:89
bool reduce_basics
Enable basic rewriting rules.
Definition: simplify.hh:87
Rewrite or simplify f in various ways.
Definition: simplify.hh:145
tl_simplifier(const tl_simplifier_options &opt, bdd_dict_ptr dict=make_bdd_dict())
Construct with given options and BDD dictionary.
bool implication(formula f, formula g)
Check whether f implies g.
formula simplify(formula f)
formula boolean_to_isop(formula f)
Rewrite a Boolean formula f into as an irredundant sum of product.
bdd_dict_ptr get_dict() const
Return the bdd_dict used.
bool syntactic_implication(formula f, formula g)
Syntactic implication.
bool are_equivalent(formula f, formula g)
check whether two formulas are equivalent.
void clear_caches()
Clear all caches.
tl_simplifier(const bdd_dict_ptr &dict=make_bdd_dict())
Construct with default options and given BDD dictionary.
tl_simplifier_options & options()
void print_stats(std::ostream &os) const
Dump statistics about the caches.
formula star_normal_form(formula f)
Cached version of spot::star_normal_form().
bdd as_bdd(formula f)
Convert a Boolean formula as a BDD.
bool syntactic_implication_neg(formula f, formula g, bool right)
Syntactic implication with one negated argument.
formula negative_normal_form(formula f, bool negated=false)
void clear_as_bdd_cache()
Clear the as_bdd() cache.
bdd_dict_ptr make_bdd_dict()
Create a new, empty bdd_dict wrapped in a shared pointer.
Definition: bdddict.hh:308
std::shared_ptr< bdd_dict > bdd_dict_ptr
Shared pointer to a bdd_dict.
Definition: bdddict.hh:304
Definition: automata.hh:26
formula normalize_quantifiers(formula)
Remove unnecessary quantified variables.