GCC Code Coverage Report
Directory: . Exec Total Coverage
File: build-coverage/src/options/sep_options.h Lines: 11 11 100.0 %
Date: 2021-08-06 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__SEP_H
22
#define CVC5__OPTIONS__SEP_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
27401
struct HolderSEP
44
{
45
// clang-format off
46
  bool sepCheckNeg = true;
47
  bool sepCheckNegWasSetByUser = false;
48
  bool sepChildRefine = false;
49
  bool sepChildRefineWasSetByUser = false;
50
  bool sepDisequalC = true;
51
  bool sepDisequalCWasSetByUser = false;
52
  bool sepExp = false;
53
  bool sepExpWasSetByUser = false;
54
  bool sepMinimalRefine = false;
55
  bool sepMinimalRefineWasSetByUser = false;
56
  bool sepPreSkolemEmp = false;
57
  bool sepPreSkolemEmpWasSetByUser = false;
58
// clang-format on
59
};
60
61
#undef DO_SEMANTIC_CHECKS_BY_DEFAULT
62
63
// clang-format off
64
extern struct sepCheckNeg__option_t
65
{
66
  typedef bool type;
67
  type operator()() const;
68
} thread_local sepCheckNeg;
69
extern struct sepChildRefine__option_t
70
{
71
  typedef bool type;
72
  type operator()() const;
73
} thread_local sepChildRefine;
74
extern struct sepDisequalC__option_t
75
{
76
  typedef bool type;
77
  type operator()() const;
78
} thread_local sepDisequalC;
79
extern struct sepExp__option_t
80
{
81
  typedef bool type;
82
  type operator()() const;
83
} thread_local sepExp;
84
extern struct sepMinimalRefine__option_t
85
{
86
  typedef bool type;
87
  type operator()() const;
88
} thread_local sepMinimalRefine;
89
extern struct sepPreSkolemEmp__option_t
90
{
91
  typedef bool type;
92
  type operator()() const;
93
} thread_local sepPreSkolemEmp;
94
// clang-format on
95
96
namespace sep
97
{
98
// clang-format off
99
static constexpr const char* sepCheckNeg__name = "sep-check-neg";
100
static constexpr const char* sepChildRefine__name = "sep-child-refine";
101
static constexpr const char* sepDisequalC__name = "sep-deq-c";
102
static constexpr const char* sepExp__name = "sep-exp";
103
static constexpr const char* sepMinimalRefine__name = "sep-min-refine";
104
static constexpr const char* sepPreSkolemEmp__name = "sep-pre-skolem-emp";
105
// clang-format on
106
}
107
108
}  // namespace options
109
110
// clang-format off
111
112
// clang-format on
113
114
namespace options {
115
// clang-format off
116
98
inline bool sepCheckNeg__option_t::operator()() const
117
98
{ return Options::current().sep.sepCheckNeg; }
118
54
inline bool sepChildRefine__option_t::operator()() const
119
54
{ return Options::current().sep.sepChildRefine; }
120
115
inline bool sepDisequalC__option_t::operator()() const
121
115
{ return Options::current().sep.sepDisequalC; }
122
inline bool sepExp__option_t::operator()() const
123
{ return Options::current().sep.sepExp; }
124
388
inline bool sepMinimalRefine__option_t::operator()() const
125
388
{ return Options::current().sep.sepMinimalRefine; }
126
13747
inline bool sepPreSkolemEmp__option_t::operator()() const
127
13747
{ return Options::current().sep.sepPreSkolemEmp; }
128
// clang-format on
129
130
namespace sep
131
{
132
// clang-format off
133
void setDefaultSepCheckNeg(Options& opts, bool value);
134
void setDefaultSepChildRefine(Options& opts, bool value);
135
void setDefaultSepDisequalC(Options& opts, bool value);
136
void setDefaultSepExp(Options& opts, bool value);
137
void setDefaultSepMinimalRefine(Options& opts, bool value);
138
void setDefaultSepPreSkolemEmp(Options& opts, bool value);
139
// clang-format on
140
}
141
142
}  // namespace options
143
}  // namespace cvc5
144
145
#endif /* CVC5__OPTIONS__SEP_H */