GCC Code Coverage Report
Directory: . Exec Total Coverage
File: build-coverage/src/options/fp_options.cpp Lines: 3 8 37.5 %
Date: 2021-03-23 Branches: 2 4 50.0 %

Line Exec Source
1
/*********************                                                        */
2
/*! \file module_template.cpp
3
 ** \verbatim
4
 ** Top contributors (to current version):
5
 **   Mathias Preiner
6
 ** This file is part of the CVC4 project.
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.\endverbatim
11
 **
12
 ** \brief Option template for option modules.
13
 **
14
 ** For each <module>_options.toml configuration file, mkoptions.py
15
 ** expands this template and generates a <module>_options.cpp file.
16
 **/
17
18
#include "options/options_holder.h"
19
#include "base/check.h"
20
21
namespace CVC4 {
22
23
template <> void Options::set(
24
    options::fpExp__option_t,
25
    const options::fpExp__option_t::type& x)
26
{
27
  d_holder->fpExp = x;
28
}
29
2636
template <> const options::fpExp__option_t::type& Options::operator[](
30
    options::fpExp__option_t) const
31
{
32
2636
  return d_holder->fpExp;
33
}
34
template <> bool Options::wasSetByUser(options::fpExp__option_t) const
35
{
36
  return d_holder->fpExp__setByUser__;
37
}
38
39
40
namespace options {
41
42
thread_local struct fpExp__option_t fpExp;
43
44
45
46
}  // namespace options
47
26685
}  // namespace CVC4