GCC Code Coverage Report
Directory: . Exec Total Coverage
File: build-coverage/src/options/expr_options.cpp Lines: 11 19 57.9 %
Date: 2021-05-22 Branches: 2 4 50.0 %

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/expr_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 {
27
28
template <> options::defaultDagThresh__option_t::type& Options::ref(
29
    options::defaultDagThresh__option_t)
30
{
31
    return expr().defaultDagThresh;
32
}
33
11300
template <> const options::defaultDagThresh__option_t::type& Options::operator[](
34
    options::defaultDagThresh__option_t) const
35
{
36
11300
  return expr().defaultDagThresh;
37
}
38
10094
template <> bool Options::wasSetByUser(options::defaultDagThresh__option_t) const
39
{
40
10094
  return expr().defaultDagThresh__setByUser__;
41
}
42
template <> options::defaultExprDepth__option_t::type& Options::ref(
43
    options::defaultExprDepth__option_t)
44
{
45
    return expr().defaultExprDepth;
46
}
47
53936
template <> const options::defaultExprDepth__option_t::type& Options::operator[](
48
    options::defaultExprDepth__option_t) const
49
{
50
53936
  return expr().defaultExprDepth;
51
}
52
10094
template <> bool Options::wasSetByUser(options::defaultExprDepth__option_t) const
53
{
54
10094
  return expr().defaultExprDepth__setByUser__;
55
}
56
template <> options::typeChecking__option_t::type& Options::ref(
57
    options::typeChecking__option_t)
58
{
59
    return expr().typeChecking;
60
}
61
98614
template <> const options::typeChecking__option_t::type& Options::operator[](
62
    options::typeChecking__option_t) const
63
{
64
98614
  return expr().typeChecking;
65
}
66
template <> bool Options::wasSetByUser(options::typeChecking__option_t) const
67
{
68
  return expr().typeChecking__setByUser__;
69
}
70
71
namespace options {
72
73
thread_local struct defaultDagThresh__option_t defaultDagThresh;
74
thread_local struct defaultExprDepth__option_t defaultExprDepth;
75
thread_local struct typeChecking__option_t typeChecking;
76
77
78
79
}  // namespace options
80
28194
}  // namespace cvc5
81
// clang-format on