Skip to content

Commit f59cd82

Browse files
committed
Tacas fixes
1 parent 1510a23 commit f59cd82

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

include/smack/Naming.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class Naming {
3333
static const std::string FLOAT_TYPE;
3434
static const std::string DOUBLE_TYPE;
3535
static const std::string LONG_DOUBLE_TYPE;
36+
static const std::string FP128_TYPE;
3637
static const std::string PTR_TYPE;
3738
static const std::string VECTOR_TYPE;
3839
static const std::string NULL_VAL;

lib/smack/Prelude.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,9 @@ const std::vector<unsigned> IntOpGen::INTEGER_SIZES{
178178
// floating-point layout map: bit-width -> (exponent bit-width, significand
179179
// bit-width)
180180
const std::map<unsigned, std::pair<unsigned, unsigned>> FpOpGen::FP_LAYOUT{
181-
{16, {5, 11}}, {32, {8, 24}}, {64, {11, 53}}, {80, {15, 65}}};
181+
{16, {5, 11}}, {32, {8, 24}}, {64, {11, 53}}, {80, {15, 65}}, {128 , {15, 113}}};
182182

183-
const std::vector<unsigned> FpOpGen::FP_BIT_WIDTHS{16, 32, 64, 80};
183+
const std::vector<unsigned> FpOpGen::FP_BIT_WIDTHS{16, 32, 64, 80, 128};
184184

185185
// make Boogie map selection expression such as
186186
// M[p], M[$add.ref(p, 1)]

lib/smack/SmackRep.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ std::string SmackRep::type(const llvm::Type *t) {
226226
return Naming::DOUBLE_TYPE;
227227
else if (t->isX86_FP80Ty())
228228
return Naming::LONG_DOUBLE_TYPE;
229+
else if (t->isFP128Ty())
230+
return Naming::FP128_TYPE;
229231
else
230232
llvm_unreachable("Unsupported floating-point type.");
231233
}

0 commit comments

Comments
 (0)