GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/theory/fp/theory_fp_rewriter.h Lines: 1 1 100.0 %
Date: 2021-03-22 Branches: 1 2 50.0 %

Line Exec Source
1
/*********************                                                        */
2
/*! \file theory_fp_rewriter.h
3
 ** \verbatim
4
 ** Top contributors (to current version):
5
 **   Andres Noetzli, Martin Brain, 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__FP__THEORY_FP_REWRITER_H
21
#define CVC4__THEORY__FP__THEORY_FP_REWRITER_H
22
23
#include "theory/theory_rewriter.h"
24
25
namespace CVC4 {
26
namespace theory {
27
namespace fp {
28
29
typedef RewriteResponse (*RewriteFunction) (TNode, bool);
30
31
11668
class TheoryFpRewriter : public TheoryRewriter
32
{
33
 public:
34
  TheoryFpRewriter();
35
36
  RewriteResponse preRewrite(TNode node) override;
37
  RewriteResponse postRewrite(TNode node) override;
38
39
  /**
40
   * Rewrite an equality, in case special handling is required.
41
   */
42
  Node rewriteEquality(TNode equality)
43
  {
44
    // often this will suffice
45
    return postRewrite(equality).d_node;
46
  }
47
48
 protected:
49
  RewriteFunction d_preRewriteTable[kind::LAST_KIND];
50
  RewriteFunction d_postRewriteTable[kind::LAST_KIND];
51
  RewriteFunction d_constantFoldTable[kind::LAST_KIND];
52
}; /* class TheoryFpRewriter */
53
54
}/* CVC4::theory::fp namespace */
55
}/* CVC4::theory namespace */
56
}/* CVC4 namespace */
57
58
#endif /* CVC4__THEORY__FP__THEORY_FP_REWRITER_H */