GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/preprocessing/passes/ite_simp.h Lines: 1 1 100.0 %
Date: 2021-08-20 Branches: 0 0 0.0 %

Line Exec Source
1
/******************************************************************************
2
 * Top contributors (to current version):
3
 *   Aina Niemetz, 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
 * ITE simplification preprocessing pass.
14
 */
15
16
#include "cvc5_private.h"
17
18
#ifndef CVC5__PREPROCESSING__PASSES__ITE_SIMP_H
19
#define CVC5__PREPROCESSING__PASSES__ITE_SIMP_H
20
21
#include "preprocessing/preprocessing_pass.h"
22
#include "preprocessing/util/ite_utilities.h"
23
#include "util/statistics_stats.h"
24
25
namespace cvc5 {
26
namespace preprocessing {
27
namespace passes {
28
29
19712
class ITESimp : public PreprocessingPass
30
{
31
 public:
32
   ITESimp(PreprocessingPassContext* preprocContext);
33
34
 protected:
35
   PreprocessingPassResult applyInternal(
36
       AssertionPipeline* assertionsToPreprocess) override;
37
38
 private:
39
  struct Statistics
40
  {
41
    IntStat d_arithSubstitutionsAdded;
42
    Statistics();
43
  };
44
45
  bool doneSimpITE(AssertionPipeline *assertionsToPreprocesss);
46
47
  /** A collection of ite preprocessing passes. */
48
  util::ITEUtilities d_iteUtilities;
49
50
  Statistics d_statistics;
51
};
52
53
}  // namespace passes
54
}  // namespace preprocessing
55
}  // namespace cvc5
56
57
#endif