GCC Code Coverage Report
Directory: . Exec Total Coverage
File: build-coverage/src/options/prop_options.cpp Lines: 1 37 2.7 %
Date: 2021-08-14 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
// clang-format off
26
namespace cvc5::options {
27
28
29
30
namespace prop
31
{
32
// clang-format off
33
void setDefaultMinisatDumpDimacs(Options& opts, bool value)
34
{
35
    if (!opts.prop.minisatDumpDimacsWasSetByUser) {
36
        opts.prop.minisatDumpDimacs = value;
37
    }
38
}
39
void setDefaultMinisatUseElim(Options& opts, bool value)
40
{
41
    if (!opts.prop.minisatUseElimWasSetByUser) {
42
        opts.prop.minisatUseElim = value;
43
    }
44
}
45
void setDefaultSatRandomFreq(Options& opts, double value)
46
{
47
    if (!opts.prop.satRandomFreqWasSetByUser) {
48
        opts.prop.satRandomFreq = value;
49
    }
50
}
51
void setDefaultSatRandomSeed(Options& opts, uint64_t value)
52
{
53
    if (!opts.prop.satRandomSeedWasSetByUser) {
54
        opts.prop.satRandomSeed = value;
55
    }
56
}
57
void setDefaultSat_refine_conflicts(Options& opts, bool value)
58
{
59
    if (!opts.prop.sat_refine_conflictsWasSetByUser) {
60
        opts.prop.sat_refine_conflicts = value;
61
    }
62
}
63
void setDefaultSatRestartFirst(Options& opts, uint64_t value)
64
{
65
    if (!opts.prop.satRestartFirstWasSetByUser) {
66
        opts.prop.satRestartFirst = value;
67
    }
68
}
69
void setDefaultSatRestartInc(Options& opts, double value)
70
{
71
    if (!opts.prop.satRestartIncWasSetByUser) {
72
        opts.prop.satRestartInc = value;
73
    }
74
}
75
void setDefaultSatClauseDecay(Options& opts, double value)
76
{
77
    if (!opts.prop.satClauseDecayWasSetByUser) {
78
        opts.prop.satClauseDecay = value;
79
    }
80
}
81
void setDefaultSatVarDecay(Options& opts, double value)
82
{
83
    if (!opts.prop.satVarDecayWasSetByUser) {
84
        opts.prop.satVarDecay = value;
85
    }
86
}
87
// clang-format on
88
}
89
90
29340
}  // namespace cvc5::options
91
// clang-format on