GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/smt/solver_engine_stats.cpp Lines: 17 17 100.0 %
Date: 2021-11-07 Branches: 12 24 50.0 %

Line Exec Source
1
/******************************************************************************
2
 * Top contributors (to current version):
3
 *   Tim King, Gereon Kremer, Andrew Reynolds
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
 * Implementation of statistics for SMT engine.
14
 */
15
16
#include "smt/solver_engine_stats.h"
17
18
#include "smt/smt_statistics_registry.h"
19
20
namespace cvc5 {
21
namespace smt {
22
23
18633
SolverEngineStatistics::SolverEngineStatistics(const std::string& name)
24
18633
    : d_definitionExpansionTime(smtStatisticsRegistry().registerTimer(
25
37266
        name + "definitionExpansionTime")),
26
      d_numConstantProps(
27
37266
          smtStatisticsRegistry().registerInt(name + "numConstantProps")),
28
18633
      d_numAssertionsPre(smtStatisticsRegistry().registerInt(
29
37266
          name + "numAssertionsPreITERemoval")),
30
18633
      d_numAssertionsPost(smtStatisticsRegistry().registerInt(
31
37266
          name + "numAssertionsPostITERemoval")),
32
      d_checkModelTime(
33
37266
          smtStatisticsRegistry().registerTimer(name + "checkModelTime")),
34
      d_checkUnsatCoreTime(
35
37266
          smtStatisticsRegistry().registerTimer(name + "checkUnsatCoreTime")),
36
37266
      d_solveTime(smtStatisticsRegistry().registerTimer(name + "solveTime")),
37
      d_pushPopTime(
38
37266
          smtStatisticsRegistry().registerTimer(name + "pushPopTime")),
39
18633
      d_processAssertionsTime(smtStatisticsRegistry().registerTimer(
40
37266
          name + "processAssertionsTime")),
41
      d_simplifiedToFalse(
42
186330
          smtStatisticsRegistry().registerInt(name + "simplifiedToFalse"))
43
{
44
18633
}
45
46
}  // namespace smt
47
31137
}  // namespace cvc5