GCC Code Coverage Report
Directory: . Exec Total Coverage
File: build-coverage/src/options/uf_options.h Lines: 7 7 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__UF_H
22
#define CVC5__OPTIONS__UF_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 UfssMode
34
{
35
  NO_MINIMAL, NONE, FULL,
36
  __MAX_VALUE = FULL
37
};
38
std::ostream& operator<<(std::ostream& os, UfssMode mode);
39
UfssMode stringToUfssMode(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 HolderUF
50
{
51
// clang-format off
52
bool ufSymmetryBreaker = true;
53
  bool ufSymmetryBreakerWasSetByUser = false;
54
  bool ufHoExt = true;
55
  bool ufHoExtWasSetByUser = false;
56
  UfssMode ufssMode = UfssMode::FULL;
57
  bool ufssModeWasSetByUser = false;
58
  int64_t ufssAbortCardinality = -1;
59
  bool ufssAbortCardinalityWasSetByUser = false;
60
  bool ufssFairness = true;
61
  bool ufssFairnessWasSetByUser = false;
62
  bool ufssFairnessMonotone = false;
63
  bool ufssFairnessMonotoneWasSetByUser = false;
64
// clang-format on
65
};
66
67
#undef DO_SEMANTIC_CHECKS_BY_DEFAULT
68
69
// clang-format off
70
271538
inline bool ufSymmetryBreaker() { return Options::current().uf.ufSymmetryBreaker; }
71
1297
inline bool ufHoExt() { return Options::current().uf.ufHoExt; }
72
927320
inline UfssMode ufssMode() { return Options::current().uf.ufssMode; }
73
7516
inline int64_t ufssAbortCardinality() { return Options::current().uf.ufssAbortCardinality; }
74
13011
inline bool ufssFairness() { return Options::current().uf.ufssFairness; }
75
89333
inline bool ufssFairnessMonotone() { return Options::current().uf.ufssFairnessMonotone; }
76
// clang-format on
77
78
}  // namespace cvc5::options
79
80
#endif /* CVC5__OPTIONS__UF_H */