GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/smt/env_obj.cpp Lines: 8 8 100.0 %
Date: 2021-09-07 Branches: 4 8 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
711823
EnvObj::EnvObj(Env& env) : d_env(env) {}
26
27
284811
Node EnvObj::rewrite(TNode node) { return d_env.getRewriter()->rewrite(node); }
28
29
6184018
const LogicInfo& EnvObj::logicInfo() const { return d_env.getLogicInfo(); }
30
31
51
const Options& EnvObj::options() const { return d_env.getOptions(); }
32
33
15352110
context::Context* EnvObj::context() const { return d_env.getContext(); }
34
35
559233
context::UserContext* EnvObj::userContext() const
36
{
37
559233
  return d_env.getUserContext();
38
}
39
40
29502
}  // namespace cvc5