summaryrefslogtreecommitdiff
path: root/src/theory/sets/expr_patterns.h
blob: 93307d227d4c119ba00ff695a945afb0583ac334 (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
53
54
55
56
57
/*********************                                                        */
/*! \file expr_patterns.h
 ** \verbatim
 ** Original author: Kshitij Bansal
 ** Major contributors: none
 ** Minor contributors (to current version): none
 ** This file is part of the CVC4 project.
 ** Copyright (c) 2013-2014  New York University and The University of Iowa
 ** See the file COPYING in the top-level source directory for licensing
 ** information.\endverbatim
 **
 ** \brief Expr patterns.
 **
 ** Expr patterns.
 **/

#include "cvc4_private.h"

#pragma once

namespace CVC4 {
namespace expr {
namespace pattern {

/** Boolean operators */
static Node AND(TNode a, TNode b) {
  return NodeManager::currentNM()->mkNode(kind::AND, a, b);
}

static Node OR(TNode a, TNode b) {
  return NodeManager::currentNM()->mkNode(kind::OR, a, b);
}

static Node OR(TNode a, TNode b, TNode c) {
  return NodeManager::currentNM()->mkNode(kind::OR, a, b, c);
}

static Node NOT(TNode a) {
  return NodeManager::currentNM()->mkNode(kind::NOT, a);
}

/** Theory operators */
static Node MEMBER(TNode a, TNode b) {
  return NodeManager::currentNM()->mkNode(kind::MEMBER, a, b);
}

static Node SINGLETON(TNode a) {
  return NodeManager::currentNM()->mkNode(kind::SINGLETON, a);
}

static Node EQUAL(TNode a, TNode b) {
  return NodeManager::currentNM()->mkNode(kind::EQUAL, a, b);
}

}/* CVC4::expr::pattern namespace */
}/* CVC4::expr namespace */
}/* CVC4 namespace */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback