summaryrefslogtreecommitdiff
path: root/src/theory/arith/delta_rational.h
diff options
context:
space:
mode:
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