diff options
author | Andres Noetzli <andres.noetzli@gmail.com> | 2020-07-15 08:27:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-15 10:27:13 -0500 |
commit | 9975291763425e0aba9ae135ccd86d1fbc176d9d (patch) | |
tree | 9d8c1775df573fed99874dbea08273290c31ab35 /src/theory/builtin | |
parent | a482635216017b0d558229f2339c663cf58f8d23 (diff) |
Use TypeNode in UninterpretedConstant (#4748)
This commit changes UninterpretedConstant to use TypeNode instead of
Type.
Diffstat (limited to 'src/theory/builtin')
-rw-r--r-- | src/theory/builtin/theory_builtin_type_rules.h | 2 | ||||
-rw-r--r-- | src/theory/builtin/type_enumerator.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/theory/builtin/theory_builtin_type_rules.h b/src/theory/builtin/theory_builtin_type_rules.h index 3a6b9bfff..29ac4f2d1 100644 --- a/src/theory/builtin/theory_builtin_type_rules.h +++ b/src/theory/builtin/theory_builtin_type_rules.h @@ -96,7 +96,7 @@ class SExprTypeRule { class UninterpretedConstantTypeRule { public: inline static TypeNode computeType(NodeManager* nodeManager, TNode n, bool check) { - return TypeNode::fromType(n.getConst<UninterpretedConstant>().getType()); + return n.getConst<UninterpretedConstant>().getType(); } };/* class UninterpretedConstantTypeRule */ diff --git a/src/theory/builtin/type_enumerator.h b/src/theory/builtin/type_enumerator.h index edac15d86..18dcf4521 100644 --- a/src/theory/builtin/type_enumerator.h +++ b/src/theory/builtin/type_enumerator.h @@ -60,7 +60,8 @@ class UninterpretedSortEnumerator : public TypeEnumeratorBase<UninterpretedSortE if(isFinished()) { throw NoMoreValuesException(getType()); } - return NodeManager::currentNM()->mkConst(UninterpretedConstant(getType().toType(), d_count)); + return NodeManager::currentNM()->mkConst( + UninterpretedConstant(getType(), d_count)); } UninterpretedSortEnumerator& operator++() override |