#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*/ printf(char *, float, float, float, float, float, float,
                          float, float, float, float, float, float, float,
                          float, double);
void many_floats(float f1, float f2, float f3, float f4, float f5, float f6,
                 float f7, float f8, float f9, float f10, float f11, float f12,
                 float f13, float f14, double f15) {
  printf("%f\n%f\n%f\n%f\n%f\n%f\n%f\n%f\n%f\n%f\n%f\n%f\n%f\n%f\n%f\n", f1, f2,
         f3, f4, f5, f6, f7, f8, f9, f10, f11, f12, f13, f14, f15);
}


x86 assembly (clang, -O0):
<many_floats>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movsd  0x40(%rbp),%xmm8
movss  0x38(%rbp),%xmm8
movss  0x30(%rbp),%xmm8
movss  0x28(%rbp),%xmm8
movss  0x20(%rbp),%xmm8
movss  0x18(%rbp),%xmm8
movss  0x10(%rbp),%xmm8
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  %xmm3,-0x10(%rbp)
movss  %xmm4,-0x14(%rbp)
movss  %xmm5,-0x18(%rbp)
movss  %xmm6,-0x1c(%rbp)
movss  %xmm7,-0x20(%rbp)
movss  -0x4(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
movss  -0xc(%rbp),%xmm2
movss  -0x10(%rbp),%xmm3
movss  -0x14(%rbp),%xmm4
movss  -0x18(%rbp),%xmm5
movss  -0x1c(%rbp),%xmm6
movss  -0x20(%rbp),%xmm7
movss  0x10(%rbp),%xmm14
movss  0x18(%rbp),%xmm13
movss  0x20(%rbp),%xmm12
movss  0x28(%rbp),%xmm11
movss  0x30(%rbp),%xmm10
movss  0x38(%rbp),%xmm9
movsd  0x40(%rbp),%xmm8
lea    0xe3d(%rip),%rdi
movss  %xmm14,(%rsp)
movss  %xmm13,0x8(%rsp)
movss  %xmm12,0x10(%rsp)
movss  %xmm11,0x18(%rsp)
movss  %xmm10,0x20(%rsp)
movss  %xmm9,0x28(%rsp)
movsd  %xmm8,0x30(%rsp)
call   1030 <printf@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<many_floats>:
lea    0xee9(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [46 x i8] c"%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A\00"
define void @many_floats(float %0, float %1, float %2, float %3, float %4, float %5, float %6, float %7, float %8, float %9, float %10, float %11, float %12, float %13, double %14) {
%16 = alloca float
%17 = alloca float
%18 = alloca float
%19 = alloca float
%20 = alloca float
%21 = alloca float
%22 = alloca float
%23 = alloca float
%24 = alloca float
%25 = alloca float
%26 = alloca float
%27 = alloca float
%28 = alloca float
%29 = alloca float
%30 = alloca double
store float %0, float* %16
store float %1, float* %17
store float %2, float* %18
store float %3, float* %19
store float %4, float* %20
store float %5, float* %21
store float %6, float* %22
store float %7, float* %23
store float %8, float* %24
store float %9, float* %25
store float %10, float* %26
store float %11, float* %27
store float %12, float* %28
store float %13, float* %29
store double %14, double* %30
%31 = load float, float* %16
%32 = load float, float* %17
%33 = load float, float* %18
%34 = load float, float* %19
%35 = load float, float* %20
%36 = load float, float* %21
%37 = load float, float* %22
%38 = load float, float* %23
%39 = load float, float* %24
%40 = load float, float* %25
%41 = load float, float* %26
%42 = load float, float* %27
%43 = load float, float* %28
%44 = load float, float* %29
%45 = load double, double* %30
%46 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), float %31, float %32, float %33, float %34, float %35, float %36, float %37, float %38, float %39, float %40, float %41, float %42, float %43, float %44, double %45)
ret void
}

LLVM IR (-O2):
@.str = [46 x i8] c"%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A\00"
define void @many_floats(float %0, float %1, float %2, float %3, float %4, float %5, float %6, float %7, float %8, float %9, float %10, float %11, float %12, float %13, double %14) {
%16 = tail call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), float %0, float %1, float %2, float %3, float %4, float %5, float %6, float %7, float %8, float %9, float %10, float %11, float %12, float %13, double %14)
ret void
}