summaryrefslogtreecommitdiff
path: root/src/theory/theory.h
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2012-11-08 21:53:14 +0000
committerMorgan Deters <mdeters@gmail.com>2012-11-08 21:53:14 +0000
commit72d6f5d9eb6c28a417b00524eff51ea38e37d985 (patch)
tree2a7633872b9dc78fba3bbdd510a360435c4def39 /src/theory/theory.h
parentb3470b5e0b7a664443b9f835db5dd86fb1487866 (diff)
Review of trunk r4525 (TypeNode::getBaseType()):
* fixed TypeNode::getBaseType() for predicate subtypes * added Type::getBaseType() for public interface * added unit testing To avoid confusion, also: * renamed PredicateType::getBaseType() to "getParentType()" * renamed TypeNode::getSubtypeBaseType() to "getSubtypeParentType()" (this commit was certified error- and warning-free by the test-and-commit script.)
Diffstat (limited to 'src/theory/theory.h')
-rw-r--r--src/theory/theory.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/theory/theory.h b/src/theory/theory.h
index 195e37154..9cc5058cc 100644
--- a/src/theory/theory.h
+++ b/src/theory/theory.h
@@ -308,7 +308,7 @@ public:
Trace("theory::internal") << "theoryOf(" << typeNode << ")" << std::endl;
TheoryId id;
while (typeNode.isPredicateSubtype()) {
- typeNode = typeNode.getSubtypeBaseType();
+ typeNode = typeNode.getSubtypeParentType();
}
if (typeNode.getKind() == kind::TYPE_CONSTANT) {
id = typeConstantToTheoryId(typeNode.getConst<TypeConstant>());
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback