1 /********************* */
4 ** Top contributors (to current version):
5 ** Andrew Reynolds, Abdalrhman Mohamed, Mathias Preiner
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 Listener classes for SMT engine.
15 #include "cvc4_private.h"
17 #ifndef CVC4__SMT__LISTENERS_H
18 #define CVC4__SMT__LISTENERS_H
22 #include "base/listener.h"
23 #include "expr/node.h"
32 /** A listener for resource outs */
33 class ResourceOutListener
: public Listener
36 ResourceOutListener(SmtEngine
& smt
);
37 /** notify method, interupts SmtEngine */
38 void notify() override
;
41 /** Reference to the SmtEngine */
48 * A listener for node manager calls, which impacts certain dumping traces.
50 class SmtNodeManagerListener
: public NodeManagerListener
53 SmtNodeManagerListener(DumpManager
& dm
, OutputManager
& outMgr
);
54 /** Notify when new sort is created */
55 void nmNotifyNewSort(TypeNode tn
, uint32_t flags
) override
;
56 /** Notify when new sort constructor is created */
57 void nmNotifyNewSortConstructor(TypeNode tn
, uint32_t flags
) override
;
58 /** Notify when list of datatypes is created */
59 void nmNotifyNewDatatypes(const std::vector
<TypeNode
>& dtts
,
60 uint32_t flags
) override
;
61 /** Notify when new variable is created */
62 void nmNotifyNewVar(TNode n
, uint32_t flags
) override
;
63 /** Notify when new skolem is created */
64 void nmNotifyNewSkolem(TNode n
,
65 const std::string
& comment
,
66 uint32_t flags
) override
;
67 /** Notify when a term is deleted */
68 void nmNotifyDeleteNode(TNode n
) override
{}
71 /** Reference to the dump manager of smt engine */
73 /** Reference to the output manager of the smt engine */
74 OutputManager
& d_outMgr
;