diff options
author | Morgan Deters <mdeters@gmail.com> | 2011-09-02 17:56:43 +0000 |
---|---|---|
committer | Morgan Deters <mdeters@gmail.com> | 2011-09-02 17:56:43 +0000 |
commit | 487e610b88f2a634e3285886ff96717c103338de (patch) | |
tree | 7f034b5c9f537195df72ac9ecd7666226dc2ed9f /src/util/rational_cln_imp.h | |
parent | 90267f8729799f44c6fb33ace11b971a16e78dff (diff) |
Partial merge of integers work; this is simple B&B and some pseudoboolean
infrastructure, and takes care not to affect CVC4's performance on LRA
benchmarks.
Diffstat (limited to 'src/util/rational_cln_imp.h')
-rw-r--r-- | src/util/rational_cln_imp.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/util/rational_cln_imp.h b/src/util/rational_cln_imp.h index c05d47175..b97484ff1 100644 --- a/src/util/rational_cln_imp.h +++ b/src/util/rational_cln_imp.h @@ -192,6 +192,14 @@ public: } } + Integer floor() const { + return Integer(cln::floor1(d_value)); + } + + Integer ceiling() const { + return Integer(cln::ceiling1(d_value)); + } + Rational& operator=(const Rational& x){ if(this == &x) return *this; d_value = x.d_value; @@ -226,9 +234,6 @@ public: return d_value >= y.d_value; } - - - Rational operator+(const Rational& y) const{ return Rational( d_value + y.d_value ); } |