GCC Code Coverage Report
Directory: . Exec Total Coverage
File: build-coverage/src/options/main_options.cpp Lines: 1 57 1.8 %
Date: 2021-09-10 Branches: 2 32 6.3 %

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
// clang-format off
26
namespace cvc5::options {
27
28
29
30
namespace driver
31
{
32
// clang-format off
33
void setDefaultDumpInstantiations(Options& opts, bool value)
34
{
35
    if (!opts.driver.dumpInstantiationsWasSetByUser) {
36
        opts.driver.dumpInstantiations = value;
37
    }
38
}
39
void setDefaultDumpInstantiationsDebug(Options& opts, bool value)
40
{
41
    if (!opts.driver.dumpInstantiationsDebugWasSetByUser) {
42
        opts.driver.dumpInstantiationsDebug = value;
43
    }
44
}
45
void setDefaultDumpModels(Options& opts, bool value)
46
{
47
    if (!opts.driver.dumpModelsWasSetByUser) {
48
        opts.driver.dumpModels = value;
49
    }
50
}
51
void setDefaultDumpProofs(Options& opts, bool value)
52
{
53
    if (!opts.driver.dumpProofsWasSetByUser) {
54
        opts.driver.dumpProofs = value;
55
    }
56
}
57
void setDefaultDumpUnsatCores(Options& opts, bool value)
58
{
59
    if (!opts.driver.dumpUnsatCoresWasSetByUser) {
60
        opts.driver.dumpUnsatCores = value;
61
    }
62
}
63
void setDefaultDumpUnsatCoresFull(Options& opts, bool value)
64
{
65
    if (!opts.driver.dumpUnsatCoresFullWasSetByUser) {
66
        opts.driver.dumpUnsatCoresFull = value;
67
    }
68
}
69
void setDefaultEarlyExit(Options& opts, bool value)
70
{
71
    if (!opts.driver.earlyExitWasSetByUser) {
72
        opts.driver.earlyExit = value;
73
    }
74
}
75
void setDefaultFilename(Options& opts, std::string value)
76
{
77
    if (!opts.driver.filenameWasSetByUser) {
78
        opts.driver.filename = value;
79
    }
80
}
81
void setDefaultForceNoLimitCpuWhileDump(Options& opts, bool value)
82
{
83
    if (!opts.driver.forceNoLimitCpuWhileDumpWasSetByUser) {
84
        opts.driver.forceNoLimitCpuWhileDump = value;
85
    }
86
}
87
void setDefaultHelp(Options& opts, bool value)
88
{
89
    if (!opts.driver.helpWasSetByUser) {
90
        opts.driver.help = value;
91
    }
92
}
93
void setDefaultInteractive(Options& opts, bool value)
94
{
95
    if (!opts.driver.interactiveWasSetByUser) {
96
        opts.driver.interactive = value;
97
    }
98
}
99
void setDefaultSeed(Options& opts, uint64_t value)
100
{
101
    if (!opts.driver.seedWasSetByUser) {
102
        opts.driver.seed = value;
103
    }
104
}
105
void setDefaultSegvSpin(Options& opts, bool value)
106
{
107
    if (!opts.driver.segvSpinWasSetByUser) {
108
        opts.driver.segvSpin = value;
109
    }
110
}
111
void setDefaultVersion(Options& opts, bool value)
112
{
113
    if (!opts.driver.versionWasSetByUser) {
114
        opts.driver.version = value;
115
    }
116
}
117
// clang-format on
118
}
119
120
29502
}  // namespace cvc5::options
121
// clang-format on