Skip to content

Commit 90f278f

Browse files
committed
clang-format includes
1 parent a03eca3 commit 90f278f

File tree

11 files changed

+31
-35
lines changed

11 files changed

+31
-35
lines changed

regression/cbmc-library/__builtin_llabs/main.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include <assert.h>
2-
32
#include <limits.h>
43

54
#ifndef __GNUC__

regression/cbmc-library/abs/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
#include <stdlib.h>
44

55
#ifdef _WIN32
6-
#include <float.h>
7-
#define isnan _isnan
6+
# include <float.h>
7+
# define isnan _isnan
88
#endif
99

1010
int main()

regression/cbmc-library/fesetround/main_01.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#ifdef __GNUC__
2-
#include <assert.h>
3-
#include <fenv.h>
4-
#include <math.h>
2+
# include <assert.h>
3+
# include <fenv.h>
4+
# include <math.h>
55

66
float nondet_value();
77

88
// Should work without this as it defaults to off.
99
// It is explicitly ignored by GCC
10-
#pragma STDC FENV_ACCESS OFF
10+
# pragma STDC FENV_ACCESS OFF
1111

1212
void roundingTest(float f1, float f2)
1313
{
@@ -18,14 +18,14 @@ void roundingTest(float f1, float f2)
1818
float roundToNearestSum = f1 + f2;
1919
assert(roundToNearestSum == 0x1.000002p+0f);
2020

21-
#ifdef FE_DOWNWARD
21+
# ifdef FE_DOWNWARD
2222
// Change the rounding mode
2323
fesetround(FE_DOWNWARD);
2424

2525
// Should now round down to 0x1p+0;
2626
float roundDownSum = f1 + f2;
2727
assert(roundDownSum == 0x1.0p+0f);
28-
#endif
28+
# endif
2929

3030
return;
3131
}

regression/cbmc-library/fesetround/main_02.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,30 @@ int main()
99

1010
#else
1111

12-
#include <assert.h>
13-
#include <fenv.h>
12+
# include <assert.h>
13+
# include <fenv.h>
1414

1515
int main()
1616
{
17-
#ifdef FE_DOWNWARD
17+
# ifdef FE_DOWNWARD
1818
fesetround(FE_DOWNWARD);
1919
assert(fegetround() == FE_DOWNWARD);
20-
#endif
20+
# endif
2121

22-
#ifdef FE_TONEAREST
22+
# ifdef FE_TONEAREST
2323
fesetround(FE_TONEAREST);
2424
assert(fegetround() == FE_TONEAREST);
25-
#endif
25+
# endif
2626

27-
#ifdef FE_TOWARDZERO
27+
# ifdef FE_TOWARDZERO
2828
fesetround(FE_TOWARDZERO);
2929
assert(fegetround() == FE_TOWARDZERO);
30-
#endif
30+
# endif
3131

32-
#ifdef FE_UPWARD
32+
# ifdef FE_UPWARD
3333
fesetround(FE_UPWARD);
3434
assert(fegetround() == FE_UPWARD);
35-
#endif
35+
# endif
3636
}
3737

3838
#endif

regression/cbmc-library/fesetround/main_03.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
#ifdef __clang__
55

6-
#include <assert.h>
7-
#include <fenv.h>
8-
#include <float.h>
6+
# include <assert.h>
7+
# include <fenv.h>
8+
# include <float.h>
99

1010
int main()
1111
{

regression/cbmc-library/getrandom/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# include <assert.h>
1+
#include <assert.h>
22

33
#if defined(__GLIBC__) && \
44
(__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 25))

regression/cbmc-library/htonl/main.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#ifndef _WIN32
2-
#include <arpa/inet.h>
3-
#include <assert.h>
2+
# include <arpa/inet.h>
3+
4+
# include <assert.h>
45

56
int main()
67
{

regression/cbmc-library/llabs/main.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#include <assert.h>
2-
#include <stdlib.h>
3-
42
#include <limits.h>
3+
#include <stdlib.h>
54

65
int main()
76
{

regression/cbmc-library/pipe/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#ifdef _WIN32
2-
#include <fcntl.h>
3-
#include <io.h>
2+
# include <fcntl.h>
3+
# include <io.h>
44
#else
5-
#include <unistd.h>
5+
# include <unistd.h>
66
#endif
77

88
#include <assert.h>

regression/cbmc-library/read/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifdef _WIN32
2-
#include <io.h>
2+
# include <io.h>
33
#else
4-
#include <unistd.h>
4+
# include <unistd.h>
55
#endif
66

77
#include <stdio.h>

0 commit comments

Comments
 (0)