summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorClark Barrett <barrett@cs.nyu.edu>2014-11-07 16:40:54 -0800
committerClark Barrett <barrett@cs.nyu.edu>2014-11-07 16:41:19 -0800
commite5de3b175640a5592b668dd18496be5a29405c5b (patch)
tree76d2e6dd84a29a11ce3fd92a21f2aadf58f834d3 /src
parentfe30804ae981fcbd6ae795db120741dcffc1ef01 (diff)
Fixed bug in model builder with subtypes
Diffstat (limited to 'src')
-rw-r--r--src/theory/theory_model.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/theory/theory_model.cpp b/src/theory/theory_model.cpp
index b67140db8..33f6ca9c8 100644
--- a/src/theory/theory_model.cpp
+++ b/src/theory/theory_model.cpp
@@ -552,7 +552,7 @@ void TheoryEngineModelBuilder::buildModel(Model* m, bool fullModel)
else if (!rep.isNull()) {
assertedReps[eqc] = rep;
typeRepSet.add(eqct.getBaseType(), eqc);
- allTypes.insert(eqct);
+ allTypes.insert(eqct.getBaseType());
}
else {
typeNoRepSet.add(eqct, eqc);
@@ -642,7 +642,7 @@ void TheoryEngineModelBuilder::buildModel(Model* m, bool fullModel)
Trace("model-builder") << " Normalizing rep (" << rep << "), normalized to (" << normalized << ")" << endl;
if (normalized.isConst()) {
changed = true;
- typeConstSet.add(t.getBaseType(), normalized);
+ typeConstSet.add(tb, normalized);
constantReps[*i] = normalized;
assertedReps.erase(*i);
i2 = i;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback