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/prop_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::minisatDumpDimacs__option_t::type& Options::ref( |
29 |
|
options::minisatDumpDimacs__option_t) |
30 |
|
{ |
31 |
|
return prop().minisatDumpDimacs; |
32 |
|
} |
33 |
14307 |
template <> const options::minisatDumpDimacs__option_t::type& Options::operator[]( |
34 |
|
options::minisatDumpDimacs__option_t) const |
35 |
|
{ |
36 |
14307 |
return prop().minisatDumpDimacs; |
37 |
|
} |
38 |
|
template <> bool Options::wasSetByUser(options::minisatDumpDimacs__option_t) const |
39 |
|
{ |
40 |
|
return prop().minisatDumpDimacs__setByUser__; |
41 |
|
} |
42 |
7449 |
template <> options::minisatUseElim__option_t::type& Options::ref( |
43 |
|
options::minisatUseElim__option_t) |
44 |
|
{ |
45 |
7449 |
return prop().minisatUseElim; |
46 |
|
} |
47 |
28323 |
template <> const options::minisatUseElim__option_t::type& Options::operator[]( |
48 |
|
options::minisatUseElim__option_t) const |
49 |
|
{ |
50 |
28323 |
return prop().minisatUseElim; |
51 |
|
} |
52 |
11476 |
template <> bool Options::wasSetByUser(options::minisatUseElim__option_t) const |
53 |
|
{ |
54 |
11476 |
return prop().minisatUseElim__setByUser__; |
55 |
|
} |
56 |
|
template <> options::satRandomFreq__option_t::type& Options::ref( |
57 |
|
options::satRandomFreq__option_t) |
58 |
|
{ |
59 |
|
return prop().satRandomFreq; |
60 |
|
} |
61 |
14307 |
template <> const options::satRandomFreq__option_t::type& Options::operator[]( |
62 |
|
options::satRandomFreq__option_t) const |
63 |
|
{ |
64 |
14307 |
return prop().satRandomFreq; |
65 |
|
} |
66 |
|
template <> bool Options::wasSetByUser(options::satRandomFreq__option_t) const |
67 |
|
{ |
68 |
|
return prop().satRandomFreq__setByUser__; |
69 |
|
} |
70 |
|
template <> options::satRandomSeed__option_t::type& Options::ref( |
71 |
|
options::satRandomSeed__option_t) |
72 |
|
{ |
73 |
|
return prop().satRandomSeed; |
74 |
|
} |
75 |
14307 |
template <> const options::satRandomSeed__option_t::type& Options::operator[]( |
76 |
|
options::satRandomSeed__option_t) const |
77 |
|
{ |
78 |
14307 |
return prop().satRandomSeed; |
79 |
|
} |
80 |
|
template <> bool Options::wasSetByUser(options::satRandomSeed__option_t) const |
81 |
|
{ |
82 |
|
return prop().satRandomSeed__setByUser__; |
83 |
|
} |
84 |
|
template <> options::sat_refine_conflicts__option_t::type& Options::ref( |
85 |
|
options::sat_refine_conflicts__option_t) |
86 |
|
{ |
87 |
|
return prop().sat_refine_conflicts; |
88 |
|
} |
89 |
53165 |
template <> const options::sat_refine_conflicts__option_t::type& Options::operator[]( |
90 |
|
options::sat_refine_conflicts__option_t) const |
91 |
|
{ |
92 |
53165 |
return prop().sat_refine_conflicts; |
93 |
|
} |
94 |
|
template <> bool Options::wasSetByUser(options::sat_refine_conflicts__option_t) const |
95 |
|
{ |
96 |
|
return prop().sat_refine_conflicts__setByUser__; |
97 |
|
} |
98 |
|
template <> options::satRestartFirst__option_t::type& Options::ref( |
99 |
|
options::satRestartFirst__option_t) |
100 |
|
{ |
101 |
|
return prop().satRestartFirst; |
102 |
|
} |
103 |
14307 |
template <> const options::satRestartFirst__option_t::type& Options::operator[]( |
104 |
|
options::satRestartFirst__option_t) const |
105 |
|
{ |
106 |
14307 |
return prop().satRestartFirst; |
107 |
|
} |
108 |
|
template <> bool Options::wasSetByUser(options::satRestartFirst__option_t) const |
109 |
|
{ |
110 |
|
return prop().satRestartFirst__setByUser__; |
111 |
|
} |
112 |
|
template <> options::satRestartInc__option_t::type& Options::ref( |
113 |
|
options::satRestartInc__option_t) |
114 |
|
{ |
115 |
|
return prop().satRestartInc; |
116 |
|
} |
117 |
14307 |
template <> const options::satRestartInc__option_t::type& Options::operator[]( |
118 |
|
options::satRestartInc__option_t) const |
119 |
|
{ |
120 |
14307 |
return prop().satRestartInc; |
121 |
|
} |
122 |
|
template <> bool Options::wasSetByUser(options::satRestartInc__option_t) const |
123 |
|
{ |
124 |
|
return prop().satRestartInc__setByUser__; |
125 |
|
} |
126 |
|
template <> options::satClauseDecay__option_t::type& Options::ref( |
127 |
|
options::satClauseDecay__option_t) |
128 |
|
{ |
129 |
|
return prop().satClauseDecay; |
130 |
|
} |
131 |
14307 |
template <> const options::satClauseDecay__option_t::type& Options::operator[]( |
132 |
|
options::satClauseDecay__option_t) const |
133 |
|
{ |
134 |
14307 |
return prop().satClauseDecay; |
135 |
|
} |
136 |
|
template <> bool Options::wasSetByUser(options::satClauseDecay__option_t) const |
137 |
|
{ |
138 |
|
return prop().satClauseDecay__setByUser__; |
139 |
|
} |
140 |
|
template <> options::satVarDecay__option_t::type& Options::ref( |
141 |
|
options::satVarDecay__option_t) |
142 |
|
{ |
143 |
|
return prop().satVarDecay; |
144 |
|
} |
145 |
14307 |
template <> const options::satVarDecay__option_t::type& Options::operator[]( |
146 |
|
options::satVarDecay__option_t) const |
147 |
|
{ |
148 |
14307 |
return prop().satVarDecay; |
149 |
|
} |
150 |
|
template <> bool Options::wasSetByUser(options::satVarDecay__option_t) const |
151 |
|
{ |
152 |
|
return prop().satVarDecay__setByUser__; |
153 |
|
} |
154 |
|
|
155 |
|
namespace options { |
156 |
|
|
157 |
|
thread_local struct minisatDumpDimacs__option_t minisatDumpDimacs; |
158 |
|
thread_local struct minisatUseElim__option_t minisatUseElim; |
159 |
|
thread_local struct satRandomFreq__option_t satRandomFreq; |
160 |
|
thread_local struct satRandomSeed__option_t satRandomSeed; |
161 |
|
thread_local struct sat_refine_conflicts__option_t sat_refine_conflicts; |
162 |
|
thread_local struct satRestartFirst__option_t satRestartFirst; |
163 |
|
thread_local struct satRestartInc__option_t satRestartInc; |
164 |
|
thread_local struct satClauseDecay__option_t satClauseDecay; |
165 |
|
thread_local struct satVarDecay__option_t satVarDecay; |
166 |
|
|
167 |
|
|
168 |
|
|
169 |
|
} // namespace options |
170 |
28191 |
} // namespace cvc5 |
171 |
|
// clang-format on |