Add new interfaces to term formula removal and theory preprocess (#5717)
[cvc5.git] / src / theory / assertion.h
1 /********************* */
2 /*! \file assertion.h
3 ** \verbatim
4 ** Top contributors (to current version):
5 ** Tim King, Andrew Reynolds, 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
11 **
12 ** \brief The representation of the assertions sent to theories.
13 **
14 ** The representation of the assertions sent to theories.
15 **/
16
17
18 #include "cvc4_private.h"
19
20 #ifndef CVC4__THEORY__ASSERTION_H
21 #define CVC4__THEORY__ASSERTION_H
22
23 #include "expr/node.h"
24
25 namespace CVC4 {
26 namespace theory {
27
28 /** Information about an assertion for the theories. */
29 struct Assertion {
30 /** The assertion expression. */
31 const Node d_assertion;
32
33 /** Has this assertion been preregistered with this theory. */
34 const bool d_isPreregistered;
35
36 Assertion(TNode assertion, bool isPreregistered)
37 : d_assertion(assertion), d_isPreregistered(isPreregistered)
38 {
39 }
40
41 /** Convert the assertion to a TNode. */
42 operator TNode() const { return d_assertion; }
43
44 /** Convert the assertion to a Node. */
45 operator Node() const { return d_assertion; }
46
47 }; /* struct Assertion */
48
49 std::ostream& operator<<(std::ostream& out, const Assertion& a);
50
51 }/* CVC4::theory namespace */
52 }/* CVC4 namespace */
53
54 #endif /* CVC4__THEORY__ASSERTION_H */