GCC Code Coverage Report
Directory: . Exec Total Coverage
File: build-coverage/src/options/parser_options.cpp Lines: 13 25 52.0 %
Date: 2021-03-22 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
5686
template <> const options::filesystemAccess__option_t::type& Options::operator[](
24
    options::filesystemAccess__option_t) const
25
{
26
5686
  return d_holder->filesystemAccess;
27
}
28
template <> bool Options::wasSetByUser(options::filesystemAccess__option_t) const
29
{
30
  return d_holder->filesystemAccess__setByUser__;
31
}
32
9
template <> const options::forceLogicString__option_t::type& Options::operator[](
33
    options::forceLogicString__option_t) const
34
{
35
9
  return d_holder->forceLogicString;
36
}
37
5698
template <> bool Options::wasSetByUser(options::forceLogicString__option_t) const
38
{
39
5698
  return d_holder->forceLogicString__setByUser__;
40
}
41
template <> const options::globalDeclarations__option_t::type& Options::operator[](
42
    options::globalDeclarations__option_t) const
43
{
44
  return d_holder->globalDeclarations;
45
}
46
template <> bool Options::wasSetByUser(options::globalDeclarations__option_t) const
47
{
48
  return d_holder->globalDeclarations__setByUser__;
49
}
50
5686
template <> const options::memoryMap__option_t::type& Options::operator[](
51
    options::memoryMap__option_t) const
52
{
53
5686
  return d_holder->memoryMap;
54
}
55
template <> bool Options::wasSetByUser(options::memoryMap__option_t) const
56
{
57
  return d_holder->memoryMap__setByUser__;
58
}
59
5686
template <> const options::semanticChecks__option_t::type& Options::operator[](
60
    options::semanticChecks__option_t) const
61
{
62
5686
  return d_holder->semanticChecks;
63
}
64
template <> bool Options::wasSetByUser(options::semanticChecks__option_t) const
65
{
66
  return d_holder->semanticChecks__setByUser__;
67
}
68
5686
template <> const options::strictParsing__option_t::type& Options::operator[](
69
    options::strictParsing__option_t) const
70
{
71
5686
  return d_holder->strictParsing;
72
}
73
template <> bool Options::wasSetByUser(options::strictParsing__option_t) const
74
{
75
  return d_holder->strictParsing__setByUser__;
76
}
77
78
79
namespace options {
80
81
thread_local struct filesystemAccess__option_t filesystemAccess;
82
thread_local struct forceLogicString__option_t forceLogicString;
83
thread_local struct globalDeclarations__option_t globalDeclarations;
84
thread_local struct memoryMap__option_t memoryMap;
85
thread_local struct semanticChecks__option_t semanticChecks;
86
thread_local struct strictParsing__option_t strictParsing;
87
88
89
90
}  // namespace options
91
26676
}  // namespace CVC4