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 |
19842 |
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 |
|
Node simpITE(util::ITEUtilities* ite_utils, TNode assertion); |
46 |
|
bool doneSimpITE(AssertionPipeline *assertionsToPreprocesss); |
47 |
|
|
48 |
|
/** A collection of ite preprocessing passes. */ |
49 |
|
util::ITEUtilities d_iteUtilities; |
50 |
|
|
51 |
|
Statistics d_statistics; |
52 |
|
}; |
53 |
|
|
54 |
|
} // namespace passes |
55 |
|
} // namespace preprocessing |
56 |
|
} // namespace cvc5 |
57 |
|
|
58 |
|
#endif |