summaryrefslogtreecommitdiff
path: root/src/theory/arith/normal_form.h
diff options
context:
space:
mode:
authorTim King <taking@cs.nyu.edu>2012-05-15 19:01:19 +0000
committerTim King <taking@cs.nyu.edu>2012-05-15 19:01:19 +0000
commit488ae3f42d9d3e06978e11a42d1d47e76072f797 (patch)
treef466859889ceee9947e20d695fd35f99065277f8 /src/theory/arith/normal_form.h
parentfe2088f892af594765fc50d8cc9f2b4f87286b7c (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.h4
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) {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback