GCC Code Coverage Report
Directory: . Exec Total Coverage
File: build-coverage/src/options/fp_options.h Lines: 3 3 100.0 %
Date: 2021-05-22 Branches: 0 0 0.0 %

Line Exec Source
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
 * Contains code for handling command-line options.
14
 *
15
 * For each <module>_options.toml configuration file, mkoptions.py
16
 * expands this template and generates a <module>_options.h file.
17
 */
18
19
#include "cvc5_private.h"
20
21
#ifndef CVC5__OPTIONS__FP_H
22
#define CVC5__OPTIONS__FP_H
23
24
#include "options/options.h"
25
26
// clang-format off
27
28
// clang-format on
29
30
namespace cvc5 {
31
namespace options {
32
33
// clang-format off
34
35
// clang-format on
36
37
#if defined(CVC5_MUZZLED) || defined(CVC5_COMPETITION_MODE)
38
#  define DO_SEMANTIC_CHECKS_BY_DEFAULT false
39
#else /* CVC5_MUZZLED || CVC5_COMPETITION_MODE */
40
#  define DO_SEMANTIC_CHECKS_BY_DEFAULT true
41
#endif /* CVC5_MUZZLED || CVC5_COMPETITION_MODE */
42
43
25268
struct HolderFP
44
{
45
// clang-format off
46
  bool fpExp = false;\
47
  bool fpExp__setByUser__ = false;
48
// clang-format on
49
};
50
51
#undef DO_SEMANTIC_CHECKS_BY_DEFAULT
52
53
// clang-format off
54
extern struct fpExp__option_t
55
{
56
  typedef bool type;
57
  type operator()() const;
58
} thread_local fpExp;
59
// clang-format on
60
61
namespace fp
62
{
63
// clang-format off
64
static constexpr const char* fpExp__name = "fp-exp";
65
// clang-format on
66
}
67
68
}  // namespace options
69
70
// clang-format off
71
template <> options::fpExp__option_t::type& Options::ref(
72
    options::fpExp__option_t);
73
template <> const options::fpExp__option_t::type& Options::operator[](
74
    options::fpExp__option_t) const;
75
template <> bool Options::wasSetByUser(options::fpExp__option_t) const;
76
// clang-format on
77
78
namespace options {
79
// clang-format off
80
2488
inline fpExp__option_t::type fpExp__option_t::operator()() const
81
{
82
2488
  return Options::current()[*this];
83
}
84
// clang-format on
85
86
}  // namespace options
87
}  // namespace cvc5
88
89
#endif /* CVC5__OPTIONS__FP_H */