diff options
author | Aina Niemetz <aina.niemetz@gmail.com> | 2018-12-20 13:44:51 -0800 |
---|---|---|
committer | Aina Niemetz <aina.niemetz@gmail.com> | 2018-12-20 15:42:40 -0800 |
commit | c4a4923bf72d81ea273edb4c94836f0714452ac3 (patch) | |
tree | d251a891943e1abaf246fb2db035b7af41a39d6f /src/theory/arith | |
parent | 6b46621c4076ace3b0703e29fbdadca04f7635cb (diff) |
Add missing type rules for parameterized operator kinds. (#2766)
Diffstat (limited to 'src/theory/arith')
-rw-r--r-- | src/theory/arith/kinds | 1 | ||||
-rw-r--r-- | src/theory/arith/theory_arith_type_rules.h | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/theory/arith/kinds b/src/theory/arith/kinds index 3073d0078..95d1aa9c1 100644 --- a/src/theory/arith/kinds +++ b/src/theory/arith/kinds @@ -107,6 +107,7 @@ typerule ABS ::CVC4::theory::arith::IntOperatorTypeRule typerule INTS_DIVISION ::CVC4::theory::arith::IntOperatorTypeRule typerule INTS_MODULUS ::CVC4::theory::arith::IntOperatorTypeRule typerule DIVISIBLE ::CVC4::theory::arith::IntUnaryPredicateTypeRule +typerule DIVISIBLE_OP ::CVC4::theory::arith::DivisibleOpTypeRule typerule DIVISION_TOTAL ::CVC4::theory::arith::ArithOperatorTypeRule typerule INTS_DIVISION_TOTAL ::CVC4::theory::arith::IntOperatorTypeRule diff --git a/src/theory/arith/theory_arith_type_rules.h b/src/theory/arith/theory_arith_type_rules.h index 2e998010c..bde1730a2 100644 --- a/src/theory/arith/theory_arith_type_rules.h +++ b/src/theory/arith/theory_arith_type_rules.h @@ -169,6 +169,18 @@ public: } };/* class RealNullaryOperatorTypeRule */ +class DivisibleOpTypeRule +{ + public: + inline static TypeNode computeType(NodeManager* nodeManager, + TNode n, + bool check) + { + Assert(n.getKind() == kind::DIVISIBLE_OP); + return nodeManager->builtinOperatorType(); + } +}; /* class DivisibleOpTypeRule */ + }/* CVC4::theory::arith namespace */ }/* CVC4::theory namespace */ }/* CVC4 namespace */ |