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/sets_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::setsExt__option_t::type& Options::ref( |
29 |
|
options::setsExt__option_t) |
30 |
|
{ |
31 |
|
return sets().setsExt; |
32 |
|
} |
33 |
18108 |
template <> const options::setsExt__option_t::type& Options::operator[]( |
34 |
|
options::setsExt__option_t) const |
35 |
|
{ |
36 |
18108 |
return sets().setsExt; |
37 |
|
} |
38 |
|
template <> bool Options::wasSetByUser(options::setsExt__option_t) const |
39 |
|
{ |
40 |
|
return sets().setsExt__setByUser__; |
41 |
|
} |
42 |
|
template <> options::setsInferAsLemmas__option_t::type& Options::ref( |
43 |
|
options::setsInferAsLemmas__option_t) |
44 |
|
{ |
45 |
|
return sets().setsInferAsLemmas; |
46 |
|
} |
47 |
72974 |
template <> const options::setsInferAsLemmas__option_t::type& Options::operator[]( |
48 |
|
options::setsInferAsLemmas__option_t) const |
49 |
|
{ |
50 |
72974 |
return sets().setsInferAsLemmas; |
51 |
|
} |
52 |
|
template <> bool Options::wasSetByUser(options::setsInferAsLemmas__option_t) const |
53 |
|
{ |
54 |
|
return sets().setsInferAsLemmas__setByUser__; |
55 |
|
} |
56 |
|
template <> options::setsProxyLemmas__option_t::type& Options::ref( |
57 |
|
options::setsProxyLemmas__option_t) |
58 |
|
{ |
59 |
|
return sets().setsProxyLemmas; |
60 |
|
} |
61 |
51659 |
template <> const options::setsProxyLemmas__option_t::type& Options::operator[]( |
62 |
|
options::setsProxyLemmas__option_t) const |
63 |
|
{ |
64 |
51659 |
return sets().setsProxyLemmas; |
65 |
|
} |
66 |
|
template <> bool Options::wasSetByUser(options::setsProxyLemmas__option_t) const |
67 |
|
{ |
68 |
|
return sets().setsProxyLemmas__setByUser__; |
69 |
|
} |
70 |
|
|
71 |
|
namespace options { |
72 |
|
|
73 |
|
thread_local struct setsExt__option_t setsExt; |
74 |
|
thread_local struct setsInferAsLemmas__option_t setsInferAsLemmas; |
75 |
|
thread_local struct setsProxyLemmas__option_t setsProxyLemmas; |
76 |
|
|
77 |
|
|
78 |
|
|
79 |
|
} // namespace options |
80 |
28191 |
} // namespace cvc5 |
81 |
|
// clang-format on |