GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/smt/smt_engine_stats.cpp Lines: 18 18 100.0 %
Date: 2021-05-21 Branches: 13 26 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
9586
SmtEngineStatistics::SmtEngineStatistics(const std::string& name)
24
9586
    : d_definitionExpansionTime(smtStatisticsRegistry().registerTimer(
25
19172
        name + "definitionExpansionTime")),
26
      d_numConstantProps(
27
19172
          smtStatisticsRegistry().registerInt(name + "numConstantProps")),
28
      d_cnfConversionTime(
29
19172
          smtStatisticsRegistry().registerTimer(name + "cnfConversionTime")),
30
9586
      d_numAssertionsPre(smtStatisticsRegistry().registerInt(
31
19172
          name + "numAssertionsPreITERemoval")),
32
9586
      d_numAssertionsPost(smtStatisticsRegistry().registerInt(
33
19172
          name + "numAssertionsPostITERemoval")),
34
      d_checkModelTime(
35
19172
          smtStatisticsRegistry().registerTimer(name + "checkModelTime")),
36
      d_checkUnsatCoreTime(
37
19172
          smtStatisticsRegistry().registerTimer(name + "checkUnsatCoreTime")),
38
19172
      d_solveTime(smtStatisticsRegistry().registerTimer(name + "solveTime")),
39
      d_pushPopTime(
40
19172
          smtStatisticsRegistry().registerTimer(name + "pushPopTime")),
41
9586
      d_processAssertionsTime(smtStatisticsRegistry().registerTimer(
42
19172
          name + "processAssertionsTime")),
43
      d_simplifiedToFalse(
44
105446
          smtStatisticsRegistry().registerInt(name + "simplifiedToFalse"))
45
{
46
9586
}
47
48
}  // namespace smt
49
27735
}  // namespace cvc5