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 |
850990 |
EnvObj::EnvObj(Env& env) : d_env(env) {} |
26 |
|
|
27 |
297746 |
Node EnvObj::rewrite(TNode node) { return d_env.getRewriter()->rewrite(node); } |
28 |
|
|
29 |
5710946 |
const LogicInfo& EnvObj::logicInfo() const { return d_env.getLogicInfo(); } |
30 |
|
|
31 |
61967 |
const Options& EnvObj::options() const { return d_env.getOptions(); } |
32 |
|
|
33 |
33537408 |
context::Context* EnvObj::context() const { return d_env.getContext(); } |
34 |
|
|
35 |
862059 |
context::UserContext* EnvObj::userContext() const |
36 |
|
{ |
37 |
862059 |
return d_env.getUserContext(); |
38 |
|
} |
39 |
|
|
40 |
29499 |
} // namespace cvc5 |