diff options
author | Tim King <taking@cs.nyu.edu> | 2012-05-15 19:01:19 +0000 |
---|---|---|
committer | Tim King <taking@cs.nyu.edu> | 2012-05-15 19:01:19 +0000 |
commit | 488ae3f42d9d3e06978e11a42d1d47e76072f797 (patch) | |
tree | f466859889ceee9947e20d695fd35f99065277f8 /src/theory/arith/normal_form.h | |
parent | fe2088f892af594765fc50d8cc9f2b4f87286b7c (diff) |
This commit removes the CONST_INTEGER kind from nodes. This code comes from the branch arithmetic/remove_const_int.
Diffstat (limited to 'src/theory/arith/normal_form.h')
-rw-r--r-- | src/theory/arith/normal_form.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/theory/arith/normal_form.h b/src/theory/arith/normal_form.h index 434be42a2..d67cd46a9 100644 --- a/src/theory/arith/normal_form.h +++ b/src/theory/arith/normal_form.h @@ -232,7 +232,6 @@ public: // TODO: check if it's a theory leaf also static bool isMember(Node n) { - if (n.getKind() == kind::CONST_INTEGER) return false; if (n.getKind() == kind::CONST_RATIONAL) return false; if (isRelationOperator(n.getKind())) return false; return Theory::isLeafOf(n, theory::THEORY_ARITH); @@ -283,7 +282,8 @@ public: bool isNormalForm() { return isMember(getNode()); } static Constant mkConstant(Node n) { - return Constant(coerceToRationalNode(n)); + Assert(n.getKind() == kind::CONST_RATIONAL); + return Constant(n); } static Constant mkConstant(const Rational& rat) { |