mCRL2
Loading...
Searching...
No Matches
pbespareqelm.h
Go to the documentation of this file.
1// Author(s): Wieger Wesselink
2// Copyright: see the accompanying file COPYING or copy at
3// https://github.com/mCRL2org/mCRL2/blob/master/COPYING
4//
5// Distributed under the Boost Software License, Version 1.0.
6// (See accompanying file LICENSE_1_0.txt or copy at
7// http://www.boost.org/LICENSE_1_0.txt)
8//
11
12#ifndef MCRL2_PBES_TOOLS_PBESPAREQELM_H
13#define MCRL2_PBES_TOOLS_PBESPAREQELM_H
14
15#include "mcrl2/pbes/eqelm.h"
16#include "mcrl2/pbes/io.h"
17
18namespace mcrl2 {
19
20namespace pbes_system {
21
22void pbespareqelm(const std::string& input_filename,
23 const std::string& output_filename,
24 const utilities::file_format& input_format,
25 const utilities::file_format& output_format,
26 data::rewrite_strategy rewrite_strategy,
27 pbes_rewriter_type rewriter_type,
28 bool ignore_initial_state
29 )
30{
31 // load the pbes
32 pbes p;
33 load_pbes(p, input_filename, input_format);
34
35 // apply the eqelm algorithm
36 eqelm(p, rewrite_strategy, rewriter_type, ignore_initial_state);
37
38 // save the result
39 save_pbes(p, output_filename, output_format);
40}
41
42} // namespace pbes_system
43
44} // namespace mcrl2
45
46#endif // MCRL2_PBES_TOOLS_PBESPAREQELM_H
parameterized boolean equation system
Definition pbes.h:58
The eqelm algorithm.
rewrite_strategy
The strategy of the rewriter.
pbes_rewriter_type
An enumerated type for the available pbes rewriters.
void eqelm(pbes &p, data::rewrite_strategy rewrite_strategy, pbes_rewriter_type rewriter_type, bool ignore_initial_state=false)
Apply the eqelm algorithm.
Definition eqelm.h:321
void load_pbes(pbes &pbes, std::istream &stream, utilities::file_format format, const std::string &source="")
Load a PBES from file.
Definition io.cpp:82
void save_pbes(const pbes &pbes, std::ostream &stream, utilities::file_format format=utilities::file_format())
Save a PBES in the format specified.
Definition io.cpp:49
void pbespareqelm(const std::string &input_filename, const std::string &output_filename, const utilities::file_format &input_format, const utilities::file_format &output_format, data::rewrite_strategy rewrite_strategy, pbes_rewriter_type rewriter_type, bool ignore_initial_state)
A class that takes a linear process specification and checks all tau-summands of that LPS for conflue...
Definition indexed_set.h:72
IO routines for boolean equation systems.