Skip to content

Commit 10409de

Browse files
committed
clang-format whitespace cleanup in regression test
clang-format was complaining about lines I hadn't touched, cleaning them up anyhow.
1 parent 83d1f31 commit 10409de

File tree

1 file changed

+13
-14
lines changed
  • regression/cbmc/Function_Pointer13

1 file changed

+13
-14
lines changed

regression/cbmc/Function_Pointer13/main.c

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,28 @@ typedef unsigned long long int u64;
55

66
typedef u32 (*myfuncptr)(u32 value);
77

8-
u32 myfunc_1(u32 value1){
9-
return value1*2;
8+
u32 myfunc_1(u32 value1)
9+
{
10+
return value1 * 2;
1011
}
1112

1213
u32 myfunc_2(u32 value2){
13-
assert(value2==4);
14-
return value2*4;
14+
assert(value2 == 4);
15+
return value2 * 4;
1516
}
1617

1718
int main(void){
1819
myfuncptr fptr = 0;
19-
u32 value;
20-
20+
u32 value;
2121

2222
assert(fptr == 0);
2323

24-
fptr=myfunc_1;
25-
value=2;
26-
value=fptr(value); //value should be 4 after this
27-
assert(value == 4);
28-
29-
fptr=myfunc_2;
30-
value=fptr(value); //value should be 16 after this
31-
assert(value == 16);
24+
fptr = myfunc_1;
25+
value = 2;
26+
value = fptr(value); //value should be 4 after this
27+
assert(value == 4);
3228

29+
fptr = myfunc_2;
30+
value = fptr(value); //value should be 16 after this
31+
assert(value == 16);
3332
}

0 commit comments

Comments
 (0)