12#ifndef MCRL2_PBES_TOOLS_LPS2PBES_H
13#define MCRL2_PBES_TOOLS_LPS2PBES_H
22namespace pbes_system {
36 <<
" that does not appear in the LPS!" << std::endl;
42void lps2pbes(
const std::string& input_filename,
43 const std::string& output_filename,
45 const std::string& formula_filename,
49 bool preprocess_modal_operators,
50 bool generate_counter_example,
54 if (formula_filename.empty())
58 if (input_filename.empty())
67 load_lps(plain_lpsspec, input_filename);
69 mCRL2log(
log::verbose) <<
"Reading input from file '" << formula_filename <<
"'..." << std::endl;
70 std::ifstream from(formula_filename.c_str(), std::ifstream::in | std::ifstream::binary);
76 const bool formula_is_quantitative =
false;
85 <<
"The file '" << formula_filename
86 <<
"' contains a well-formed state formula" << std::endl;
90 if (output_filename.empty())
98 save_pbes(result, output_filename, output_format);
const LinearProcess & process() const
Returns the linear process of the specification.
Linear process specification.
Linear process specification.
parameterized boolean equation system
Standard exception class for reporting runtime errors.
#define mCRL2log(LEVEL)
mCRL2log(LEVEL) provides the stream used to log.
Add your file description here.
IO routines for linear process specifications.
void find_action_labels(const T &x, OutputIterator o)
Returns all action labels that occur in an object.
void check_lps2pbes_actions(const state_formulas::state_formula &formula, const lps::stochastic_specification &lpsspec)
Prints a warning if formula contains an action that is not used in lpsspec.
void save_pbes(const pbes &pbes, std::ostream &stream, utilities::file_format format=utilities::file_format())
Save a PBES in the format specified.
pbes lps2pbes(const lps::stochastic_specification &lpsspec, const state_formulas::state_formula &formula, bool timed=false, bool structured=false, bool unoptimized=false, bool preprocess_modal_operators=false, bool generate_counter_example=false, bool check_only=false)
Translates a linear process specification and a state formula to a PBES. If the solution of the PBES ...
pbes_expression formula(std::set< identifier_t > const &v, const owner_t owner, const std::string &prefix="X")
std::set< T > set_difference(const std::set< T > &x, const std::set< T > &y)
Returns the difference of two sets.
std::string read_text(const std::string &filename, bool warn=false)
Read text from a file.
A class that takes a linear process specification and checks all tau-summands of that LPS for conflue...
IO routines for boolean equation systems.