GCC Code Coverage Report
Directory: . Exec Total Coverage
File: build-coverage/src/options/sets_options.h Lines: 6 6 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__SETS_H
21
#define CVC4__OPTIONS__SETS_H
22
23
#include "options/options.h"
24
25
26
27
28
#define CVC4_OPTIONS__SETS__FOR_OPTION_HOLDER \
29
  setsExt__option_t::type setsExt;\
30
  bool setsExt__setByUser__; \
31
  setsInferAsLemmas__option_t::type setsInferAsLemmas;\
32
  bool setsInferAsLemmas__setByUser__; \
33
  setsProxyLemmas__option_t::type setsProxyLemmas;\
34
  bool setsProxyLemmas__setByUser__;
35
36
37
namespace CVC4 {
38
39
namespace options {
40
41
42
43
extern struct setsExt__option_t
44
{
45
  typedef bool type;
46
  type operator()() const;
47
  bool wasSetByUser() const;
48
  const char* getName() const;
49
} thread_local setsExt;
50
extern struct setsInferAsLemmas__option_t
51
{
52
  typedef bool type;
53
  type operator()() const;
54
  bool wasSetByUser() const;
55
  const char* getName() const;
56
} thread_local setsInferAsLemmas;
57
extern struct setsProxyLemmas__option_t
58
{
59
  typedef bool type;
60
  type operator()() const;
61
  bool wasSetByUser() const;
62
  const char* getName() const;
63
} thread_local setsProxyLemmas;
64
65
}  // namespace options
66
67
template <> const options::setsExt__option_t::type& Options::operator[](
68
    options::setsExt__option_t) const;
69
template <> bool Options::wasSetByUser(options::setsExt__option_t) const;
70
template <> void Options::assignBool(
71
    options::setsExt__option_t,
72
    std::string option,
73
    bool value);
74
template <> const options::setsInferAsLemmas__option_t::type& Options::operator[](
75
    options::setsInferAsLemmas__option_t) const;
76
template <> bool Options::wasSetByUser(options::setsInferAsLemmas__option_t) const;
77
template <> void Options::assignBool(
78
    options::setsInferAsLemmas__option_t,
79
    std::string option,
80
    bool value);
81
template <> const options::setsProxyLemmas__option_t::type& Options::operator[](
82
    options::setsProxyLemmas__option_t) const;
83
template <> bool Options::wasSetByUser(options::setsProxyLemmas__option_t) const;
84
template <> void Options::assignBool(
85
    options::setsProxyLemmas__option_t,
86
    std::string option,
87
    bool value);
88
89
90
namespace options {
91
92
17221
inline setsExt__option_t::type setsExt__option_t::operator()() const
93
{
94
17221
  return (*Options::current())[*this];
95
}
96
inline bool setsExt__option_t::wasSetByUser() const
97
{
98
  return Options::current()->wasSetByUser(*this);
99
}
100
inline const char* setsExt__option_t::getName() const
101
{
102
  return "sets-ext";
103
}
104
106153
inline setsInferAsLemmas__option_t::type setsInferAsLemmas__option_t::operator()() const
105
{
106
106153
  return (*Options::current())[*this];
107
}
108
inline bool setsInferAsLemmas__option_t::wasSetByUser() const
109
{
110
  return Options::current()->wasSetByUser(*this);
111
}
112
inline const char* setsInferAsLemmas__option_t::getName() const
113
{
114
  return "sets-infer-as-lemmas";
115
}
116
51064
inline setsProxyLemmas__option_t::type setsProxyLemmas__option_t::operator()() const
117
{
118
51064
  return (*Options::current())[*this];
119
}
120
inline bool setsProxyLemmas__option_t::wasSetByUser() const
121
{
122
  return Options::current()->wasSetByUser(*this);
123
}
124
inline const char* setsProxyLemmas__option_t::getName() const
125
{
126
  return "sets-proxy-lemmas";
127
}
128
129
}  // namespace options
130
}  // namespace CVC4
131
132
#endif /* CVC4__OPTIONS__SETS_H */