GCC Code Coverage Report
Directory: . Exec Total Coverage
File: build-coverage/src/options/parser_options.cpp Lines: 1 19 5.3 %
Date: 2021-09-17 Branches: 2 16 12.5 %

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/parser_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 parser
32
{
33
// clang-format off
34
void setDefaultFilesystemAccess(Options& opts, bool value)
35
{
36
    if (!opts.parser.filesystemAccessWasSetByUser) opts.parser.filesystemAccess = value;
37
}
38
void setDefaultForceLogicString(Options& opts, std::string value)
39
{
40
    if (!opts.parser.forceLogicStringWasSetByUser) opts.parser.forceLogicString = value;
41
}
42
void setDefaultGlobalDeclarations(Options& opts, bool value)
43
{
44
    if (!opts.parser.globalDeclarationsWasSetByUser) opts.parser.globalDeclarations = value;
45
}
46
void setDefaultMemoryMap(Options& opts, bool value)
47
{
48
    if (!opts.parser.memoryMapWasSetByUser) opts.parser.memoryMap = value;
49
}
50
void setDefaultSemanticChecks(Options& opts, bool value)
51
{
52
    if (!opts.parser.semanticChecksWasSetByUser) opts.parser.semanticChecks = value;
53
}
54
void setDefaultStrictParsing(Options& opts, bool value)
55
{
56
    if (!opts.parser.strictParsingWasSetByUser) opts.parser.strictParsing = value;
57
}
58
// clang-format on
59
}
60
61
29577
}  // namespace cvc5::options