summaryrefslogtreecommitdiff
path: root/src/preprocessing/passes/synth_rew_rules.cpp
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2020-10-01 10:36:14 -0500
committerGitHub <noreply@github.com>2020-10-01 10:36:14 -0500
commit874350b54bd0f275fa8af7ca7a7af186bde7c030 (patch)
treec2691cafe870a5377fa9692b7bcd6f6e2f0d0452 /src/preprocessing/passes/synth_rew_rules.cpp
parent9c2a0ef0f00696eb4bbffcbbf23a43508c1c3987 (diff)
(proof-new) Preprocessing passes use proper interfaces to assertions pipeline (#5164)
This PR eliminates all uses of assertions pipeline that are not proper, which two-fold: (1) The assertion list should never be modified in a custom way (without going through replace / push_back), (2) Places where an assertion is "conjoined" to an existing spot in the vector should use conjoin instead of replace. This is required for proper proof generation. This fixes CVC4/cvc4-projects#75.
Diffstat (limited to 'src/preprocessing/passes/synth_rew_rules.cpp')
-rw-r--r--src/preprocessing/passes/synth_rew_rules.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/preprocessing/passes/synth_rew_rules.cpp b/src/preprocessing/passes/synth_rew_rules.cpp
index 2ca11eb81..8465a63a0 100644
--- a/src/preprocessing/passes/synth_rew_rules.cpp
+++ b/src/preprocessing/passes/synth_rew_rules.cpp
@@ -40,7 +40,7 @@ PreprocessingPassResult SynthRewRulesPass::applyInternal(
{
Trace("srs-input") << "Synthesize rewrite rules from assertions..."
<< std::endl;
- std::vector<Node>& assertions = assertionsToPreprocess->ref();
+ const std::vector<Node>& assertions = assertionsToPreprocess->ref();
if (assertions.empty())
{
return PreprocessingPassResult::NO_CONFLICT;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback