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 |
1168626 |
EnvObj::EnvObj(Env& env) : d_env(env) {} |
26 |
|
|
27 |
1495850 |
Node EnvObj::rewrite(TNode node) const |
28 |
|
{ |
29 |
1495850 |
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 |
5968534 |
const LogicInfo& EnvObj::logicInfo() const { return d_env.getLogicInfo(); } |
38 |
|
|
39 |
34504748 |
const Options& EnvObj::options() const { return d_env.getOptions(); } |
40 |
|
|
41 |
35885419 |
context::Context* EnvObj::context() const { return d_env.getContext(); } |
42 |
|
|
43 |
835651 |
context::UserContext* EnvObj::userContext() const |
44 |
|
{ |
45 |
835651 |
return d_env.getUserContext(); |
46 |
|
} |
47 |
|
|
48 |
1163495 |
StatisticsRegistry& EnvObj::statisticsRegistry() const |
49 |
|
{ |
50 |
1163495 |
return d_env.getStatisticsRegistry(); |
51 |
|
} |
52 |
|
|
53 |
29589 |
} // namespace cvc5 |