diff options
author | Tim King <taking@cs.nyu.edu> | 2012-06-12 19:57:23 +0000 |
---|---|---|
committer | Tim King <taking@cs.nyu.edu> | 2012-06-12 19:57:23 +0000 |
commit | 883b975204c9d08d3c6eeae56c9eb0191f850438 (patch) | |
tree | 420920a9b1fa4ddb2f692e393dc77ad359ca4e3c /src/theory/arith/delta_rational.h | |
parent | 73e4e0b71e7c535b1005fe02d2303c9ed8cb3c62 (diff) |
Fix to yesterday's change in arithmetic.
Diffstat (limited to 'src/theory/arith/delta_rational.h')
-rw-r--r-- | src/theory/arith/delta_rational.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/theory/arith/delta_rational.h b/src/theory/arith/delta_rational.h index 12110fab4..ed256faa1 100644 --- a/src/theory/arith/delta_rational.h +++ b/src/theory/arith/delta_rational.h @@ -93,6 +93,10 @@ public: return *(this) + (a * negOne); } + DeltaRational operator-() const{ + return DeltaRational(-c, -k); + } + DeltaRational operator/(const Rational& a) const{ CVC4::Rational tmpC = c/a; CVC4::Rational tmpK = k/a; |