mCRL2
Loading...
Searching...
No Matches
stategraph.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//
9/// \file mcrl2/pbes/stategraph.h
10/// \brief add your file description here.
11
12#ifndef MCRL2_PBES_STATEGRAPH_H
13#define MCRL2_PBES_STATEGRAPH_H
14
15#include "mcrl2/pbes/detail/stategraph_global_reset_variables.h"
16#include "mcrl2/pbes/detail/stategraph_local_reset_variables.h"
17
18
19
20namespace mcrl2::pbes_system {
21
22/// \brief Apply the stategraph algorithm
23/// \param p A PBES to which the algorithm is applied.
24/// \param options The options for the algorithm.
25inline
26void stategraph(pbes& p, const pbesstategraph_options& options)
27{
29 if (options.use_global_variant)
30 {
32 algorithm.run();
33 p = algorithm.result();
34 if (options.print_influence_graph)
35 {
36 detail::stategraph_influence_graph_algorithm ialgo(algorithm.get_pbes());
37 ialgo.run();
38 }
39 }
40 else
41 {
43 algorithm.run();
44 p = algorithm.result();
45 if (options.print_influence_graph)
46 {
47 detail::stategraph_influence_graph_algorithm ialgo(algorithm.get_pbes());
48 ialgo.run();
49 }
50 }
51}
52
53} // namespace mcrl2::pbes_system
54
55
56
57#endif // MCRL2_PBES_STATEGRAPH_H
Adds the reset variables procedure to the stategraph algorithm.
global_reset_variables_algorithm(const pbes &p, const pbesstategraph_options &options)
Adds the reset variables procedure to the stategraph algorithm.
local_reset_variables_algorithm(const pbes &p, const pbesstategraph_options &options)
parameterized boolean equation system
Definition pbes.h:54
void normalize(pbes &x)
The function normalize brings (embedded) pbes expressions into positive normal form,...
The main namespace for the PBES library.
void stategraph(pbes &p, const pbesstategraph_options &options)
Apply the stategraph algorithm.
Definition stategraph.h:26