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/global_negate.h | |
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/global_negate.h')
-rw-r--r-- | src/preprocessing/passes/global_negate.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/preprocessing/passes/global_negate.h b/src/preprocessing/passes/global_negate.h index 853e5a4dd..208b8d990 100644 --- a/src/preprocessing/passes/global_negate.h +++ b/src/preprocessing/passes/global_negate.h @@ -42,7 +42,7 @@ class GlobalNegate : public PreprocessingPass AssertionPipeline* assertionsToPreprocess) override; private: - Node simplify(std::vector<Node>& assertions, NodeManager* nm); + Node simplify(const std::vector<Node>& assertions, NodeManager* nm); }; } // namespace passes |