1 /********************* */
2 /*! \file ee_manager.cpp
4 ** Top contributors (to current version):
6 ** This file is part of the CVC4 project.
7 ** Copyright (c) 2009-2020 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.\endverbatim
12 ** \brief Utilities for management of equality engines.
15 #include "theory/ee_manager.h"
17 #include "theory/theory_model.h"
22 EqEngineManager::EqEngineManager(TheoryEngine
& te
, SharedSolver
& shs
)
23 : d_te(te
), d_sharedSolver(shs
)
27 const EeTheoryInfo
* EqEngineManager::getEeTheoryInfo(TheoryId tid
) const
29 std::map
<TheoryId
, EeTheoryInfo
>::const_iterator it
= d_einfo
.find(tid
);
30 if (it
!= d_einfo
.end())
37 eq::EqualityEngine
* EqEngineManager::allocateEqualityEngine(EeSetupInfo
& esi
,
40 if (esi
.d_notify
!= nullptr)
42 return new eq::EqualityEngine(
43 *esi
.d_notify
, c
, esi
.d_name
, esi
.d_constantsAreTriggers
);
45 // the theory doesn't care about explicit notifications
46 return new eq::EqualityEngine(c
, esi
.d_name
, esi
.d_constantsAreTriggers
);