GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/smt/env_obj.cpp Lines: 13 13 100.0 %
Date: 2021-09-16 Branches: 5 10 50.0 %

Line Exec Source
1
/******************************************************************************
2
 * Top contributors (to current version):
3
 *   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
 * The base class for everything that nees access to the environment (Env)
14
 * instance, which gives access to global utilities available to internal code.
15
 */
16
17
#include "smt/env_obj.h"
18
19
#include "options/options.h"
20
#include "smt/env.h"
21
#include "theory/rewriter.h"
22
23
namespace cvc5 {
24
25
1168509
EnvObj::EnvObj(Env& env) : d_env(env) {}
26
27
633067
Node EnvObj::rewrite(TNode node) const
28
{
29
633067
  return d_env.getRewriter()->rewrite(node);
30
}
31
32
180350
Node EnvObj::extendedRewrite(TNode node, bool aggr) const
33
{
34
180350
  return d_env.getRewriter()->extendedRewrite(node, aggr);
35
}
36
37
6334103
const LogicInfo& EnvObj::logicInfo() const { return d_env.getLogicInfo(); }
38
39
2330690
const Options& EnvObj::options() const { return d_env.getOptions(); }
40
41
37829536
context::Context* EnvObj::context() const { return d_env.getContext(); }
42
43
855453
context::UserContext* EnvObj::userContext() const
44
{
45
855453
  return d_env.getUserContext();
46
}
47
48
1163378
StatisticsRegistry& EnvObj::statisticsRegistry() const
49
{
50
1163378
  return d_env.getStatisticsRegistry();
51
}
52
53
29577
}  // namespace cvc5