blob: f7d9b5be06ed264d16c4c92768a29894eed8600c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
/******************************************************************************
* Top contributors (to current version):
* Tim King, Andrew Reynolds, Mathias Preiner
*
* This file is part of the cvc5 project.
*
* Copyright (c) 2009-2021 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.
* ****************************************************************************
*
* The representation of the assertions sent to theories.
*/
#include "cvc5_private.h"
#ifndef CVC5__THEORY__ASSERTION_H
#define CVC5__THEORY__ASSERTION_H
#include "expr/node.h"
namespace cvc5 {
namespace theory {
/** Information about an assertion for the theories. */
struct Assertion {
/** The assertion expression. */
const Node d_assertion;
/** Has this assertion been preregistered with this theory. */
const bool d_isPreregistered;
Assertion(TNode assertion, bool isPreregistered)
: d_assertion(assertion), d_isPreregistered(isPreregistered)
{
}
/** Convert the assertion to a TNode. */
operator TNode() const { return d_assertion; }
/** Convert the assertion to a Node. */
operator Node() const { return d_assertion; }
}; /* struct Assertion */
std::ostream& operator<<(std::ostream& out, const Assertion& a);
} // namespace theory
} // namespace cvc5
#endif /* CVC5__THEORY__ASSERTION_H */
|