diff options
author | Tim King <taking@cs.nyu.edu> | 2012-12-14 20:09:54 -0500 |
---|---|---|
committer | Tim King <taking@cs.nyu.edu> | 2012-12-14 20:09:54 -0500 |
commit | edf971e2934367d160830a35e97a2e664e742b28 (patch) | |
tree | 07715a33a93a8edf2aec5afd71f71fb9b1c7d012 /src/theory/arith/delta_rational.cpp | |
parent | 5d0d0b56d1383f1ad4027d8e6dc739c12cacced8 (diff) |
Changing the rewriter to use Boute's Euclidean definition of division.
Diffstat (limited to 'src/theory/arith/delta_rational.cpp')
-rw-r--r-- | src/theory/arith/delta_rational.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/theory/arith/delta_rational.cpp b/src/theory/arith/delta_rational.cpp index a334e2c3d..39b99d625 100644 --- a/src/theory/arith/delta_rational.cpp +++ b/src/theory/arith/delta_rational.cpp @@ -83,23 +83,23 @@ DeltaRationalException::DeltaRationalException(const char* op, const DeltaRation DeltaRationalException::~DeltaRationalException() throw () { } -Integer DeltaRational::floorDivideQuotient(const DeltaRational& y) const throw(DeltaRationalException){ +Integer DeltaRational::euclidianDivideQuotient(const DeltaRational& y) const throw(DeltaRationalException){ if(isIntegral() && y.isIntegral()){ Integer ti = floor(); Integer yi = y.floor(); - return ti.floorDivideQuotient(yi); + return ti.euclidianDivideQuotient(yi); }else{ - throw DeltaRationalException("floorDivideQuotient", *this, y); + throw DeltaRationalException("euclidianDivideQuotient", *this, y); } } -Integer DeltaRational::floorDivideRemainder(const DeltaRational& y) const throw(DeltaRationalException){ +Integer DeltaRational::euclidianDivideRemainder(const DeltaRational& y) const throw(DeltaRationalException){ if(isIntegral() && y.isIntegral()){ Integer ti = floor(); Integer yi = y.floor(); - return ti.floorDivideRemainder(yi); + return ti.euclidianDivideRemainder(yi); }else{ - throw DeltaRationalException("floorDivideRemainder", *this, y); + throw DeltaRationalException("euclidianDivideRemainder", *this, y); } } |