1 |
|
/****************************************************************************** |
2 |
|
* Top contributors (to current version): |
3 |
|
* Aina Niemetz, Andrew Reynolds |
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 |
|
* Common header for unit tests involving env. |
14 |
|
*/ |
15 |
|
|
16 |
|
#ifndef CVC5__TEST__UNIT__TEST_NODE_H |
17 |
|
#define CVC5__TEST__UNIT__TEST_NODE_H |
18 |
|
|
19 |
|
#include "expr/node_manager.h" |
20 |
|
#include "expr/skolem_manager.h" |
21 |
|
#include "options/options.h" |
22 |
|
#include "smt/env.h" |
23 |
|
#include "smt/smt_engine.h" |
24 |
|
#include "smt/smt_engine_scope.h" |
25 |
|
#include "test.h" |
26 |
|
|
27 |
|
namespace cvc5 { |
28 |
|
namespace test { |
29 |
|
|
30 |
4 |
class TestEnv : public TestInternal |
31 |
|
{ |
32 |
|
protected: |
33 |
2 |
void SetUp() override |
34 |
|
{ |
35 |
2 |
d_options.reset(new Options()); |
36 |
2 |
d_nodeManager.reset(new NodeManager()); |
37 |
2 |
d_env.reset(new Env(d_nodeManager.get(), d_options.get())); |
38 |
2 |
} |
39 |
|
|
40 |
|
|
41 |
|
std::unique_ptr<Options> d_options; |
42 |
|
std::unique_ptr<NodeManager> d_nodeManager; |
43 |
|
std::unique_ptr<Env> d_env; |
44 |
|
}; |
45 |
|
|
46 |
|
} // namespace test |
47 |
|
} // namespace cvc5 |
48 |
|
#endif |