GCC Code Coverage Report
Directory: . Exec Total Coverage
File: build-coverage/src/options/main_options.cpp Lines: 1 46 2.2 %
Date: 2021-09-17 Branches: 2 34 5.9 %

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
 * Option template for option modules.
14
 *
15
 * For each <module>_options.toml configuration file, mkoptions.py
16
 * expands this template and generates a <module>_options.cpp file.
17
 */
18
#include "options/main_options.h"
19
20
#include <iostream>
21
22
#include "base/check.h"
23
#include "options/option_exception.h"
24
25
namespace cvc5::options {
26
27
// clang-format off
28
29
// clang-format on
30
31
namespace driver
32
{
33
// clang-format off
34
void setDefaultDumpDifficulty(Options& opts, bool value)
35
{
36
    if (!opts.driver.dumpDifficultyWasSetByUser) opts.driver.dumpDifficulty = value;
37
}
38
void setDefaultDumpInstantiations(Options& opts, bool value)
39
{
40
    if (!opts.driver.dumpInstantiationsWasSetByUser) opts.driver.dumpInstantiations = value;
41
}
42
void setDefaultDumpInstantiationsDebug(Options& opts, bool value)
43
{
44
    if (!opts.driver.dumpInstantiationsDebugWasSetByUser) opts.driver.dumpInstantiationsDebug = value;
45
}
46
void setDefaultDumpModels(Options& opts, bool value)
47
{
48
    if (!opts.driver.dumpModelsWasSetByUser) opts.driver.dumpModels = value;
49
}
50
void setDefaultDumpProofs(Options& opts, bool value)
51
{
52
    if (!opts.driver.dumpProofsWasSetByUser) opts.driver.dumpProofs = value;
53
}
54
void setDefaultDumpUnsatCores(Options& opts, bool value)
55
{
56
    if (!opts.driver.dumpUnsatCoresWasSetByUser) opts.driver.dumpUnsatCores = value;
57
}
58
void setDefaultDumpUnsatCoresFull(Options& opts, bool value)
59
{
60
    if (!opts.driver.dumpUnsatCoresFullWasSetByUser) opts.driver.dumpUnsatCoresFull = value;
61
}
62
void setDefaultEarlyExit(Options& opts, bool value)
63
{
64
    if (!opts.driver.earlyExitWasSetByUser) opts.driver.earlyExit = value;
65
}
66
void setDefaultFilename(Options& opts, std::string value)
67
{
68
    if (!opts.driver.filenameWasSetByUser) opts.driver.filename = value;
69
}
70
void setDefaultForceNoLimitCpuWhileDump(Options& opts, bool value)
71
{
72
    if (!opts.driver.forceNoLimitCpuWhileDumpWasSetByUser) opts.driver.forceNoLimitCpuWhileDump = value;
73
}
74
void setDefaultHelp(Options& opts, bool value)
75
{
76
    if (!opts.driver.helpWasSetByUser) opts.driver.help = value;
77
}
78
void setDefaultInteractive(Options& opts, bool value)
79
{
80
    if (!opts.driver.interactiveWasSetByUser) opts.driver.interactive = value;
81
}
82
void setDefaultSeed(Options& opts, uint64_t value)
83
{
84
    if (!opts.driver.seedWasSetByUser) opts.driver.seed = value;
85
}
86
void setDefaultSegvSpin(Options& opts, bool value)
87
{
88
    if (!opts.driver.segvSpinWasSetByUser) opts.driver.segvSpin = value;
89
}
90
void setDefaultVersion(Options& opts, bool value)
91
{
92
    if (!opts.driver.versionWasSetByUser) opts.driver.version = value;
93
}
94
// clang-format on
95
}
96
97
29577
}  // namespace cvc5::options