mCRL2
Loading...
Searching...
No Matches
pbesabsinthe.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_PBESABSINTHE_H
13#define MCRL2_PBES_TOOLS_PBESABSINTHE_H
14
15#include "mcrl2/pbes/absinthe.h"
17#include "mcrl2/pbes/io.h"
18
19namespace mcrl2 {
20
21namespace pbes_system {
22
23void pbesabsinthe(const std::string& input_filename,
24 const std::string& output_filename,
25 const utilities::file_format& input_format,
26 const utilities::file_format& output_format,
27 const std::string& abstraction_file,
28 absinthe_strategy strategy,
29 bool print_used_function_symbols,
30 bool enable_logging
31 )
32{
33 // load the pbes
34 pbes p;
35 load_pbes(p, input_filename, input_format);
36
37 if (print_used_function_symbols)
38 {
40 }
41
42 std::string abstraction_text;
43 if (!abstraction_file.empty())
44 {
45 abstraction_text = utilities::read_text(abstraction_file);
46 }
47
48 bool over_approximation = (strategy == absinthe_over);
49
50 absinthe_algorithm algorithm;
51 if (enable_logging)
52 {
53 algorithm.enable_logging();
54 }
55 algorithm.run(p, abstraction_text, over_approximation);
56
57 // save the result
58 save_pbes(p, output_filename, output_format);
59}
60
61} // namespace pbes_system
62
63} // namespace mcrl2
64
65#endif // MCRL2_PBES_TOOLS_PBESABSINTHE_H
add your file description here.
add your file description here.
parameterized boolean equation system
Definition pbes.h:58
void print_used_function_symbols(const pbes &p)
Definition absinthe.h:90
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 pbesabsinthe(const std::string &input_filename, const std::string &output_filename, const utilities::file_format &input_format, const utilities::file_format &output_format, const std::string &abstraction_file, absinthe_strategy strategy, bool print_used_function_symbols, bool enable_logging)
absinthe_strategy
The approximation strategies of the absinthe tool.
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...
Definition indexed_set.h:72
IO routines for boolean equation systems.
void run(pbes &p, const std::string &abstraction_text, bool is_over_approximation)
Definition absinthe.h:956