summaryrefslogtreecommitdiff
path: root/src/theory/quantifiers/macros.h
blob: d930704819821adf2facb423ff08a03f7b7d458c (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
/*********************                                                        */
/*! \file macros.h
 ** \verbatim
 ** Original author: ajreynol
 ** Major contributors: none
 ** Minor contributors (to current version): none
 ** This file is part of the CVC4 prototype.
 ** Copyright (c) 2009-2012  New York University and The University of Iowa
 ** See the file COPYING in the top-level source directory for licensing
 ** information.\endverbatim
 **
 ** \brief Pre-process step for detecting quantifier macro definitions
 **/

#include "cvc4_private.h"

#ifndef __CVC4__QUANTIFIERS_MACROS_H
#define __CVC4__QUANTIFIERS_MACROS_H

#include <iostream>
#include <string>
#include <vector>
#include <map>
#include "expr/node.h"
#include "expr/type_node.h"

namespace CVC4 {
namespace theory {
namespace quantifiers {

class QuantifierMacros{
private:
  void process( Node n, bool pol, std::vector< Node >& args, Node f );
  bool containsOp( Node n, Node op );
  bool isMacroKind( Node n, bool pol );
  //map from operators to macro definition ( basis, definition )
  std::map< Node, std::pair< Node, Node > > d_macro_defs;
private:
  Node simplify( Node n );
public:
  QuantifierMacros(){}
  ~QuantifierMacros(){}

  void simplify( std::vector< Node >& assertions, bool doRewrite = false );
};

}
}
}

#endif
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback