GCC Code Coverage Report
Directory: . Exec Total Coverage
File: build-coverage/src/options/main_options.h Lines: 3 3 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__DRIVER_H
22
#define CVC5__OPTIONS__DRIVER_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
82287
struct HolderDRIVER
43
{
44
// clang-format off
45
bool dumpDifficulty = false;
46
  bool dumpDifficultyWasSetByUser = false;
47
  bool dumpInstantiations = false;
48
  bool dumpInstantiationsWasSetByUser = false;
49
  bool dumpInstantiationsDebug = false;
50
  bool dumpInstantiationsDebugWasSetByUser = false;
51
  bool dumpModels = false;
52
  bool dumpModelsWasSetByUser = false;
53
  bool dumpProofs = false;
54
  bool dumpProofsWasSetByUser = false;
55
  bool dumpUnsatCores = false;
56
  bool dumpUnsatCoresWasSetByUser = false;
57
  bool earlyExit = true;
58
  bool earlyExitWasSetByUser = false;
59
  std::string filename;
60
  bool filenameWasSetByUser = false;
61
  bool forceNoLimitCpuWhileDump = false;
62
  bool forceNoLimitCpuWhileDumpWasSetByUser = false;
63
  bool help;
64
  bool helpWasSetByUser = false;
65
  bool interactive;
66
  bool interactiveWasSetByUser = false;
67
  bool printUnsatCoresFull = false;
68
  bool printUnsatCoresFullWasSetByUser = false;
69
  uint64_t seed = 0;
70
  bool seedWasSetByUser = false;
71
  bool segvSpin = false;
72
  bool segvSpinWasSetByUser = false;
73
// clang-format on
74
};
75
76
#undef DO_SEMANTIC_CHECKS_BY_DEFAULT
77
78
// clang-format off
79
inline bool dumpDifficulty() { return Options::current().driver.dumpDifficulty; }
80
inline bool dumpInstantiations() { return Options::current().driver.dumpInstantiations; }
81
7
inline bool dumpInstantiationsDebug() { return Options::current().driver.dumpInstantiationsDebug; }
82
inline bool dumpModels() { return Options::current().driver.dumpModels; }
83
inline bool dumpProofs() { return Options::current().driver.dumpProofs; }
84
inline bool dumpUnsatCores() { return Options::current().driver.dumpUnsatCores; }
85
inline bool earlyExit() { return Options::current().driver.earlyExit; }
86
inline std::string filename() { return Options::current().driver.filename; }
87
inline bool forceNoLimitCpuWhileDump() { return Options::current().driver.forceNoLimitCpuWhileDump; }
88
inline bool help() { return Options::current().driver.help; }
89
inline bool interactive() { return Options::current().driver.interactive; }
90
12
inline bool printUnsatCoresFull() { return Options::current().driver.printUnsatCoresFull; }
91
inline uint64_t seed() { return Options::current().driver.seed; }
92
inline bool segvSpin() { return Options::current().driver.segvSpin; }
93
// clang-format on
94
95
}  // namespace cvc5::options
96
97
#endif /* CVC5__OPTIONS__DRIVER_H */