aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-04-05 06:48:10 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-04-05 06:48:10 +0000
commit54d4d6353076800e0b640a380ce41e64f1041fbe (patch)
treeee8017b21860ce0fc9ee11520c16b3067e88496c /include
parentcae0864b2437111b6cbbb7a3030e82bcef1a6024 (diff)
downloadklee-54d4d6353076800e0b640a380ce41e64f1041fbe.tar.gz
Add long double support, patch by David Ramos.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@100421 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/klee/Expr.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/klee/Expr.h b/include/klee/Expr.h
index a1a1bc27..0759f953 100644
--- a/include/klee/Expr.h
+++ b/include/klee/Expr.h
@@ -14,6 +14,7 @@
#include "klee/util/Ref.h"
#include "llvm/ADT/APInt.h"
+#include "llvm/ADT/APFloat.h"
#include "llvm/ADT/SmallVector.h"
#include <set>
@@ -95,6 +96,7 @@ public:
static const Width Int16 = 16;
static const Width Int32 = 32;
static const Width Int64 = 64;
+ static const Width Fl80 = 80;
enum Kind {
@@ -361,6 +363,10 @@ public:
return r;
}
+ static ref<ConstantExpr> alloc(const llvm::APFloat &f) {
+ return alloc(f.bitcastToAPInt());
+ }
+
static ref<ConstantExpr> alloc(uint64_t v, Width w) {
return alloc(llvm::APInt(w, v));
}