Branch data Line data Source code
1 : : /****************************************************************************** 2 : : * This file is part of the cvc5 project. 3 : : * 4 : : * Copyright (c) 2009-2026 by the authors listed in the file AUTHORS 5 : : * in the top-level source directory and their institutional affiliations. 6 : : * All rights reserved. See the file COPYING in the top-level source 7 : : * directory for licensing information. 8 : : * **************************************************************************** 9 : : * 10 : : * Common header for Node unit tests. 11 : : */ 12 : : 13 : : #ifndef CVC5__TEST__UNIT__TEST_NODE_H 14 : : #define CVC5__TEST__UNIT__TEST_NODE_H 15 : : 16 : : #include "expr/node_manager.h" 17 : : #include "expr/skolem_manager.h" 18 : : #include "smt/solver_engine.h" 19 : : #include "test.h" 20 : : 21 : : namespace cvc5::internal { 22 : : namespace test { 23 : : 24 : : class TestNode : public TestInternal 25 : : { 26 : : protected: 27 : 112 : void SetUp() override 28 : : { 29 : 112 : d_nodeManager = std::make_unique<NodeManager>(); 30 : 112 : d_skolemManager = d_nodeManager->getSkolemManager(); 31 : 112 : d_boolTypeNode.reset(new TypeNode(d_nodeManager->booleanType())); 32 : 112 : d_bvTypeNode.reset(new TypeNode(d_nodeManager->mkBitVectorType(2))); 33 : 112 : d_intTypeNode.reset(new TypeNode(d_nodeManager->integerType())); 34 : 112 : d_realTypeNode.reset(new TypeNode(d_nodeManager->realType())); 35 : 112 : } 36 : : 37 : : std::unique_ptr<NodeManager> d_nodeManager; 38 : : SkolemManager* d_skolemManager; 39 : : std::unique_ptr<TypeNode> d_boolTypeNode; 40 : : std::unique_ptr<TypeNode> d_bvTypeNode; 41 : : std::unique_ptr<TypeNode> d_intTypeNode; 42 : : std::unique_ptr<TypeNode> d_realTypeNode; 43 : : }; 44 : : 45 : : } // namespace test 46 : : } // namespace cvc5::internal 47 : : #endif