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 : : * Singleton CoCoA global manager 11 : : */ 12 : : 13 : : #ifdef CVC5_USE_COCOA 14 : : 15 : : #include "util/cocoa_globals.h" 16 : : 17 : : #include <CoCoA/GlobalManager.H> 18 : : 19 : : namespace cvc5::internal { 20 : : 21 : : CoCoA::GlobalManager* s_cocoaGlobalManager = nullptr; 22 : : 23 : 51567 : void initCocoaGlobalManager() 24 : : { 25 [ + + ]: 51567 : if (s_cocoaGlobalManager == nullptr) 26 : : { 27 : 17191 : s_cocoaGlobalManager = new CoCoA::GlobalManager(); 28 : : } 29 : 51567 : } 30 : : 31 : : } // namespace cvc5::internal 32 : : 33 : : #endif /* CVC5_USE_COCOA */