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