1 /********************* */
2 /*! \file rewrite_engine.h
4 ** Original author: Andrew Reynolds
5 ** Major contributors: Morgan Deters
6 ** Minor contributors (to current version): none
7 ** This file is part of the CVC4 project.
8 ** Copyright (c) 2009-2013 New York University and The University of Iowa
9 ** See the file COPYING in the top-level source directory for licensing
10 ** information.\endverbatim
12 ** [[ Add lengthier description here ]]
13 ** \todo document this file
16 #include "cvc4_private.h"
18 #ifndef __CVC4__REWRITE_ENGINE_H
19 #define __CVC4__REWRITE_ENGINE_H
21 #include "theory/quantifiers_engine.h"
22 #include "theory/quantifiers/trigger.h"
24 #include "context/context.h"
25 #include "context/context_mm.h"
26 #include "context/cdchunk_list.h"
30 namespace quantifiers
{
32 class RewriteEngine
: public QuantifiersModule
34 typedef context::CDHashMap
<Node
, bool, NodeHashFunction
> NodeBoolMap
;
35 typedef context::CDHashMap
<Node
, int, NodeHashFunction
> NodeIntMap
;
36 typedef context::CDHashMap
<Node
, Node
, NodeHashFunction
> NodeNodeMap
;
37 std::vector
< Node
> d_rr_quant
;
38 std::map
< Node
, Node
> d_rr_guard
;
40 /** explicitly provided patterns */
41 std::map
< Node
, std::vector
< inst::Trigger
* > > d_rr_triggers
;
42 double getPriority( Node f
);
44 int checkRewriteRule( Node f
);
46 RewriteEngine( context::Context
* c
, QuantifiersEngine
* qe
);
48 void check( Theory::Effort e
);
49 void registerQuantifier( Node f
);
50 void assertNode( Node n
);