GCC Code Coverage Report
Directory: . Exec Total Coverage
File: build-coverage/src/options/sep_options.h Lines: 6 6 100.0 %
Date: 2021-09-17 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::options {
31
32
// clang-format off
33
34
// clang-format on
35
36
#if defined(CVC5_MUZZLED) || defined(CVC5_COMPETITION_MODE)
37
#  define DO_SEMANTIC_CHECKS_BY_DEFAULT false
38
#else /* CVC5_MUZZLED || CVC5_COMPETITION_MODE */
39
#  define DO_SEMANTIC_CHECKS_BY_DEFAULT true
40
#endif /* CVC5_MUZZLED || CVC5_COMPETITION_MODE */
41
42
24139
struct HolderSEP
43
{
44
// clang-format off
45
bool sepCheckNeg = true;
46
  bool sepCheckNegWasSetByUser = false;
47
  bool sepChildRefine = false;
48
  bool sepChildRefineWasSetByUser = false;
49
  bool sepDisequalC = true;
50
  bool sepDisequalCWasSetByUser = false;
51
  bool sepMinimalRefine = false;
52
  bool sepMinimalRefineWasSetByUser = false;
53
  bool sepPreSkolemEmp = false;
54
  bool sepPreSkolemEmpWasSetByUser = false;
55
// clang-format on
56
};
57
58
#undef DO_SEMANTIC_CHECKS_BY_DEFAULT
59
60
// clang-format off
61
98
inline bool sepCheckNeg() { return Options::current().sep.sepCheckNeg; }
62
54
inline bool sepChildRefine() { return Options::current().sep.sepChildRefine; }
63
115
inline bool sepDisequalC() { return Options::current().sep.sepDisequalC; }
64
388
inline bool sepMinimalRefine() { return Options::current().sep.sepMinimalRefine; }
65
13799
inline bool sepPreSkolemEmp() { return Options::current().sep.sepPreSkolemEmp; }
66
// clang-format on
67
68
namespace sep
69
{
70
// clang-format off
71
static constexpr const char* sepCheckNeg__name = "sep-check-neg";
72
static constexpr const char* sepChildRefine__name = "sep-child-refine";
73
static constexpr const char* sepDisequalC__name = "sep-deq-c";
74
static constexpr const char* sepMinimalRefine__name = "sep-min-refine";
75
static constexpr const char* sepPreSkolemEmp__name = "sep-pre-skolem-emp";
76
77
void setDefaultSepCheckNeg(Options& opts, bool value);
78
void setDefaultSepChildRefine(Options& opts, bool value);
79
void setDefaultSepDisequalC(Options& opts, bool value);
80
void setDefaultSepMinimalRefine(Options& opts, bool value);
81
void setDefaultSepPreSkolemEmp(Options& opts, bool value);
82
// clang-format on
83
}
84
85
}  // namespace cvc5::options
86
87
#endif /* CVC5__OPTIONS__SEP_H */