GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/util/statistics_public.cpp Lines: 13 13 100.0 %
Date: 2021-09-18 Branches: 22 42 52.4 %

Line Exec Source
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
13221
void registerPublicStatistics(StatisticsRegistry& reg)
27
{
28
13221
  reg.registerHistogram<TypeConstant>("api::CONSTANT", false);
29
13221
  reg.registerHistogram<TypeConstant>("api::VARIABLE", false);
30
13221
  reg.registerHistogram<api::Kind>("api::TERM", false);
31
32
13221
  reg.registerValue<std::string>("driver::filename", false);
33
13221
  reg.registerTimer("global::totalTime", false);
34
35
185094
  for (theory::TheoryId id = theory::THEORY_FIRST; id != theory::THEORY_LAST;
36
       ++id)
37
  {
38
343746
    std::string prefix = theory::getStatsPrefix(id);
39
171873
    reg.registerHistogram<theory::InferenceId>(prefix + "inferencesConflict",
40
                                               false);
41
171873
    reg.registerHistogram<theory::InferenceId>(prefix + "inferencesFact",
42
                                               false);
43
171873
    reg.registerHistogram<theory::InferenceId>(prefix + "inferencesLemma",
44
                                               false);
45
  }
46
13221
}
47
48
29574
}  // namespace cvc5