GCC Code Coverage Report
Directory: . Exec Total Coverage
File: build-coverage/src/options/prop_options.h Lines: 10 10 100.0 %
Date: 2021-09-15 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__PROP_H
22
#define CVC5__OPTIONS__PROP_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 HolderPROP
43
{
44
// clang-format off
45
bool minisatDumpDimacs = false;
46
  bool minisatDumpDimacsWasSetByUser = false;
47
  bool minisatUseElim = true;
48
  bool minisatUseElimWasSetByUser = false;
49
  double satRandomFreq = 0.0;
50
  bool satRandomFreqWasSetByUser = false;
51
  uint64_t satRandomSeed = 0;
52
  bool satRandomSeedWasSetByUser = false;
53
  bool sat_refine_conflicts = false;
54
  bool sat_refine_conflictsWasSetByUser = false;
55
  uint64_t satRestartFirst = 25;
56
  bool satRestartFirstWasSetByUser = false;
57
  double satRestartInc = 3.0;
58
  bool satRestartIncWasSetByUser = false;
59
  double satVarDecay = 0.95;
60
  bool satVarDecayWasSetByUser = false;
61
  double satClauseDecay = 0.999;
62
  bool satClauseDecayWasSetByUser = false;
63
// clang-format on
64
};
65
66
#undef DO_SEMANTIC_CHECKS_BY_DEFAULT
67
68
// clang-format off
69
15261
inline bool minisatDumpDimacs() { return Options::current().prop.minisatDumpDimacs; }
70
20018
inline bool minisatUseElim() { return Options::current().prop.minisatUseElim; }
71
15261
inline double satRandomFreq() { return Options::current().prop.satRandomFreq; }
72
15263
inline uint64_t satRandomSeed() { return Options::current().prop.satRandomSeed; }
73
56011
inline bool sat_refine_conflicts() { return Options::current().prop.sat_refine_conflicts; }
74
15261
inline uint64_t satRestartFirst() { return Options::current().prop.satRestartFirst; }
75
15261
inline double satRestartInc() { return Options::current().prop.satRestartInc; }
76
15261
inline double satVarDecay() { return Options::current().prop.satVarDecay; }
77
15261
inline double satClauseDecay() { return Options::current().prop.satClauseDecay; }
78
// clang-format on
79
80
namespace prop
81
{
82
// clang-format off
83
static constexpr const char* minisatDumpDimacs__name = "minisat-dump-dimacs";
84
static constexpr const char* minisatUseElim__name = "minisat-elimination";
85
static constexpr const char* satRandomFreq__name = "random-freq";
86
static constexpr const char* satRandomSeed__name = "random-seed";
87
static constexpr const char* sat_refine_conflicts__name = "refine-conflicts";
88
static constexpr const char* satRestartFirst__name = "restart-int-base";
89
static constexpr const char* satRestartInc__name = "restart-int-inc";
90
91
void setDefaultMinisatDumpDimacs(Options& opts, bool value);
92
void setDefaultMinisatUseElim(Options& opts, bool value);
93
void setDefaultSatRandomFreq(Options& opts, double value);
94
void setDefaultSatRandomSeed(Options& opts, uint64_t value);
95
void setDefaultSat_refine_conflicts(Options& opts, bool value);
96
void setDefaultSatRestartFirst(Options& opts, uint64_t value);
97
void setDefaultSatRestartInc(Options& opts, double value);
98
void setDefaultSatVarDecay(Options& opts, double value);
99
void setDefaultSatClauseDecay(Options& opts, double value);
100
// clang-format on
101
}
102
103
}  // namespace cvc5::options
104
105
#endif /* CVC5__OPTIONS__PROP_H */