mCRL2
Loading...
Searching...
No Matches
rewrite_strategies.h
Go to the documentation of this file.
1// Author(s): Frank Stappers
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_DATA_DETAIL_REWRITE_STRATEGIES_H
13#define MCRL2_DATA_DETAIL_REWRITE_STRATEGIES_H
14
16#include <algorithm>
17#include <cctype>
18#include <fstream>
19#include <vector>
20
21namespace mcrl2
22{
23
24namespace data
25{
26
27namespace detail
28{
29
31static inline
32std::vector<data::rewrite_strategy> initialise_test_rewrite_strategies(const bool with_prover)
33{
34 std::vector<data::rewrite_strategy> result;
35 result.push_back(data::jitty);
36 if (with_prover)
37 {
38 result.push_back(data::jitty_prover);
39 }
40#ifdef MCRL2_TEST_JITTYC
41#ifdef MCRL2_ENABLE_JITTYC
42 result.push_back(data::jitty_compiling);
43 if (with_prover)
44 {
45 result.push_back(data::jitty_compiling_prover);
46 }
47#endif // MCRL2_ENABLE_JITTYC
48#endif // MCRL2_TEST_JITTYC
49
50 return result;
51}
52
54inline
55const std::vector<data::rewrite_strategy>& get_test_rewrite_strategies(const bool with_prover)
56{
57 static std::vector<data::rewrite_strategy> rewrite_strategies = initialise_test_rewrite_strategies(with_prover);
58 return rewrite_strategies;
59}
60
61} // namespace detail
62
63} // namespace data
64
65} // namespace mcrl2
66
67#endif // MCRL2_DATA_DETAIL_REWRITE_STRATEGIES_H
const std::vector< data::rewrite_strategy > & get_test_rewrite_strategies(const bool with_prover)
Rewrite strategies that should be tested.
static std::vector< data::rewrite_strategy > initialise_test_rewrite_strategies(const bool with_prover)
Static initialisation of rewrite strategies used for testing.
@ jitty_prover
JITty.
A class that takes a linear process specification and checks all tau-summands of that LPS for conflue...
Definition indexed_set.h:72