GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/theory/sep/theory_sep_rewriter.h Lines: 4 4 100.0 %
Date: 2021-03-22 Branches: 10 20 50.0 %

Line Exec Source
1
/*********************                                                        */
2
/*! \file theory_sep_rewriter.h
3
 ** \verbatim
4
 ** Top contributors (to current version):
5
 **   Andres Noetzli, Andrew Reynolds, Mathias Preiner
6
 ** This file is part of the CVC4 project.
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.\endverbatim
11
 **
12
 ** \brief [[ Add one-line brief description here ]]
13
 **
14
 ** [[ Add lengthier description here ]]
15
 ** \todo document this file
16
 **/
17
18
#include "cvc4_private.h"
19
20
#ifndef CVC4__THEORY__SEP__THEORY_SEP_REWRITER_H
21
#define CVC4__THEORY__SEP__THEORY_SEP_REWRITER_H
22
23
#include "theory/theory_rewriter.h"
24
#include "theory/type_enumerator.h"
25
26
namespace CVC4 {
27
namespace theory {
28
namespace sep {
29
30
18642
class TheorySepRewriter : public TheoryRewriter
31
{
32
 public:
33
  RewriteResponse postRewrite(TNode node) override;
34
1791
  RewriteResponse preRewrite(TNode node) override
35
  {
36
1791
    Trace("sep-prerewrite") << "Sep::preRewrite returning " << node << std::endl;
37
1791
    return RewriteResponse(REWRITE_DONE, node);
38
  }
39
40
 private:
41
  static void getStarChildren(Node n,
42
                              std::vector<Node>& s_children,
43
                              std::vector<Node>& ns_children);
44
  static void getAndChildren(Node n,
45
                             std::vector<Node>& s_children,
46
                             std::vector<Node>& ns_children);
47
  static bool isSpatial(Node n, std::map<Node, bool>& visited);
48
}; /* class TheorySepRewriter */
49
50
}/* CVC4::theory::sep namespace */
51
}/* CVC4::theory namespace */
52
}/* CVC4 namespace */
53
54
#endif /* CVC4__THEORY__SEP__THEORY_SEP_REWRITER_H */