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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/theory/arith/delta_rational.h b/src/theory/arith/delta_rational.h
index 7945b44c3..c2924f239 100644
--- a/src/theory/arith/delta_rational.h
+++ b/src/theory/arith/delta_rational.h
@@ -191,6 +191,11 @@ public:
return !(*this <= other);
}
+ int compare(const DeltaRational& other) const{
+ int cmpRes = c.cmp(other.c);
+ return (cmpRes != 0) ? cmpRes : (k.cmp(other.k));
+ }
+
DeltaRational& operator=(const DeltaRational& other){
c = other.c;
k = other.k;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback