GCC Code Coverage Report
Directory: . Exec Total Coverage
File: build-coverage/src/options/sep_options.h Lines: 6 6 100.0 %
Date: 2021-09-10 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
24059
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 sepExp = false;
52
  bool sepExpWasSetByUser = false;
53
  bool sepMinimalRefine = false;
54
  bool sepMinimalRefineWasSetByUser = false;
55
  bool sepPreSkolemEmp = false;
56
  bool sepPreSkolemEmpWasSetByUser = false;
57
// clang-format on
58
};
59
60
#undef DO_SEMANTIC_CHECKS_BY_DEFAULT
61
62
// clang-format off
63
98
inline bool sepCheckNeg() { return Options::current().sep.sepCheckNeg; }
64
54
inline bool sepChildRefine() { return Options::current().sep.sepChildRefine; }
65
115
inline bool sepDisequalC() { return Options::current().sep.sepDisequalC; }
66
inline bool sepExp() { return Options::current().sep.sepExp; }
67
388
inline bool sepMinimalRefine() { return Options::current().sep.sepMinimalRefine; }
68
13778
inline bool sepPreSkolemEmp() { return Options::current().sep.sepPreSkolemEmp; }
69
// clang-format on
70
71
namespace sep
72
{
73
// clang-format off
74
static constexpr const char* sepCheckNeg__name = "sep-check-neg";
75
static constexpr const char* sepChildRefine__name = "sep-child-refine";
76
static constexpr const char* sepDisequalC__name = "sep-deq-c";
77
static constexpr const char* sepExp__name = "sep-exp";
78
static constexpr const char* sepMinimalRefine__name = "sep-min-refine";
79
static constexpr const char* sepPreSkolemEmp__name = "sep-pre-skolem-emp";
80
81
void setDefaultSepCheckNeg(Options& opts, bool value);void setDefaultSepChildRefine(Options& opts, bool value);void setDefaultSepDisequalC(Options& opts, bool value);void setDefaultSepExp(Options& opts, bool value);void setDefaultSepMinimalRefine(Options& opts, bool value);void setDefaultSepPreSkolemEmp(Options& opts, bool value);
82
// clang-format on
83
}
84
85
}  // namespace cvc5::options
86
87
#endif /* CVC5__OPTIONS__SEP_H */