diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2020-10-01 10:36:14 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-01 10:36:14 -0500 |
commit | 874350b54bd0f275fa8af7ca7a7af186bde7c030 (patch) | |
tree | c2691cafe870a5377fa9692b7bcd6f6e2f0d0452 /src/preprocessing/passes/synth_rew_rules.cpp | |
parent | 9c2a0ef0f00696eb4bbffcbbf23a43508c1c3987 (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.cpp | 2 |
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; |