diff options
author | Tim King <taking@cs.nyu.edu> | 2010-06-16 20:26:14 +0000 |
---|---|---|
committer | Tim King <taking@cs.nyu.edu> | 2010-06-16 20:26:14 +0000 |
commit | c237443e1fad0ab948f2acb97651dec4f0c34dae (patch) | |
tree | 83ccbb9b08fcfbacbacbdc3e717a7e8c3adede7c /src/theory/arith/partial_model.cpp | |
parent | 22685d657c483ab53c645bb9228bd5d4dd708cf5 (diff) |
This commit just contains miscellaneous arithmetic cleanup.
Diffstat (limited to 'src/theory/arith/partial_model.cpp')
-rw-r--r-- | src/theory/arith/partial_model.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/theory/arith/partial_model.cpp b/src/theory/arith/partial_model.cpp index bb2864cf9..e7e3f8bc2 100644 --- a/src/theory/arith/partial_model.cpp +++ b/src/theory/arith/partial_model.cpp @@ -175,7 +175,7 @@ bool ArithPartialModel::belowLowerBound(TNode x, const DeltaRational& c, bool st return false; } - DeltaRational l = (*i).second; + const DeltaRational& l = (*i).second; if(strict){ return c < l; @@ -191,7 +191,7 @@ bool ArithPartialModel::aboveUpperBound(TNode x, const DeltaRational& c, bool st // ? u < -\infty |- _|_ return false; } - DeltaRational u = (*i).second; + const DeltaRational& u = (*i).second; if(strict){ return c > u; @@ -208,9 +208,9 @@ bool ArithPartialModel::strictlyBelowUpperBound(TNode x){ if(i == d_UpperBoundMap.end()){// u = \infty return true; } - DeltaRational u = (*i).second; - return *assign < u; + const DeltaRational& u = (*i).second; + return (*assign) < u; } bool ArithPartialModel::strictlyAboveLowerBound(TNode x){ @@ -221,7 +221,8 @@ bool ArithPartialModel::strictlyAboveLowerBound(TNode x){ if(i == d_LowerBoundMap.end()){// l = \infty return true; } - DeltaRational l = (*i).second; + + const DeltaRational& l = (*i).second; return l < *assign; } |