1 |
|
/****************************************************************************** |
2 |
|
* Top contributors (to current version): |
3 |
|
* Gereon Kremer |
4 |
|
* |
5 |
|
* This file is part of the cvc5 project. |
6 |
|
* |
7 |
|
* Copyright (c) 2009-2021 by the authors listed in the file AUTHORS |
8 |
|
* in the top-level source directory and their institutional affiliations. |
9 |
|
* All rights reserved. See the file COPYING in the top-level source |
10 |
|
* directory for licensing information. |
11 |
|
* **************************************************************************** |
12 |
|
* |
13 |
|
* Registration and documentation for all public statistics. |
14 |
|
*/ |
15 |
|
|
16 |
|
#include "util/statistics_public.h" |
17 |
|
|
18 |
|
#include "api/cpp/cvc5_kind.h" |
19 |
|
#include "expr/kind.h" |
20 |
|
#include "theory/inference_id.h" |
21 |
|
#include "theory/theory_id.h" |
22 |
|
#include "util/statistics_registry.h" |
23 |
|
|
24 |
|
namespace cvc5 { |
25 |
|
|
26 |
13197 |
void registerPublicStatistics(StatisticsRegistry& reg) |
27 |
|
{ |
28 |
13197 |
reg.registerHistogram<TypeConstant>("api::CONSTANT", false); |
29 |
13197 |
reg.registerHistogram<TypeConstant>("api::VARIABLE", false); |
30 |
13197 |
reg.registerHistogram<api::Kind>("api::TERM", false); |
31 |
|
|
32 |
13197 |
reg.registerValue<std::string>("driver::filename", false); |
33 |
13197 |
reg.registerTimer("global::totalTime", false); |
34 |
|
|
35 |
184758 |
for (theory::TheoryId id = theory::THEORY_FIRST; id != theory::THEORY_LAST; |
36 |
|
++id) |
37 |
|
{ |
38 |
343122 |
std::string prefix = theory::getStatsPrefix(id); |
39 |
171561 |
reg.registerHistogram<theory::InferenceId>(prefix + "inferencesConflict", |
40 |
|
false); |
41 |
171561 |
reg.registerHistogram<theory::InferenceId>(prefix + "inferencesFact", |
42 |
|
false); |
43 |
171561 |
reg.registerHistogram<theory::InferenceId>(prefix + "inferencesLemma", |
44 |
|
false); |
45 |
|
} |
46 |
13197 |
} |
47 |
|
|
48 |
29505 |
} // namespace cvc5 |