We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5fb4cbf + 4be7685 commit 15a67e4Copy full SHA for 15a67e4
regression/cbmc/Float24/main.c
@@ -0,0 +1,6 @@
1
+int main()
2
+{
3
+ double d=5.1;
4
+ __CPROVER_assert(0, "");
5
+ return 0;
6
+}
regression/cbmc/Float24/test.desc
@@ -0,0 +1,10 @@
+CORE
+main.c
+--win32 --xml-ui
+^EXIT=10$
+^SIGNAL=0$
+VERIFICATION FAILED
7
+<full_lhs_value>5\.1</full_lhs_value>
8
+--
9
+^warning: ignoring
10
+<full_lhs_value>5\.1l</full_lhs_value>
src/ansi-c/expr2c.cpp
@@ -1859,7 +1859,8 @@ std::string expr2ct::convert_constant(
1859
// ANSI-C: double is default; float/long-double require annotation
1860
if(src.type()==float_type())
1861
dest+='f';
1862
- else if(src.type()==long_double_type())
+ else if(src.type()==long_double_type() &&
1863
+ double_type()!=long_double_type())
1864
dest+='l';
1865
}
1866
else if(dest.size()==4 &&
0 commit comments