blob: 485b29cf6e05b2052dae081949b9206fa5730293 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
/********************* */
/*! \file test_node.h
** \verbatim
** Top contributors (to current version):
** Aina Niemetz
** This file is part of the CVC4 project.
** Copyright (c) 2009-2020 by the authors listed in the file AUTHORS
** in the top-level source directory and their institutional affiliations.
** All rights reserved. See the file COPYING in the top-level source
** directory for licensing information.\endverbatim
**
** \brief Common header for Node unit tests.
**/
#ifndef CVC4__TEST__UNIT__TEST_NODE_H
#define CVC4__TEST__UNIT__TEST_NODE_H
#include "expr/node_manager.h"
#include "smt/smt_engine.h"
#include "smt/smt_engine_scope.h"
#include "test.h"
namespace CVC4 {
namespace test {
class TestNode : public TestInternal
{
protected:
void SetUp() override
{
d_nodeManager.reset(new NodeManager(nullptr));
d_scope.reset(new NodeManagerScope(d_nodeManager.get()));
d_boolTypeNode.reset(new TypeNode(d_nodeManager->booleanType()));
d_bvTypeNode.reset(new TypeNode(d_nodeManager->mkBitVectorType(2)));
d_intTypeNode.reset(new TypeNode(d_nodeManager->integerType()));
d_realTypeNode.reset(new TypeNode(d_nodeManager->realType()));
}
std::unique_ptr<NodeManagerScope> d_scope;
std::unique_ptr<NodeManager> d_nodeManager;
std::unique_ptr<TypeNode> d_boolTypeNode;
std::unique_ptr<TypeNode> d_bvTypeNode;
std::unique_ptr<TypeNode> d_intTypeNode;
std::unique_ptr<TypeNode> d_realTypeNode;
};
} // namespace test
} // namespace CVC4
#endif
|