GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/theory/quantifiers/sygus/sygus_stats.cpp Lines: 24 24 100.0 %
Date: 2021-03-22 Branches: 38 76 50.0 %

Line Exec Source
1
/*********************                                                        */
2
/*! \file sygus_stats.cpp
3
 ** \verbatim
4
 ** Top contributors (to current version):
5
 **   Andrew Reynolds, Tim King
6
 ** This file is part of the CVC4 project.
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.\endverbatim
11
 **
12
 ** \brief A shared statistics class for sygus.
13
 **
14
 **/
15
16
#include "theory/quantifiers/sygus/sygus_stats.h"
17
18
#include "smt/smt_statistics_registry.h"
19
20
namespace CVC4 {
21
namespace theory {
22
namespace quantifiers {
23
24
2190
SygusStatistics::SygusStatistics()
25
    : d_cegqi_lemmas_ce("SynthEngine::cegqi_lemmas_ce", 0),
26
      d_cegqi_lemmas_refine("SynthEngine::cegqi_lemmas_refine", 0),
27
      d_cegqi_si_lemmas("SynthEngine::cegqi_lemmas_si", 0),
28
      d_solutions("SynthConjecture::solutions", 0),
29
      d_filtered_solutions("SynthConjecture::filtered_solutions", 0),
30
      d_candidate_rewrites_print("SynthConjecture::candidate_rewrites_print",
31
                                 0),
32
      d_enumTermsRewrite("SygusEnumerator::enumTermsRewrite", 0),
33
      d_enumTermsExampleEval("SygusEnumerator::enumTermsEvalExamples", 0),
34
2190
      d_enumTerms("SygusEnumerator::enumTerms", 0)
35
36
{
37
2190
  smtStatisticsRegistry()->registerStat(&d_cegqi_lemmas_ce);
38
2190
  smtStatisticsRegistry()->registerStat(&d_cegqi_lemmas_refine);
39
2190
  smtStatisticsRegistry()->registerStat(&d_cegqi_si_lemmas);
40
2190
  smtStatisticsRegistry()->registerStat(&d_solutions);
41
2190
  smtStatisticsRegistry()->registerStat(&d_filtered_solutions);
42
2190
  smtStatisticsRegistry()->registerStat(&d_candidate_rewrites_print);
43
2190
  smtStatisticsRegistry()->registerStat(&d_enumTermsRewrite);
44
2190
  smtStatisticsRegistry()->registerStat(&d_enumTermsExampleEval);
45
2190
  smtStatisticsRegistry()->registerStat(&d_enumTerms);
46
2190
}
47
48
4376
SygusStatistics::~SygusStatistics()
49
{
50
2188
  smtStatisticsRegistry()->unregisterStat(&d_cegqi_lemmas_ce);
51
2188
  smtStatisticsRegistry()->unregisterStat(&d_cegqi_lemmas_refine);
52
2188
  smtStatisticsRegistry()->unregisterStat(&d_cegqi_si_lemmas);
53
2188
  smtStatisticsRegistry()->unregisterStat(&d_solutions);
54
2188
  smtStatisticsRegistry()->unregisterStat(&d_filtered_solutions);
55
2188
  smtStatisticsRegistry()->unregisterStat(&d_candidate_rewrites_print);
56
2188
  smtStatisticsRegistry()->unregisterStat(&d_enumTermsRewrite);
57
2188
  smtStatisticsRegistry()->unregisterStat(&d_enumTermsExampleEval);
58
2188
  smtStatisticsRegistry()->unregisterStat(&d_enumTerms);
59
2188
}
60
61
}  // namespace quantifiers
62
}  // namespace theory
63
26676
} /* namespace CVC4 */