diff options
author | Tim King <taking@cs.nyu.edu> | 2017-08-23 15:49:32 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-23 15:49:32 -0700 |
commit | c57139b1e0ddd918eea5f9b77dae7d3a04b3860a (patch) | |
tree | d3103e2f817fb1ec12c82648e65e4aa68710c8d2 /src/theory/arith/constraint.cpp | |
parent | 1b274e50f85762d0d894227f8fb8c72c29bf20f8 (diff) |
Removing TODO for 'Optimize via the iterator'. Not a priority. (#1051)
Diffstat (limited to 'src/theory/arith/constraint.cpp')
-rw-r--r-- | src/theory/arith/constraint.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/theory/arith/constraint.cpp b/src/theory/arith/constraint.cpp index 3427edbd3..15f82d82b 100644 --- a/src/theory/arith/constraint.cpp +++ b/src/theory/arith/constraint.cpp @@ -438,18 +438,14 @@ ConstraintP Constraint::getCeiling() { Debug("getCeiling") << "Constraint_::getCeiling on " << *this << endl; Assert(getValue().getInfinitesimalPart().sgn() > 0); - DeltaRational ceiling(getValue().ceiling()); - - // TODO: "Optimize via the iterator" + const DeltaRational ceiling(getValue().ceiling()); return d_database->getConstraint(getVariable(), getType(), ceiling); } ConstraintP Constraint::getFloor() { Assert(getValue().getInfinitesimalPart().sgn() < 0); - DeltaRational floor(Rational(getValue().floor())); - - // TODO: "Optimize via the iterator" + const DeltaRational floor(Rational(getValue().floor())); return d_database->getConstraint(getVariable(), getType(), floor); } |