GCC Code Coverage Report
Directory: . Exec Total Coverage
File: build-coverage/src/options/fp_options.cpp Lines: 3 7 42.9 %
Date: 2021-05-22 Branches: 2 4 50.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
 * 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
template <> options::fpExp__option_t::type& Options::ref(
29
    options::fpExp__option_t)
30
{
31
    return fp().fpExp;
32
}
33
2488
template <> const options::fpExp__option_t::type& Options::operator[](
34
    options::fpExp__option_t) const
35
{
36
2488
  return fp().fpExp;
37
}
38
template <> bool Options::wasSetByUser(options::fpExp__option_t) const
39
{
40
  return fp().fpExp__setByUser__;
41
}
42
43
namespace options {
44
45
thread_local struct fpExp__option_t fpExp;
46
47
48
49
}  // namespace options
50
28194
}  // namespace cvc5
51
// clang-format on