summaryrefslogtreecommitdiff
path: root/test/unit/prop/cnf_stream_white.h
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2018-10-15 11:42:28 -0500
committerAndres Noetzli <andres.noetzli@gmail.com>2018-10-15 09:42:28 -0700
commitd828df78c39000b54c2a7824482e206f6761664f (patch)
tree1c3f2f6cd119ce6bd3a9d59593d22d895801ab44 /test/unit/prop/cnf_stream_white.h
parentde7798ebbc351046d7b5ae7e6379ffd61be0f1c4 (diff)
Delay initialization of theory engine (#2621)
This implements solution number 2 for issue #2613.
Diffstat (limited to 'test/unit/prop/cnf_stream_white.h')
-rw-r--r--test/unit/prop/cnf_stream_white.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/prop/cnf_stream_white.h b/test/unit/prop/cnf_stream_white.h
index 7e04bb7c5..35eb240a2 100644
--- a/test/unit/prop/cnf_stream_white.h
+++ b/test/unit/prop/cnf_stream_white.h
@@ -136,6 +136,10 @@ class CnfStreamWhite : public CxxTest::TestSuite {
d_nodeManager = NodeManager::fromExprManager(d_exprManager);
d_scope = new SmtScope(d_smt);
+ // Notice that this unit test uses the theory engine of a created SMT
+ // engine d_smt. We must ensure that d_smt is properly initialized via
+ // the following call, which constructs its underlying theory engine.
+ d_smt->finalOptionsAreSet();
d_theoryEngine = d_smt->d_theoryEngine;
d_satSolver = new FakeSatSolver();
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback