GCC Code Coverage Report
Directory: . Exec Total Coverage
File: build-coverage/src/options/arrays_options.cpp Lines: 1 28 3.6 %
Date: 2021-09-15 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/arrays_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 arrays
32
{
33
// clang-format off
34
void setDefaultArraysConfig(Options& opts, int64_t value)
35
{
36
    if (!opts.arrays.arraysConfigWasSetByUser) opts.arrays.arraysConfig = value;
37
}
38
void setDefaultArraysEagerIndexSplitting(Options& opts, bool value)
39
{
40
    if (!opts.arrays.arraysEagerIndexSplittingWasSetByUser) opts.arrays.arraysEagerIndexSplitting = value;
41
}
42
void setDefaultArraysEagerLemmas(Options& opts, bool value)
43
{
44
    if (!opts.arrays.arraysEagerLemmasWasSetByUser) opts.arrays.arraysEagerLemmas = value;
45
}
46
void setDefaultArraysExp(Options& opts, bool value)
47
{
48
    if (!opts.arrays.arraysExpWasSetByUser) opts.arrays.arraysExp = value;
49
}
50
void setDefaultArraysModelBased(Options& opts, bool value)
51
{
52
    if (!opts.arrays.arraysModelBasedWasSetByUser) opts.arrays.arraysModelBased = value;
53
}
54
void setDefaultArraysOptimizeLinear(Options& opts, bool value)
55
{
56
    if (!opts.arrays.arraysOptimizeLinearWasSetByUser) opts.arrays.arraysOptimizeLinear = value;
57
}
58
void setDefaultArraysPropagate(Options& opts, int64_t value)
59
{
60
    if (!opts.arrays.arraysPropagateWasSetByUser) opts.arrays.arraysPropagate = value;
61
}
62
void setDefaultArraysReduceSharing(Options& opts, bool value)
63
{
64
    if (!opts.arrays.arraysReduceSharingWasSetByUser) opts.arrays.arraysReduceSharing = value;
65
}
66
void setDefaultArraysWeakEquivalence(Options& opts, bool value)
67
{
68
    if (!opts.arrays.arraysWeakEquivalenceWasSetByUser) opts.arrays.arraysWeakEquivalence = value;
69
}
70
// clang-format on
71
}
72
73
29577
}  // namespace cvc5::options