GCC Code Coverage Report
Directory: . Exec Total Coverage
File: build-coverage/src/options/expr_options.cpp Lines: 11 13 84.6 %
Date: 2021-03-22 Branches: 2 4 50.0 %

Line Exec Source
1
/*********************                                                        */
2
/*! \file module_template.cpp
3
 ** \verbatim
4
 ** Top contributors (to current version):
5
 **   Mathias Preiner
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 Option template for option modules.
13
 **
14
 ** For each <module>_options.toml configuration file, mkoptions.py
15
 ** expands this template and generates a <module>_options.cpp file.
16
 **/
17
18
#include "options/options_holder.h"
19
#include "base/check.h"
20
21
namespace CVC4 {
22
23
16454
template <> const options::defaultDagThresh__option_t::type& Options::operator[](
24
    options::defaultDagThresh__option_t) const
25
{
26
16454
  return d_holder->defaultDagThresh;
27
}
28
9620
template <> bool Options::wasSetByUser(options::defaultDagThresh__option_t) const
29
{
30
9620
  return d_holder->defaultDagThresh__setByUser__;
31
}
32
58669
template <> const options::defaultExprDepth__option_t::type& Options::operator[](
33
    options::defaultExprDepth__option_t) const
34
{
35
58669
  return d_holder->defaultExprDepth;
36
}
37
9620
template <> bool Options::wasSetByUser(options::defaultExprDepth__option_t) const
38
{
39
9620
  return d_holder->defaultExprDepth__setByUser__;
40
}
41
105597
template <> const options::typeChecking__option_t::type& Options::operator[](
42
    options::typeChecking__option_t) const
43
{
44
105597
  return d_holder->typeChecking;
45
}
46
template <> bool Options::wasSetByUser(options::typeChecking__option_t) const
47
{
48
  return d_holder->typeChecking__setByUser__;
49
}
50
51
52
namespace options {
53
54
thread_local struct defaultDagThresh__option_t defaultDagThresh;
55
thread_local struct defaultExprDepth__option_t defaultExprDepth;
56
thread_local struct typeChecking__option_t typeChecking;
57
58
59
60
}  // namespace options
61
26676
}  // namespace CVC4