summaryrefslogtreecommitdiff
path: root/src/theory/assertion.h
blob: d68ff87aab77438f770909e31eabf8b66f8649dd (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
/*********************                                                        */
/*! \file assertion.h
 ** \verbatim
 ** Top contributors (to current version):
 **   Tim King, Dejan Jovanovic
 ** This file is part of the CVC4 project.
 ** Copyright (c) 2009-2019 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