1 |
|
/****************************************************************************** |
2 |
|
* Top contributors (to current version): |
3 |
|
* Andres Noetzli, Andrew Reynolds, Mathias Preiner |
4 |
|
* |
5 |
|
* This file is part of the cvc5 project. |
6 |
|
* |
7 |
|
* Copyright (c) 2009-2021 by the authors listed in the file AUTHORS |
8 |
|
* in the top-level source directory and their institutional affiliations. |
9 |
|
* All rights reserved. See the file COPYING in the top-level source |
10 |
|
* directory for licensing information. |
11 |
|
* **************************************************************************** |
12 |
|
* |
13 |
|
* [[ Add one-line brief description here ]] |
14 |
|
* |
15 |
|
* [[ Add lengthier description here ]] |
16 |
|
* \todo document this file |
17 |
|
*/ |
18 |
|
|
19 |
|
#include "cvc5_private.h" |
20 |
|
|
21 |
|
#ifndef CVC5__THEORY__SEP__THEORY_SEP_REWRITER_H |
22 |
|
#define CVC5__THEORY__SEP__THEORY_SEP_REWRITER_H |
23 |
|
|
24 |
|
#include "theory/theory_rewriter.h" |
25 |
|
#include "theory/type_enumerator.h" |
26 |
|
|
27 |
|
namespace cvc5 { |
28 |
|
namespace theory { |
29 |
|
namespace sep { |
30 |
|
|
31 |
19855 |
class TheorySepRewriter : public TheoryRewriter |
32 |
|
{ |
33 |
|
public: |
34 |
|
RewriteResponse postRewrite(TNode node) override; |
35 |
1802 |
RewriteResponse preRewrite(TNode node) override |
36 |
|
{ |
37 |
1802 |
Trace("sep-prerewrite") << "Sep::preRewrite returning " << node << std::endl; |
38 |
1802 |
return RewriteResponse(REWRITE_DONE, node); |
39 |
|
} |
40 |
|
|
41 |
|
private: |
42 |
|
static void getStarChildren(Node n, |
43 |
|
std::vector<Node>& s_children, |
44 |
|
std::vector<Node>& ns_children); |
45 |
|
static void getAndChildren(Node n, |
46 |
|
std::vector<Node>& s_children, |
47 |
|
std::vector<Node>& ns_children); |
48 |
|
static bool isSpatial(Node n, std::map<Node, bool>& visited); |
49 |
|
}; /* class TheorySepRewriter */ |
50 |
|
|
51 |
|
} // namespace sep |
52 |
|
} // namespace theory |
53 |
|
} // namespace cvc5 |
54 |
|
|
55 |
|
#endif /* CVC5__THEORY__SEP__THEORY_SEP_REWRITER_H */ |