summaryrefslogtreecommitdiff
path: root/src/theory/arith/delta_rational.h
diff options
context:
space:
mode:
authorTim King <taking@cs.nyu.edu>2012-06-12 19:57:23 +0000
committerTim King <taking@cs.nyu.edu>2012-06-12 19:57:23 +0000
commit883b975204c9d08d3c6eeae56c9eb0191f850438 (patch)
tree420920a9b1fa4ddb2f692e393dc77ad359ca4e3c /src/theory/arith/delta_rational.h
parent73e4e0b71e7c535b1005fe02d2303c9ed8cb3c62 (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.h4
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;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback