GCC Code Coverage Report
Directory: . Exec Total Coverage
File: build-coverage/src/options/prop_options.cpp Lines: 1 28 3.6 %
Date: 2021-09-17 Branches: 2 22 9.1 %

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/prop_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 prop
32
{
33
// clang-format off
34
void setDefaultMinisatDumpDimacs(Options& opts, bool value)
35
{
36
    if (!opts.prop.minisatDumpDimacsWasSetByUser) opts.prop.minisatDumpDimacs = value;
37
}
38
void setDefaultMinisatUseElim(Options& opts, bool value)
39
{
40
    if (!opts.prop.minisatUseElimWasSetByUser) opts.prop.minisatUseElim = value;
41
}
42
void setDefaultSatRandomFreq(Options& opts, double value)
43
{
44
    if (!opts.prop.satRandomFreqWasSetByUser) opts.prop.satRandomFreq = value;
45
}
46
void setDefaultSatRandomSeed(Options& opts, uint64_t value)
47
{
48
    if (!opts.prop.satRandomSeedWasSetByUser) opts.prop.satRandomSeed = value;
49
}
50
void setDefaultSat_refine_conflicts(Options& opts, bool value)
51
{
52
    if (!opts.prop.sat_refine_conflictsWasSetByUser) opts.prop.sat_refine_conflicts = value;
53
}
54
void setDefaultSatRestartFirst(Options& opts, uint64_t value)
55
{
56
    if (!opts.prop.satRestartFirstWasSetByUser) opts.prop.satRestartFirst = value;
57
}
58
void setDefaultSatRestartInc(Options& opts, double value)
59
{
60
    if (!opts.prop.satRestartIncWasSetByUser) opts.prop.satRestartInc = value;
61
}
62
void setDefaultSatVarDecay(Options& opts, double value)
63
{
64
    if (!opts.prop.satVarDecayWasSetByUser) opts.prop.satVarDecay = value;
65
}
66
void setDefaultSatClauseDecay(Options& opts, double value)
67
{
68
    if (!opts.prop.satClauseDecayWasSetByUser) opts.prop.satClauseDecay = value;
69
}
70
// clang-format on
71
}
72
73
29577
}  // namespace cvc5::options