diff options
author | Andres Noetzli <andres.noetzli@gmail.com> | 2018-04-03 20:43:37 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-03 20:43:37 -0700 |
commit | 4be746589d4f456f772d4c8c524a1d34ab3b75c8 (patch) | |
tree | edef4179d1c7d2a666a6195b07fb55e71eb77b30 /src/preprocessing/passes/int_to_bv.h | |
parent | eaebc10c50ca44644edd430ed3f555092a0fb27a (diff) |
Refactor IntToBV preprocessing pass (#1716)
This commit refactors the IntToBV preprocessing pass into the new style.
This commit is essentially just a code move, it does not attempt to fix
issues (e.g. #1715).
Diffstat (limited to 'src/preprocessing/passes/int_to_bv.h')
-rw-r--r-- | src/preprocessing/passes/int_to_bv.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/preprocessing/passes/int_to_bv.h b/src/preprocessing/passes/int_to_bv.h new file mode 100644 index 000000000..072e547c9 --- /dev/null +++ b/src/preprocessing/passes/int_to_bv.h @@ -0,0 +1,45 @@ +/********************* */ +/*! \file int_to_bv.h + ** \verbatim + ** Top contributors (to current version): + ** Andres Noetzli + ** This file is part of the CVC4 project. + ** Copyright (c) 2009-2018 by the authors listed in the file AUTHORS + ** in the top-level source directory) and their institutional affiliations. + ** All rights reserved. See the file COPYING in the top-level source + ** directory for licensing information.\endverbatim + ** + ** \brief The IntToBV preprocessing pass + ** + ** Converts integer operations into bitvector operations. The width of the + ** bitvectors is controlled through the `--solve-int-as-bv` command line + ** option. + **/ + +#include "cvc4_private.h" + +#ifndef __CVC4__PREPROCESSING__PASSES__INT_TO_BV_H +#define __CVC4__PREPROCESSING__PASSES__INT_TO_BV_H + +#include "preprocessing/preprocessing_pass.h" +#include "preprocessing/preprocessing_pass_context.h" + +namespace CVC4 { +namespace preprocessing { +namespace passes { + +class IntToBV : public PreprocessingPass +{ + public: + IntToBV(PreprocessingPassContext* preprocContext); + + protected: + PreprocessingPassResult applyInternal( + AssertionPipeline* assertionsToPreprocess) override; +}; + +} // namespace passes +} // namespace preprocessing +} // namespace CVC4 + +#endif /* __CVC4__PREPROCESSING__PASSES__INT_TO_BV_H */ |