|
spot 2.16
|
Generator of random LTL/PSL/SERE/Boolean formulas with configurable options. More...
#include <spot/tl/randomltl.hh>
Public Types | |
| enum | output_type { Bool , LTL , SERE , PSL } |
| Output formula type produced by the generator. More... | |
Public Member Functions | |
| randltlgenerator (int aprops_n, const option_map &opts, const char *opt_pL=nullptr, const char *opt_pS=nullptr, const char *opt_pB=nullptr, const atomic_prop_set *subformulas=nullptr, std::function< bool(formula)> is_output=nullptr) | |
| Construct with aprops_n random atomic propositions. | |
| randltlgenerator (atomic_prop_set aprops, const option_map &opts, const char *opt_pL=nullptr, const char *opt_pS=nullptr, const char *opt_pB=nullptr, const atomic_prop_set *subformulas=nullptr, std::function< bool(formula)> is_output=nullptr) | |
| Construct with an explicit set of atomic propositions. | |
| formula | next () |
| Generate the next random formula (up to MAX_TRIALS attempts). | |
| void | dump_ltl_priorities (std::ostream &os) |
| Print LTL operator priorities to os. | |
| void | dump_bool_priorities (std::ostream &os) |
| Print Boolean operator priorities to os. | |
| void | dump_psl_priorities (std::ostream &os) |
| Print PSL operator priorities to os. | |
| void | dump_sere_priorities (std::ostream &os) |
| Print SERE operator priorities to os. | |
| void | dump_sere_bool_priorities (std::ostream &os) |
| Print SERE Boolean operator priorities to os. | |
| void | remove_some_props (atomic_prop_set &s) |
| Remove some propositions from s (used for well-formed generation). | |
| formula | GF_n () |
| Return a GF(p1 & ... & pn) formula over n random propositions. | |
Static Public Attributes | |
| static constexpr unsigned | MAX_TRIALS = 100000U |
| Maximum number of attempts to generate a unique formula. | |
Generator of random LTL/PSL/SERE/Boolean formulas with configurable options.
Output formula type produced by the generator.
| spot::randltlgenerator::randltlgenerator | ( | int | aprops_n, |
| const option_map & | opts, | ||
| const char * | opt_pL = nullptr, |
||
| const char * | opt_pS = nullptr, |
||
| const char * | opt_pB = nullptr, |
||
| const atomic_prop_set * | subformulas = nullptr, |
||
| std::function< bool(formula)> | is_output = nullptr |
||
| ) |
Construct with aprops_n random atomic propositions.
| spot::randltlgenerator::randltlgenerator | ( | atomic_prop_set | aprops, |
| const option_map & | opts, | ||
| const char * | opt_pL = nullptr, |
||
| const char * | opt_pS = nullptr, |
||
| const char * | opt_pB = nullptr, |
||
| const atomic_prop_set * | subformulas = nullptr, |
||
| std::function< bool(formula)> | is_output = nullptr |
||
| ) |
Construct with an explicit set of atomic propositions.
| void spot::randltlgenerator::dump_bool_priorities | ( | std::ostream & | os | ) |
Print Boolean operator priorities to os.
| void spot::randltlgenerator::dump_ltl_priorities | ( | std::ostream & | os | ) |
Print LTL operator priorities to os.
| void spot::randltlgenerator::dump_psl_priorities | ( | std::ostream & | os | ) |
Print PSL operator priorities to os.
| void spot::randltlgenerator::dump_sere_bool_priorities | ( | std::ostream & | os | ) |
Print SERE Boolean operator priorities to os.
| void spot::randltlgenerator::dump_sere_priorities | ( | std::ostream & | os | ) |
Print SERE operator priorities to os.
| formula spot::randltlgenerator::GF_n | ( | ) |
Return a GF(p1 & ... & pn) formula over n random propositions.
| formula spot::randltlgenerator::next | ( | ) |
Generate the next random formula (up to MAX_TRIALS attempts).
| void spot::randltlgenerator::remove_some_props | ( | atomic_prop_set & | s | ) |
Remove some propositions from s (used for well-formed generation).
|
staticconstexpr |
Maximum number of attempts to generate a unique formula.
1.9.8