summaryrefslogtreecommitdiff
path: root/src/theory/bv/theory_bv.cpp
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2020-08-20 15:50:38 -0500
committerGitHub <noreply@github.com>2020-08-20 15:50:38 -0500
commit01a9d18f2b2ce20cf7a0672a865cf0c2873d6f6a (patch)
tree52e7dfc5d157b11fa4bd00855ad46238b6615338 /src/theory/bv/theory_bv.cpp
parentc110363ccf39c9415c1a32bda6273fe8221db182 (diff)
Add TheoryState objects to each Theory (#4920)
This initializes all theories with a TheoryState object (apart from bool and builtin which do not require one). Two additional theories are known to require special state objects: TheoryArith, which has a custom way of detecting when in conflict, and TheoryQuantifiers, which can leverage a special state object for the purposes of refactoring and splitting apart QuantifiersEngine further. All other theories use default TheoryState objects. Notice this PR does not update the theories to use these states yet, it simply adds the objects.
Diffstat (limited to 'src/theory/bv/theory_bv.cpp')
-rw-r--r--src/theory/bv/theory_bv.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/theory/bv/theory_bv.cpp b/src/theory/bv/theory_bv.cpp
index ced320d92..2c095e198 100644
--- a/src/theory/bv/theory_bv.cpp
+++ b/src/theory/bv/theory_bv.cpp
@@ -74,7 +74,8 @@ TheoryBV::TheoryBV(context::Context* c,
d_calledPreregister(false),
d_needsLastCallCheck(false),
d_extf_range_infer(u),
- d_extf_collapse_infer(u)
+ d_extf_collapse_infer(u),
+ d_state(c, u, valuation)
{
d_extTheory->addFunctionKind(kind::BITVECTOR_TO_NAT);
d_extTheory->addFunctionKind(kind::INT_TO_BITVECTOR);
@@ -109,6 +110,9 @@ TheoryBV::TheoryBV(context::Context* c,
}
d_subtheories.emplace_back(bb_solver);
d_subtheoryMap[SUB_BITBLAST] = bb_solver;
+
+ // indicate we are using the default theory state object
+ d_theoryState = &d_state;
}
TheoryBV::~TheoryBV() {}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback