From e5de3b175640a5592b668dd18496be5a29405c5b Mon Sep 17 00:00:00 2001 From: Clark Barrett Date: Fri, 7 Nov 2014 16:40:54 -0800 Subject: [PATCH] Fixed bug in model builder with subtypes --- src/theory/theory_model.cpp | 4 ++-- 1 file 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; -- 2.30.2