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/fp_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 |
|
|
29 |
|
|
30 |
|
namespace options { |
31 |
|
|
32 |
|
thread_local struct fpExp__option_t fpExp; |
33 |
|
thread_local struct fpLazyWb__option_t fpLazyWb; |
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
namespace fp |
39 |
|
{ |
40 |
|
// clang-format off |
41 |
|
void setDefaultFpExp(Options& opts, bool value) |
42 |
|
{ |
43 |
|
if (!opts.fp.fpExpWasSetByUser) { |
44 |
|
opts.fp.fpExp = value; |
45 |
|
} |
46 |
|
} |
47 |
|
void setDefaultFpLazyWb(Options& opts, bool value) |
48 |
|
{ |
49 |
|
if (!opts.fp.fpLazyWbWasSetByUser) { |
50 |
|
opts.fp.fpLazyWb = value; |
51 |
|
} |
52 |
|
} |
53 |
|
// clang-format on |
54 |
|
} |
55 |
|
|
56 |
|
} // namespace options |
57 |
29322 |
} // namespace cvc5 |
58 |
|
// clang-format on |