GCC Code Coverage Report
Directory: . Exec Total Coverage
File: build-coverage/src/options/datatypes_options.h Lines: 14 14 100.0 %
Date: 2021-11-07 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__DATATYPES_H
22
#define CVC5__OPTIONS__DATATYPES_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
enum class SygusFairMode
34
{
35
  DT_HEIGHT_PRED, NONE, DT_SIZE_PRED, DT_SIZE, DIRECT,
36
  __MAX_VALUE = DIRECT
37
};
38
std::ostream& operator<<(std::ostream& os, SygusFairMode mode);
39
SygusFairMode stringToSygusFairMode(const std::string& optarg);
40
41
// clang-format on
42
43
#if defined(CVC5_MUZZLED) || defined(CVC5_COMPETITION_MODE)
44
#  define DO_SEMANTIC_CHECKS_BY_DEFAULT false
45
#else /* CVC5_MUZZLED || CVC5_COMPETITION_MODE */
46
#  define DO_SEMANTIC_CHECKS_BY_DEFAULT true
47
#endif /* CVC5_MUZZLED || CVC5_COMPETITION_MODE */
48
49
30748
struct HolderDATATYPES
50
{
51
// clang-format off
52
bool cdtBisimilar = true;
53
  bool cdtBisimilarWasSetByUser = false;
54
  bool dtBinarySplit = false;
55
  bool dtBinarySplitWasSetByUser = false;
56
  bool dtBlastSplits = false;
57
  bool dtBlastSplitsWasSetByUser = false;
58
  bool dtCyclic = true;
59
  bool dtCyclicWasSetByUser = false;
60
  bool dtForceAssignment = false;
61
  bool dtForceAssignmentWasSetByUser = false;
62
  bool dtInferAsLemmas = false;
63
  bool dtInferAsLemmasWasSetByUser = false;
64
  bool dtNestedRec = false;
65
  bool dtNestedRecWasSetByUser = false;
66
  bool dtPoliteOptimize = true;
67
  bool dtPoliteOptimizeWasSetByUser = false;
68
  bool dtRewriteErrorSel = false;
69
  bool dtRewriteErrorSelWasSetByUser = false;
70
  bool dtSharedSelectors = true;
71
  bool dtSharedSelectorsWasSetByUser = false;
72
  int64_t sygusAbortSize = -1;
73
  bool sygusAbortSizeWasSetByUser = false;
74
  SygusFairMode sygusFair = SygusFairMode::DT_SIZE;
75
  bool sygusFairWasSetByUser = false;
76
  bool sygusFairMax = true;
77
  bool sygusFairMaxWasSetByUser = false;
78
  bool sygusSymBreak = true;
79
  bool sygusSymBreakWasSetByUser = false;
80
  bool sygusSymBreakAgg = true;
81
  bool sygusSymBreakAggWasSetByUser = false;
82
  bool sygusSymBreakDynamic = true;
83
  bool sygusSymBreakDynamicWasSetByUser = false;
84
  bool sygusSymBreakLazy = true;
85
  bool sygusSymBreakLazyWasSetByUser = false;
86
  bool sygusSymBreakPbe = true;
87
  bool sygusSymBreakPbeWasSetByUser = false;
88
  bool sygusSymBreakRlv = true;
89
  bool sygusSymBreakRlvWasSetByUser = false;
90
// clang-format on
91
};
92
93
#undef DO_SEMANTIC_CHECKS_BY_DEFAULT
94
95
// clang-format off
96
115
inline bool cdtBisimilar() { return Options::current().datatypes.cdtBisimilar; }
97
1720
inline bool dtBinarySplit() { return Options::current().datatypes.dtBinarySplit; }
98
1720
inline bool dtBlastSplits() { return Options::current().datatypes.dtBlastSplits; }
99
197575
inline bool dtCyclic() { return Options::current().datatypes.dtCyclic; }
100
19622
inline bool dtForceAssignment() { return Options::current().datatypes.dtForceAssignment; }
101
520578
inline bool dtInferAsLemmas() { return Options::current().datatypes.dtInferAsLemmas; }
102
78101
inline bool dtNestedRec() { return Options::current().datatypes.dtNestedRec; }
103
186613
inline bool dtPoliteOptimize() { return Options::current().datatypes.dtPoliteOptimize; }
104
5122
inline bool dtRewriteErrorSel() { return Options::current().datatypes.dtRewriteErrorSel; }
105
1255098
inline bool dtSharedSelectors() { return Options::current().datatypes.dtSharedSelectors; }
106
275
inline int64_t sygusAbortSize() { return Options::current().datatypes.sygusAbortSize; }
107
inline SygusFairMode sygusFair() { return Options::current().datatypes.sygusFair; }
108
inline bool sygusFairMax() { return Options::current().datatypes.sygusFairMax; }
109
inline bool sygusSymBreak() { return Options::current().datatypes.sygusSymBreak; }
110
329
inline bool sygusSymBreakAgg() { return Options::current().datatypes.sygusSymBreakAgg; }
111
61
inline bool sygusSymBreakDynamic() { return Options::current().datatypes.sygusSymBreakDynamic; }
112
inline bool sygusSymBreakLazy() { return Options::current().datatypes.sygusSymBreakLazy; }
113
inline bool sygusSymBreakPbe() { return Options::current().datatypes.sygusSymBreakPbe; }
114
inline bool sygusSymBreakRlv() { return Options::current().datatypes.sygusSymBreakRlv; }
115
// clang-format on
116
117
}  // namespace cvc5::options
118
119
#endif /* CVC5__OPTIONS__DATATYPES_H */