1 /********************* */
4 ** Top contributors (to current version):
5 ** Tim King, Dejan Jovanovic
6 ** This file is part of the CVC4 project.
7 ** Copyright (c) 2009-2019 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 The representation of the assertions sent to theories.
14 ** The representation of the assertions sent to theories.
18 #include "cvc4_private.h"
20 #ifndef CVC4__THEORY__ASSERTION_H
21 #define CVC4__THEORY__ASSERTION_H
23 #include "expr/node.h"
28 /** Information about an assertion for the theories. */
30 /** The assertion expression. */
31 const Node d_assertion
;
33 /** Has this assertion been preregistered with this theory. */
34 const bool d_isPreregistered
;
36 Assertion(TNode assertion
, bool isPreregistered
)
37 : d_assertion(assertion
), d_isPreregistered(isPreregistered
)
41 /** Convert the assertion to a TNode. */
42 operator TNode() const { return d_assertion
; }
44 /** Convert the assertion to a Node. */
45 operator Node() const { return d_assertion
; }
47 }; /* struct Assertion */
49 std::ostream
& operator<<(std::ostream
& out
, const Assertion
& a
);
51 }/* CVC4::theory namespace */
54 #endif /* CVC4__THEORY__ASSERTION_H */