GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/util/statistics_public.cpp Lines: 14 14 100.0 %
Date: 2021-05-22 Branches: 24 46 52.2 %

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