#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ bar(double *);
int /*<<< orphan*/ foo(float *);
int /*<<< orphan*/ printf(char *, float, float, float);
int /*<<< orphan*/ sseround(float *);
int main(void) {
  float f = 3.14f;
  double d = 2.71;
  float vec[] = {3.14f, 5.66f, 9.61f};
  foo(&f);
  bar(&d);
  sseround(vec);
  printf("%f, %f, %f\n", vec[0], vec[1], vec[2]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movss  0xeb1(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movsd  0xe9c(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
mov    0xe9c(%rip),%rax
mov    %rax,-0x1c(%rbp)
mov    0xe9a(%rip),%eax
mov    %eax,-0x14(%rbp)
lea    -0x8(%rbp),%rdi
call   1050 <foo@plt>
lea    -0x10(%rbp),%rdi
call   1030 <bar@plt>
lea    -0x1c(%rbp),%rdi
call   1060 <sseround@plt>
movss  -0x1c(%rbp),%xmm0
movss  -0x18(%rbp),%xmm1
movss  -0x14(%rbp),%xmm2
lea    0xe6a(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
movl   $0x4048f5c3,0xc(%rsp)
40
movabs $0x4005ae147ae147ae,%rax
ae 05 40
mov    %rax,0x10(%rsp)
mov    0xea7(%rip),%eax
mov    %eax,0x8(%rsp)
mov    0xe94(%rip),%rax
mov    %rax,(%rsp)
lea    0xc(%rsp),%rdi
call   1050 <foo@plt>
lea    0x10(%rsp),%rdi
call   1030 <bar@plt>
mov    %rsp,%rdi
call   1060 <sseround@plt>
movss  (%rsp),%xmm0
movss  0x4(%rsp),%xmm1
movss  0x8(%rsp),%xmm2
lea    0xe68(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@__const.main.vec = [3 x float] [float 0x40091EB860000000, float 0x4016A3D700000000, float 0x40233851E0000000]
@.str = [12 x i8] c"%f, %f, %f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca double
%4 = alloca [3 x float]
store i32 0, i32* %1
store float 0x40091EB860000000, float* %2
store double 2.710000e+00, double* %3
%5 = bitcast [3 x float]* %4 to i8*
%6 = call i32 @foo(float* %2)
%7 = call i32 @bar(double* %3)
%8 = getelementptr inbounds [3 x float], [3 x float]* %4, i64 0, i64 0
%9 = call i32 @sseround(float* %8)
%10 = getelementptr inbounds [3 x float], [3 x float]* %4, i64 0, i64 0
%11 = load float, float* %10
%12 = getelementptr inbounds [3 x float], [3 x float]* %4, i64 0, i64 1
%13 = load float, float* %12
%14 = getelementptr inbounds [3 x float], [3 x float]* %4, i64 0, i64 2
%15 = load float, float* %14
%16 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), float %11, float %13, float %15)
ret i32 0
}

LLVM IR (-O2):
@__const.main.vec = [3 x float] [float 0x40091EB860000000, float 0x4016A3D700000000, float 0x40233851E0000000]
@.str = [12 x i8] c"%f, %f, %f\0A\00"
define i32 @main() {
%1 = alloca float
%2 = alloca double
%3 = alloca [3 x float]
%4 = bitcast float* %1 to i8*
store float 0x40091EB860000000, float* %1
%5 = bitcast double* %2 to i8*
store double 2.710000e+00, double* %2
%6 = bitcast [3 x float]* %3 to i8*
%7 = call i32 @foo(float* %1)
%8 = call i32 @bar(double* %2)
%9 = getelementptr inbounds [3 x float], [3 x float]* %3, i64 0, i64 0
%10 = call i32 @sseround(float* %9)
%11 = load float, float* %9
%12 = getelementptr inbounds [3 x float], [3 x float]* %3, i64 0, i64 1
%13 = load float, float* %12
%14 = getelementptr inbounds [3 x float], [3 x float]* %3, i64 0, i64 2
%15 = load float, float* %14
%16 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), float %11, float %13, float %15)
ret i32 0
}