GCC Code Coverage Report
Directory: . Exec Total Coverage
File: build-coverage/src/options/expr_options.h Lines: 10 10 100.0 %
Date: 2021-03-22 Branches: 0 0 0.0 %

Line Exec Source
1
/*********************                                                        */
2
/*! \file module_template.h
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 Contains code for handling command-line options.
13
 **
14
 ** For each <module>_options.toml configuration file, mkoptions.py
15
 ** expands this template and generates a <module>_options.h file.
16
 **/
17
18
#include "cvc4_private.h"
19
20
#ifndef CVC4__OPTIONS__EXPR_H
21
#define CVC4__OPTIONS__EXPR_H
22
23
#include "options/options.h"
24
25
26
27
28
#define CVC4_OPTIONS__EXPR__FOR_OPTION_HOLDER \
29
  defaultDagThresh__option_t::type defaultDagThresh;\
30
  bool defaultDagThresh__setByUser__; \
31
  defaultExprDepth__option_t::type defaultExprDepth;\
32
  bool defaultExprDepth__setByUser__; \
33
  typeChecking__option_t::type typeChecking;\
34
  bool typeChecking__setByUser__;
35
36
37
namespace CVC4 {
38
39
namespace options {
40
41
42
43
extern struct defaultDagThresh__option_t
44
{
45
  typedef int type;
46
  type operator()() const;
47
  bool wasSetByUser() const;
48
  const char* getName() const;
49
} thread_local defaultDagThresh;
50
extern struct defaultExprDepth__option_t
51
{
52
  typedef int type;
53
  type operator()() const;
54
  bool wasSetByUser() const;
55
  const char* getName() const;
56
} thread_local defaultExprDepth;
57
extern struct typeChecking__option_t
58
{
59
  typedef bool type;
60
  type operator()() const;
61
  bool wasSetByUser() const;
62
  const char* getName() const;
63
} thread_local typeChecking;
64
65
}  // namespace options
66
67
template <> const options::defaultDagThresh__option_t::type& Options::operator[](
68
    options::defaultDagThresh__option_t) const;
69
template <> bool Options::wasSetByUser(options::defaultDagThresh__option_t) const;
70
template <> void Options::assign(
71
    options::defaultDagThresh__option_t,
72
    std::string option,
73
    std::string value);
74
template <> const options::defaultExprDepth__option_t::type& Options::operator[](
75
    options::defaultExprDepth__option_t) const;
76
template <> bool Options::wasSetByUser(options::defaultExprDepth__option_t) const;
77
template <> void Options::assign(
78
    options::defaultExprDepth__option_t,
79
    std::string option,
80
    std::string value);
81
template <> const options::typeChecking__option_t::type& Options::operator[](
82
    options::typeChecking__option_t) const;
83
template <> bool Options::wasSetByUser(options::typeChecking__option_t) const;
84
template <> void Options::assignBool(
85
    options::typeChecking__option_t,
86
    std::string option,
87
    bool value);
88
89
90
namespace options {
91
92
16453
inline defaultDagThresh__option_t::type defaultDagThresh__option_t::operator()() const
93
{
94
16453
  return (*Options::current())[*this];
95
}
96
inline bool defaultDagThresh__option_t::wasSetByUser() const
97
{
98
  return Options::current()->wasSetByUser(*this);
99
}
100
9204
inline const char* defaultDagThresh__option_t::getName() const
101
{
102
9204
  return "dag-thresh";
103
}
104
58669
inline defaultExprDepth__option_t::type defaultExprDepth__option_t::operator()() const
105
{
106
58669
  return (*Options::current())[*this];
107
}
108
inline bool defaultExprDepth__option_t::wasSetByUser() const
109
{
110
  return Options::current()->wasSetByUser(*this);
111
}
112
9204
inline const char* defaultExprDepth__option_t::getName() const
113
{
114
9204
  return "expr-depth";
115
}
116
105597
inline typeChecking__option_t::type typeChecking__option_t::operator()() const
117
{
118
105597
  return (*Options::current())[*this];
119
}
120
inline bool typeChecking__option_t::wasSetByUser() const
121
{
122
  return Options::current()->wasSetByUser(*this);
123
}
124
inline const char* typeChecking__option_t::getName() const
125
{
126
  return "type-checking";
127
}
128
129
}  // namespace options
130
}  // namespace CVC4
131
132
#endif /* CVC4__OPTIONS__EXPR_H */