GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/smt/smt_engine_stats.cpp Lines: 17 17 100.0 %
Date: 2021-08-17 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/smt_engine_stats.h"
17
18
#include "smt/smt_statistics_registry.h"
19
20
namespace cvc5 {
21
namespace smt {
22
23
10494
SmtEngineStatistics::SmtEngineStatistics(const std::string& name)
24
10494
    : d_definitionExpansionTime(smtStatisticsRegistry().registerTimer(
25
20988
        name + "definitionExpansionTime")),
26
      d_numConstantProps(
27
20988
          smtStatisticsRegistry().registerInt(name + "numConstantProps")),
28
10494
      d_numAssertionsPre(smtStatisticsRegistry().registerInt(
29
20988
          name + "numAssertionsPreITERemoval")),
30
10494
      d_numAssertionsPost(smtStatisticsRegistry().registerInt(
31
20988
          name + "numAssertionsPostITERemoval")),
32
      d_checkModelTime(
33
20988
          smtStatisticsRegistry().registerTimer(name + "checkModelTime")),
34
      d_checkUnsatCoreTime(
35
20988
          smtStatisticsRegistry().registerTimer(name + "checkUnsatCoreTime")),
36
20988
      d_solveTime(smtStatisticsRegistry().registerTimer(name + "solveTime")),
37
      d_pushPopTime(
38
20988
          smtStatisticsRegistry().registerTimer(name + "pushPopTime")),
39
10494
      d_processAssertionsTime(smtStatisticsRegistry().registerTimer(
40
20988
          name + "processAssertionsTime")),
41
      d_simplifiedToFalse(
42
104940
          smtStatisticsRegistry().registerInt(name + "simplifiedToFalse"))
43
{
44
10494
}
45
46
}  // namespace smt
47
29337
}  // namespace cvc5