summaryrefslogtreecommitdiff
path: root/src/theory/assertion.h
diff options
context:
space:
mode:
authorTim King <taking@google.com>2017-03-27 09:40:30 -0700
committerTim King <taking@google.com>2017-03-27 09:40:30 -0700
commit7b89724488085d7eed3e37520ca11d8cd1e18120 (patch)
tree0d04fdd6a44fb2b32dac3971fb8cee68a291fd08 /src/theory/assertion.h
parent0be62eeea95eaf27913e792c17dd79afb96b16cb (diff)
Moving the theory::Assertion struct into its own file.
Diffstat (limited to 'src/theory/assertion.h')
-rw-r--r--src/theory/assertion.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/theory/assertion.h b/src/theory/assertion.h
new file mode 100644
index 000000000..2a5e71adc
--- /dev/null
+++ b/src/theory/assertion.h
@@ -0,0 +1,52 @@
+/********************* */
+/*! \file assertion.h
+ ** \verbatim
+ ** Top contributors (to current version):
+ ** Tim King
+ ** This file is part of the CVC4 project.
+ ** Copyright (c) 2009-2017 by the authors listed in the file AUTHORS
+ ** in the top-level source directory) and their institutional affiliations.
+ ** All rights reserved. See the file COPYING in the top-level source
+ ** directory for licensing information.\endverbatim
+ **
+ ** \brief The representation of the assertions sent to theories.
+ **
+ ** The representation of the assertions sent to theories.
+ **/
+
+
+#include "cvc4_private.h"
+
+#ifndef __CVC4__THEORY__ASSERTION_H
+#define __CVC4__THEORY__ASSERTION_H
+
+#include "expr/node.h"
+
+namespace CVC4 {
+namespace theory {
+
+/** Information about an assertion for the theories. */
+struct Assertion {
+ /** The assertion expression. */
+ const Node assertion;
+
+ /** Has this assertion been preregistered with this theory. */
+ const bool isPreregistered;
+
+ Assertion(TNode assertion, bool isPreregistered)
+ : assertion(assertion), isPreregistered(isPreregistered) {}
+
+ /** Convert the assertion to a TNode. */
+ operator TNode() const { return assertion; }
+
+ /** Convert the assertion to a Node. */
+ operator Node() const { return assertion; }
+
+}; /* struct Assertion */
+
+std::ostream& operator<<(std::ostream& out, const Assertion& a);
+
+}/* CVC4::theory namespace */
+}/* CVC4 namespace */
+
+#endif /* __CVC4__THEORY__ASSERTION_H */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback