diff options
Diffstat (limited to 'src/theory/builtin')
-rw-r--r-- | src/theory/builtin/kinds | 1 | ||||
-rw-r--r-- | src/theory/builtin/theory_builtin_type_rules.h | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/theory/builtin/kinds b/src/theory/builtin/kinds index 39945e081..57baa82cd 100644 --- a/src/theory/builtin/kinds +++ b/src/theory/builtin/kinds @@ -270,6 +270,7 @@ constant UNINTERPRETED_CONSTANT \ ::CVC4::UninterpretedConstantHashStrategy \ "util/uninterpreted_constant.h" \ "The kind of nodes representing uninterpreted constants" +typerule UNINTERPRETED_CONSTANT ::CVC4::theory::builtin::UninterpretedConstantTypeRule enumerator SORT_TYPE \ ::CVC4::theory::builtin::UninterpretedSortEnumerator \ "theory/builtin/type_enumerator.h" diff --git a/src/theory/builtin/theory_builtin_type_rules.h b/src/theory/builtin/theory_builtin_type_rules.h index 9b0611ed8..d443b8452 100644 --- a/src/theory/builtin/theory_builtin_type_rules.h +++ b/src/theory/builtin/theory_builtin_type_rules.h @@ -130,6 +130,13 @@ public: } };/* class TupleTypeRule */ +class UninterpretedConstantTypeRule { +public: + inline static TypeNode computeType(NodeManager* nodeManager, TNode n, bool check) { + return TypeNode::fromType(n.getConst<UninterpretedConstant>().getType()); + } +};/* class UninterpretedConstantTypeRule */ + class StringConstantTypeRule { public: inline static TypeNode computeType(NodeManager* nodeManager, TNode n, bool check) { |