diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/klee/Expr.h | 6 |
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)); } |