mCRL2
Loading...
Searching...
No Matches
rewrite_statistics.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_DATA_DETAIL_REWRITE_STATISTICS_H
13#define MCRL2_DATA_DETAIL_REWRITE_STATISTICS_H
14
16
17namespace mcrl2
18{
19
20namespace data
21{
22
23namespace detail
24{
25
26template <class T> // note, T is only a dummy
28{
29 static std::size_t rewrite_count;
30};
31
32template <class T>
34
35inline
36std::size_t rewrite_count()
37{
39}
40
41inline
43{
44 mCRL2log(log::verbose) << "rewrite count = " << rewrite_count() << std::endl;
45}
46
47inline
49{
51 if (rewrite_count() % 10000 == 0)
52 {
54 }
55}
56
57} // namespace detail
58
59} // namespace data
60
61} // namespace mcrl2
62
63#endif // MCRL2_DATA_DETAIL_REWRITE_STATISTICS_H
#define mCRL2log(LEVEL)
mCRL2log(LEVEL) provides the stream used to log.
Definition logger.h:391
std::size_t rewrite_count()
@ verbose
Definition logger.h:37
A class that takes a linear process specification and checks all tau-summands of that LPS for conflue...
Definition indexed_set.h:72