1 |
|
/****************************************************************************** |
2 |
|
* Top contributors (to current version): |
3 |
|
* Mathias Preiner, Aina Niemetz |
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 |
|
* Option template for option modules. |
14 |
|
* |
15 |
|
* For each <module>_options.toml configuration file, mkoptions.py |
16 |
|
* expands this template and generates a <module>_options.cpp file. |
17 |
|
*/ |
18 |
|
#include "options/main_options.h" |
19 |
|
|
20 |
|
#include <iostream> |
21 |
|
|
22 |
|
#include "base/check.h" |
23 |
|
#include "options/option_exception.h" |
24 |
|
|
25 |
|
// clang-format off |
26 |
|
namespace cvc5 { |
27 |
|
|
28 |
|
template <> options::earlyExit__option_t::type& Options::ref( |
29 |
|
options::earlyExit__option_t) |
30 |
|
{ |
31 |
|
return driver().earlyExit; |
32 |
|
} |
33 |
5704 |
template <> const options::earlyExit__option_t::type& Options::operator[]( |
34 |
|
options::earlyExit__option_t) const |
35 |
|
{ |
36 |
5704 |
return driver().earlyExit; |
37 |
|
} |
38 |
5704 |
template <> bool Options::wasSetByUser(options::earlyExit__option_t) const |
39 |
|
{ |
40 |
5704 |
return driver().earlyExit__setByUser__; |
41 |
|
} |
42 |
|
template <> options::help__option_t::type& Options::ref( |
43 |
|
options::help__option_t) |
44 |
|
{ |
45 |
|
return driver().help; |
46 |
|
} |
47 |
5725 |
template <> const options::help__option_t::type& Options::operator[]( |
48 |
|
options::help__option_t) const |
49 |
|
{ |
50 |
5725 |
return driver().help; |
51 |
|
} |
52 |
|
template <> bool Options::wasSetByUser(options::help__option_t) const |
53 |
|
{ |
54 |
|
return driver().help__setByUser__; |
55 |
|
} |
56 |
5725 |
template <> options::interactive__option_t::type& Options::ref( |
57 |
|
options::interactive__option_t) |
58 |
|
{ |
59 |
5725 |
return driver().interactive; |
60 |
|
} |
61 |
5724 |
template <> const options::interactive__option_t::type& Options::operator[]( |
62 |
|
options::interactive__option_t) const |
63 |
|
{ |
64 |
5724 |
return driver().interactive; |
65 |
|
} |
66 |
5725 |
template <> bool Options::wasSetByUser(options::interactive__option_t) const |
67 |
|
{ |
68 |
5725 |
return driver().interactive__setByUser__; |
69 |
|
} |
70 |
|
template <> options::interactivePrompt__option_t::type& Options::ref( |
71 |
|
options::interactivePrompt__option_t) |
72 |
|
{ |
73 |
|
return driver().interactivePrompt; |
74 |
|
} |
75 |
28 |
template <> const options::interactivePrompt__option_t::type& Options::operator[]( |
76 |
|
options::interactivePrompt__option_t) const |
77 |
|
{ |
78 |
28 |
return driver().interactivePrompt; |
79 |
|
} |
80 |
|
template <> bool Options::wasSetByUser(options::interactivePrompt__option_t) const |
81 |
|
{ |
82 |
|
return driver().interactivePrompt__setByUser__; |
83 |
|
} |
84 |
|
template <> options::seed__option_t::type& Options::ref( |
85 |
|
options::seed__option_t) |
86 |
|
{ |
87 |
|
return driver().seed; |
88 |
|
} |
89 |
15414 |
template <> const options::seed__option_t::type& Options::operator[]( |
90 |
|
options::seed__option_t) const |
91 |
|
{ |
92 |
15414 |
return driver().seed; |
93 |
|
} |
94 |
|
template <> bool Options::wasSetByUser(options::seed__option_t) const |
95 |
|
{ |
96 |
|
return driver().seed__setByUser__; |
97 |
|
} |
98 |
|
template <> options::segvSpin__option_t::type& Options::ref( |
99 |
|
options::segvSpin__option_t) |
100 |
|
{ |
101 |
|
return driver().segvSpin; |
102 |
|
} |
103 |
5725 |
template <> const options::segvSpin__option_t::type& Options::operator[]( |
104 |
|
options::segvSpin__option_t) const |
105 |
|
{ |
106 |
5725 |
return driver().segvSpin; |
107 |
|
} |
108 |
|
template <> bool Options::wasSetByUser(options::segvSpin__option_t) const |
109 |
|
{ |
110 |
|
return driver().segvSpin__setByUser__; |
111 |
|
} |
112 |
|
template <> options::tearDownIncremental__option_t::type& Options::ref( |
113 |
|
options::tearDownIncremental__option_t) |
114 |
|
{ |
115 |
|
return driver().tearDownIncremental; |
116 |
|
} |
117 |
5724 |
template <> const options::tearDownIncremental__option_t::type& Options::operator[]( |
118 |
|
options::tearDownIncremental__option_t) const |
119 |
|
{ |
120 |
5724 |
return driver().tearDownIncremental; |
121 |
|
} |
122 |
|
template <> bool Options::wasSetByUser(options::tearDownIncremental__option_t) const |
123 |
|
{ |
124 |
|
return driver().tearDownIncremental__setByUser__; |
125 |
|
} |
126 |
|
template <> options::version__option_t::type& Options::ref( |
127 |
|
options::version__option_t) |
128 |
|
{ |
129 |
|
return driver().version; |
130 |
|
} |
131 |
5725 |
template <> const options::version__option_t::type& Options::operator[]( |
132 |
|
options::version__option_t) const |
133 |
|
{ |
134 |
5725 |
return driver().version; |
135 |
|
} |
136 |
|
template <> bool Options::wasSetByUser(options::version__option_t) const |
137 |
|
{ |
138 |
|
return driver().version__setByUser__; |
139 |
|
} |
140 |
|
|
141 |
|
namespace options { |
142 |
|
|
143 |
|
thread_local struct earlyExit__option_t earlyExit; |
144 |
|
thread_local struct help__option_t help; |
145 |
|
thread_local struct interactive__option_t interactive; |
146 |
|
thread_local struct interactivePrompt__option_t interactivePrompt; |
147 |
|
thread_local struct seed__option_t seed; |
148 |
|
thread_local struct segvSpin__option_t segvSpin; |
149 |
|
thread_local struct tearDownIncremental__option_t tearDownIncremental; |
150 |
|
thread_local struct version__option_t version; |
151 |
|
|
152 |
|
|
153 |
|
|
154 |
|
} // namespace options |
155 |
27735 |
} // namespace cvc5 |
156 |
|
// clang-format on |