summaryrefslogtreecommitdiff
path: root/src/preprocessing/passes/theory_preprocess.h
diff options
context:
space:
mode:
authorMathias Preiner <mathias.preiner@gmail.com>2018-08-30 15:49:45 -0700
committerGitHub <noreply@github.com>2018-08-30 15:49:45 -0700
commit45af307478241b1fc8278406549d297f7f80fdb3 (patch)
treed8dcfcfb1e0599b6a8bfc5cb81ac9461891be215 /src/preprocessing/passes/theory_preprocess.h
parent6d04d6daff575a7e48eb88124faefadfadf727f4 (diff)
Refactor theory preprocess into preprocessing pass. (#2395)
Diffstat (limited to 'src/preprocessing/passes/theory_preprocess.h')
-rw-r--r--src/preprocessing/passes/theory_preprocess.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/preprocessing/passes/theory_preprocess.h b/src/preprocessing/passes/theory_preprocess.h
new file mode 100644
index 000000000..58eaee611
--- /dev/null
+++ b/src/preprocessing/passes/theory_preprocess.h
@@ -0,0 +1,43 @@
+/********************* */
+/*! \file theory_preprocess.h
+ ** \verbatim
+ ** Top contributors (to current version):
+ ** Mathias Preiner
+ ** 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 TheoryPreprocess preprocessing pass
+ **
+ ** Calls Theory::preprocess(...) on every assertion of the formula.
+ **/
+
+#include "cvc4_private.h"
+
+#ifndef __CVC4__PREPROCESSING__PASSES__THEORY_PREPROCESS_H
+#define __CVC4__PREPROCESSING__PASSES__THEORY_PREPROCESS_H
+
+#include "preprocessing/preprocessing_pass.h"
+#include "preprocessing/preprocessing_pass_context.h"
+
+namespace CVC4 {
+namespace preprocessing {
+namespace passes {
+
+class TheoryPreprocess : public PreprocessingPass
+{
+ public:
+ TheoryPreprocess(PreprocessingPassContext* preprocContext);
+
+ protected:
+ PreprocessingPassResult applyInternal(
+ AssertionPipeline* assertionsToPreprocess) override;
+};
+
+} // namespace passes
+} // namespace preprocessing
+} // namespace CVC4
+
+#endif /* __CVC4__PREPROCESSING__PASSES__THEORY_PREPROCESS_H */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback