Branch data Line data Source code
1 : : /****************************************************************************** 2 : : * Top contributors (to current version): 3 : : * Gereon Kremer, Andres Noetzli, Andrew Reynolds 4 : : * 5 : : * This file is part of the cvc5 project. 6 : : * 7 : : * Copyright (c) 2009-2024 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/solver_engine.h" 24 : : #include "test.h" 25 : : 26 : : namespace cvc5::internal { 27 : : namespace test { 28 : : 29 : : class TestEnv : public TestInternal 30 : : { 31 : : protected: 32 : 12 : void SetUp() override 33 : : { 34 : 12 : d_options.reset(new Options()); 35 : 12 : d_nodeManager = NodeManager::currentNM(); 36 : 12 : d_env.reset(new Env(d_nodeManager, d_options.get())); 37 : 12 : } 38 : : 39 : : std::unique_ptr<Options> d_options; 40 : : NodeManager* d_nodeManager; 41 : : std::unique_ptr<Env> d_env; 42 : : }; 43 : : 44 : : } // namespace test 45 : : } // namespace cvc5::internal 46 : : #endif