diff options
author | Andres Noetzli <andres.noetzli@gmail.com> | 2018-09-14 22:15:37 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-14 22:15:37 -0700 |
commit | 2060f439c873c8b1928cbd5f54967571176f2aba (patch) | |
tree | 45fab904b632b6174ee66807081465693a5da83f /test | |
parent | c2111c86973b8a80e20a3fdf3cbd0b2ff0dc7010 (diff) |
Refactor how assertions are added to decision engine (#2396)
Before refactoring the preprocessing passes, we were using three
arguments to add assertions to the decision engine. Now all that
information lives in the AssertionPipeline. This commit moves the
AssertionPipeline to its own file and changes the `addAssertions()`
methods related to the decision engine to take an AssertionPipeline as
an arguement instead of three separate ones. Additionally, the
TheoryEngine now uses an AssertionPipeline for lemmas.
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/preprocessing/pass_bv_gauss_white.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/test/unit/preprocessing/pass_bv_gauss_white.h b/test/unit/preprocessing/pass_bv_gauss_white.h index f238ba8be..8ba6da0bf 100644 --- a/test/unit/preprocessing/pass_bv_gauss_white.h +++ b/test/unit/preprocessing/pass_bv_gauss_white.h @@ -2378,8 +2378,7 @@ class TheoryBVGaussWhite : public CxxTest::TestSuite Node a = d_nm->mkNode(kind::AND, d_nm->mkNode(kind::AND, eq1, eq2), eq3); - context::Context context; - AssertionPipeline apipe(&context); + AssertionPipeline apipe; apipe.push_back(a); passes::BVGauss bgauss(nullptr); std::unordered_map<Node, Node, NodeHashFunction> res; @@ -2461,8 +2460,7 @@ class TheoryBVGaussWhite : public CxxTest::TestSuite Node a = d_nm->mkNode(kind::AND, d_nm->mkNode(kind::AND, eq1, eq2), eq3); - context::Context context; - AssertionPipeline apipe(&context); + AssertionPipeline apipe; apipe.push_back(a); apipe.push_back(eq4); apipe.push_back(eq5); @@ -2513,8 +2511,7 @@ class TheoryBVGaussWhite : public CxxTest::TestSuite d_p), d_nine); - context::Context context; - AssertionPipeline apipe(&context); + AssertionPipeline apipe; apipe.push_back(eq1); apipe.push_back(eq2); passes::BVGauss bgauss(nullptr); |