1 |
|
/****************************************************************************** |
2 |
|
* Top contributors (to current version): |
3 |
|
* Andres Noetzli, 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 |
|
* The IntToBV preprocessing pass. |
14 |
|
* |
15 |
|
* Converts integer operations into bitvector operations. The width of the |
16 |
|
* bitvectors is controlled through the `--solve-int-as-bv` command line |
17 |
|
* option. |
18 |
|
*/ |
19 |
|
|
20 |
|
#include "cvc5_private.h" |
21 |
|
|
22 |
|
#ifndef CVC5__PREPROCESSING__PASSES__INT_TO_BV_H |
23 |
|
#define CVC5__PREPROCESSING__PASSES__INT_TO_BV_H |
24 |
|
|
25 |
|
#include "preprocessing/preprocessing_pass.h" |
26 |
|
|
27 |
|
namespace cvc5 { |
28 |
|
namespace preprocessing { |
29 |
|
namespace passes { |
30 |
|
|
31 |
17908 |
class IntToBV : public PreprocessingPass |
32 |
|
{ |
33 |
|
public: |
34 |
|
IntToBV(PreprocessingPassContext* preprocContext); |
35 |
|
|
36 |
|
protected: |
37 |
|
PreprocessingPassResult applyInternal( |
38 |
|
AssertionPipeline* assertionsToPreprocess) override; |
39 |
|
}; |
40 |
|
|
41 |
|
} // namespace passes |
42 |
|
} // namespace preprocessing |
43 |
|
} // namespace cvc5 |
44 |
|
|
45 |
|
#endif /* CVC5__PREPROCESSING__PASSES__INT_TO_BV_H */ |