File tree 2 files changed +33
-0
lines changed
regression/cbmc/float-trace 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ #include <assert.h>
2
+ #include <stdbool.h>
3
+
4
+ int main () {
5
+ float zero = 0.0f ;
6
+ float one = 1.0f ;
7
+ double dzero = 0.0 ;
8
+ float complex = 0x1p+37f ;
9
+
10
+ assert (false);
11
+
12
+ return 0 ;
13
+ }
14
+
15
+ void test (float value ) {
16
+ assert (value == 1.0f );
17
+ assert (value == 0.0f );
18
+ }
19
+
20
+
21
+
Original file line number Diff line number Diff line change
1
+ CORE
2
+ test.c
3
+ --trace --xml-ui
4
+ ^EXIT=10$
5
+ ^SIGNAL=0$
6
+ VERIFICATION FAILED
7
+ <full_lhs_value binary="00000000000000000000000000000000">0.0f</full_lhs_value>
8
+ <full_lhs_value binary="00111111100000000000000000000000">1.0f</full_lhs_value>
9
+ <full_lhs_value binary="0000000000000000000000000000000000000000000000000000000000000000">0.0</full_lhs_value>
10
+ <full_lhs_value binary="01010010000000000000000000000000">1\.374390e\+11f</full_lhs_value>
11
+ --
12
+ --
You can’t perform that action at this time.
0 commit comments