#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);
int main(void) {
  float values[5];
  float *vp;
  for (vp = &values[0]; vp < &values[5];)
    *vp++ = 14;
  printf("\n%f\n%f\n%f\n%f\n%f\n%f\n", values[5], values[1], values[2],
         values[3], values[4], values[5]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x20(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
lea    -0x20(%rbp),%rcx
add    $0x14,%rcx
cmp    %rcx,%rax
jae    115c <main+0x4c>
mov    -0x28(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x28(%rbp)
movss  0xead(%rip),%xmm0
movss  %xmm0,(%rax)
jmp    1127 <main+0x17>
movss  -0xc(%rbp),%xmm0
movss  -0x1c(%rbp),%xmm1
movss  -0x18(%rbp),%xmm2
movss  -0x14(%rbp),%xmm3
movss  -0x10(%rbp),%xmm4
movss  -0xc(%rbp),%xmm5
lea    0xe83(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xeec(%rip),%rdi
movss  0xee0(%rip),%xmm1
movaps %xmm1,%xmm2
movaps %xmm1,%xmm3
movaps %xmm1,%xmm4
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [20 x i8] c"\0A%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [5 x float]
%3 = alloca float*
store i32 0, i32* %1
%4 = getelementptr inbounds [5 x float], [5 x float]* %2, i64 0, i64 0
store float* %4, float** %3
br label %5
5: ; preds = %9, %0
%6 = load float*, float** %3
%7 = getelementptr inbounds [5 x float], [5 x float]* %2, i64 0, i64 5
%8 = icmp ult float* %6, %7
br i1 %8, label %9, label %12
9: ; preds = %5
%10 = load float*, float** %3
%11 = getelementptr inbounds float, float* %10, i32 1
store float* %11, float** %3
store float 1.400000e+01, float* %10
br label %5
12: ; preds = %5
%13 = getelementptr inbounds [5 x float], [5 x float]* %2, i64 0, i64 5
%14 = load float, float* %13
%15 = getelementptr inbounds [5 x float], [5 x float]* %2, i64 0, i64 1
%16 = load float, float* %15
%17 = getelementptr inbounds [5 x float], [5 x float]* %2, i64 0, i64 2
%18 = load float, float* %17
%19 = getelementptr inbounds [5 x float], [5 x float]* %2, i64 0, i64 3
%20 = load float, float* %19
%21 = getelementptr inbounds [5 x float], [5 x float]* %2, i64 0, i64 4
%22 = load float, float* %21
%23 = getelementptr inbounds [5 x float], [5 x float]* %2, i64 0, i64 5
%24 = load float, float* %23
%25 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), float %14, float %16, float %18, float %20, float %22, float %24)
ret i32 0
}

LLVM IR (-O2):
@.str = [20 x i8] c"\0A%f\0A%f\0A%f\0A%f\0A%f\0A%f\0A\00"
define i32 @main() {
%1 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), float poison, float 1.400000e+01, float 1.400000e+01, float 1.400000e+01, float 1.400000e+01, float poison)
ret i32 0
}