summaryrefslogtreecommitdiff
path: root/src/util/floatingpoint.cpp
diff options
context:
space:
mode:
authorMathias Preiner <mathias.preiner@gmail.com>2019-10-30 15:27:10 -0700
committerGitHub <noreply@github.com>2019-10-30 15:27:10 -0700
commit43ab3f4cd1aa5549cb1aa3c20a2d589614bcb8fc (patch)
treecf7b5d7f73a4d4ddc34492334a7d0eb90b57b77b /src/util/floatingpoint.cpp
parent8dda9531995953c3cec094339002f2ee7cadae08 (diff)
Unify CVC4_CHECK/CVC4_DCHECK/AlwaysAssert/Assert. (#3366)
Diffstat (limited to 'src/util/floatingpoint.cpp')
-rw-r--r--src/util/floatingpoint.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/util/floatingpoint.cpp b/src/util/floatingpoint.cpp
index f7e73ca4b..1b1bfddc2 100644
--- a/src/util/floatingpoint.cpp
+++ b/src/util/floatingpoint.cpp
@@ -15,7 +15,7 @@
**/
#include "util/floatingpoint.h"
-#include "base/cvc4_assert.h"
+#include "base/check.h"
#include "util/integer.h"
#include <math.h>
@@ -459,7 +459,7 @@ void traits::invariant(const prop &p)
#ifndef CVC4_USE_SYMFPU
void FloatingPointLiteral::unfinished(void) const
{
- Unimplemented("Floating-point literals not yet implemented.");
+ Unimplemented() << "Floating-point literals not yet implemented.";
}
#endif
@@ -500,7 +500,7 @@ static FloatingPointLiteral constructorHelperBitVector(
#else
return FloatingPointLiteral(2, 2, 0.0);
#endif
- Unreachable("Constructor helper broken");
+ Unreachable() << "Constructor helper broken";
}
FloatingPoint::FloatingPoint (const FloatingPointSize &ct, const RoundingMode &rm, const BitVector &bv, bool signedBV) :
@@ -592,7 +592,7 @@ static FloatingPointLiteral constructorHelperBitVector(
// Compute the sticky bit
Rational remainder(r - workingSig);
- Assert(Rational(0,1) <= remainder);
+ Assert(Rational(0, 1) <= remainder);
if (!remainder.isZero()) {
sig = sig | one;
@@ -616,10 +616,10 @@ static FloatingPointLiteral constructorHelperBitVector(
symfpu::convertFloatToFloat(exactFormat, ct, rm, exactFloat));
return rounded;
#else
- Unreachable("no concrete implementation of FloatingPointLiteral");
+ Unreachable() << "no concrete implementation of FloatingPointLiteral";
#endif
}
- Unreachable("Constructor helper broken");
+ Unreachable() << "Constructor helper broken";
}
FloatingPoint::FloatingPoint (const FloatingPointSize &ct, const RoundingMode &rm, const Rational &r) :
@@ -923,7 +923,7 @@ static FloatingPointLiteral constructorHelperBitVector(
// Only have pow(uint32_t) so we should check this.
Assert(this->t.significand() <= 32);
-
+
if (!(exp.strictlyNegative())) {
Integer r(signedSignificand.multiplyByPow2(exp.toUnsignedInt()));
return PartialRational(Rational(r), true);
@@ -935,7 +935,7 @@ static FloatingPointLiteral constructorHelperBitVector(
}
}
- Unreachable("Convert float literal to real broken.");
+ Unreachable() << "Convert float literal to real broken.";
}
BitVector FloatingPoint::pack (void) const {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback