Skip to content

Commit be6f20f

Browse files
author
Thomas Kiley
committed
Rename variables in test to avoid clash on windows
complex is renamed in the trace to _complex on Windows. Therefore adapt the test to use a non-reserved name since not important to the test.
1 parent cdb0b78 commit be6f20f

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

regression/cbmc/float-trace/test.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
int main()
66
{
7-
float zero = 0.0f;
8-
float one = 1.0f;
9-
float complex = 0x1p+37f;
10-
float inf = INFINITY;
11-
float nan = NAN;
7+
float fzero = 0.0f;
8+
float fone = 1.0f;
9+
float fcomplex = 0x1p+37f;
10+
float finf = INFINITY;
11+
float fnan = NAN;
1212

1313
double dzero = 0.0;
1414
double done = 1.0;

regression/cbmc/float-trace/test.desc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ test.c
44
^EXIT=10$
55
^SIGNAL=0$
66
VERIFICATION FAILED
7-
<full_lhs>zero</full_lhs>
7+
<full_lhs>fzero</full_lhs>
88
<full_lhs_value binary="0{32}">0.0f</full_lhs_value>
9-
<full_lhs>one</full_lhs>
9+
<full_lhs>fone</full_lhs>
1010
<full_lhs_value binary="00111111100000000000000000000000">1.0f</full_lhs_value>
11-
<full_lhs>complex</full_lhs>
11+
<full_lhs>fcomplex</full_lhs>
1212
<full_lhs_value binary="01010010000000000000000000000000">1\.374390e\+11f</full_lhs_value>
13-
<full_lhs>inf</full_lhs>
13+
<full_lhs>finf</full_lhs>
1414
<full_lhs_value binary="01{8}0{23}">\+INFINITY</full_lhs_value>
15-
<full_lhs>nan</full_lhs>
15+
<full_lhs>fnan</full_lhs>
1616
<full_lhs_value binary="01{8}[01]*1[01]*">\+NAN</full_lhs_value>
1717
<full_lhs_value binary="[01]{32}">\+NAN</full_lhs_value>
1818
<full_lhs>dzero</full_lhs>
@@ -21,9 +21,9 @@ VERIFICATION FAILED
2121
<full_lhs_value binary="001{10}0{52}">1.0</full_lhs_value>
2222
<full_lhs>dcomplex</full_lhs>
2323
<full_lhs_value binary="1000000000000011111111111111111111000111111100100110011101110111">-5\.562680e-309</full_lhs_value>
24-
<full_lhs>inf</full_lhs>
24+
<full_lhs>finf</full_lhs>
2525
<full_lhs_value binary="01{11}0{52}">\+INFINITY</full_lhs_value>
26-
<full_lhs>nan</full_lhs>
26+
<full_lhs>fnan</full_lhs>
2727
<full_lhs_value binary="01{11}[01]*1[01]*">\+NAN</full_lhs_value>
2828
<full_lhs_value binary="[01]{64}">\+NAN</full_lhs_value>
2929
--

0 commit comments

Comments
 (0)