summaryrefslogtreecommitdiff
path: root/src/preprocessing/preprocessing_pass.h
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2018-08-16 18:57:24 -0700
committerGitHub <noreply@github.com>2018-08-16 18:57:24 -0700
commite6fd3c70f8651c6a9055fad8933caf2596b2b651 (patch)
tree4cc0809a2aa4fed311bca9f41eee04c935578eb7 /src/preprocessing/preprocessing_pass.h
parent7fc04bf78c6c20f3711d14425469eef2e0c2cd60 (diff)
Refactor IteRemoval preprocessing pass (#1793)
This commit refactors the IteRemoval pass to follow the new format. In addition to moving the code, this entails the following changes: - The timer for the ITE removal is now called differently (the default timer of PreprocessingPass is used) and measures just the preprocessing pass without applySubstitutions(). It also measures the time used by both invocations of the ITE removal pass. - Debug output will be slightly different because we now just rely on the default functionality of PreprocessingPass. - d_iteRemover is now passed into the PreprocessingPassContext. - AssertionPipeline now owns the d_iteSkolemMap, which makes it accessible by preprocessing passes. The idea behind this is that the preprocessing passes collect information in AssertionPipeline and d_iteSkolemMap fits that pattern.
Diffstat (limited to 'src/preprocessing/preprocessing_pass.h')
-rw-r--r--src/preprocessing/preprocessing_pass.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/preprocessing/preprocessing_pass.h b/src/preprocessing/preprocessing_pass.h
index 441d1c7cd..6f76b60e9 100644
--- a/src/preprocessing/preprocessing_pass.h
+++ b/src/preprocessing/preprocessing_pass.h
@@ -38,6 +38,7 @@
#include "expr/node.h"
#include "preprocessing/preprocessing_pass_context.h"
#include "smt/smt_engine_scope.h"
+#include "smt/term_formula_removal.h"
#include "theory/substitutions.h"
namespace CVC4 {
@@ -86,6 +87,8 @@ class AssertionPipeline
*/
void replace(size_t i, const std::vector<Node>& ns);
+ IteSkolemMap& getIteSkolemMap() { return d_iteSkolemMap; }
+
context::CDO<unsigned>& getSubstitutionsIndex()
{
return d_substitutionsIndex;
@@ -99,12 +102,17 @@ class AssertionPipeline
private:
std::vector<Node> d_nodes;
+ /**
+ * Map from skolem variables to index in d_assertions containing
+ * corresponding introduced Boolean ite
+ */
+ IteSkolemMap d_iteSkolemMap;
+
/* Index for where to store substitutions */
context::CDO<unsigned> d_substitutionsIndex;
/* The top level substitutions */
theory::SubstitutionMap d_topLevelSubstitutions;
-
}; /* class AssertionPipeline */
/**
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback