#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 */
typedef int /*<<< orphan*/ values;

/* Variables and functions */
float FLT_EPSILON;
float M_PI;
int /*<<< orphan*/ showFloatStructure(float);
int main(int argc, char **argv) {
  int i;
  float values[] = {0.0f, 1.0f, -1.0f, M_PI, FLT_EPSILON};
  for (i = 0; i < (sizeof(values) / sizeof(values[0])); i++)
    showFloatStructure(values[i]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x30(%rbp)
movss  0xece(%rip),%xmm0
movss  %xmm0,-0x2c(%rbp)
movss  0xebd(%rip),%xmm0
movss  %xmm0,-0x28(%rbp)
mov    0x2e99(%rip),%rax
movss  (%rax),%xmm0
movss  %xmm0,-0x24(%rbp)
mov    0x2e79(%rip),%rax
movss  (%rax),%xmm0
movss  %xmm0,-0x20(%rbp)
movl   $0x0,-0x14(%rbp)
movslq -0x14(%rbp),%rax
cmp    $0x5,%rax
jae    119a <main+0x8a>
movslq -0x14(%rbp),%rax
movss  -0x30(%rbp,%rax,4),%xmm0
call   1030 <showFloatStructure@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    116f <main+0x5f>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2ed0(%rip),%rax
movss  (%rax),%xmm0
movss  %xmm0,(%rsp)
mov    0x2eb0(%rip),%rax
movss  (%rax),%xmm0
movss  %xmm0,0x4(%rsp)
xorps  %xmm0,%xmm0
call   1030 <showFloatStructure@plt>
movss  0xebe(%rip),%xmm0
call   1030 <showFloatStructure@plt>
movss  0xeb5(%rip),%xmm0
call   1030 <showFloatStructure@plt>
movss  (%rsp),%xmm0
call   1030 <showFloatStructure@plt>
movss  0x4(%rsp),%xmm0
call   1030 <showFloatStructure@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@M_PI = global float 0.000000e+00
@FLT_EPSILON = global float 0.000000e+00
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca [5 x float]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = getelementptr inbounds [5 x float], [5 x float]* %7, i64 0, i64 0
store float 0.000000e+00, float* %8
%9 = getelementptr inbounds float, float* %8, i64 1
store float 1.000000e+00, float* %9
%10 = getelementptr inbounds float, float* %9, i64 1
store float -1.000000e+00, float* %10
%11 = getelementptr inbounds float, float* %10, i64 1
%12 = load float, float* @M_PI
store float %12, float* %11
%13 = getelementptr inbounds float, float* %11, i64 1
%14 = load float, float* @FLT_EPSILON
store float %14, float* %13
store i32 0, i32* %6
br label %15
15: ; preds = %25, %2
%16 = load i32, i32* %6
%17 = sext i32 %16 to i64
%18 = icmp ult i64 %17, 5
br i1 %18, label %19, label %28
19: ; preds = %15
%20 = load i32, i32* %6
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [5 x float], [5 x float]* %7, i64 0, i64 %21
%23 = load float, float* %22
%24 = call i32 @showFloatStructure(float %23)
br label %25
25: ; preds = %19
%26 = load i32, i32* %6
%27 = add nsw i32 %26, 1
store i32 %27, i32* %6
br label %15
28: ; preds = %15
ret i32 0
}

LLVM IR (-O2):
@M_PI = global float 0.000000e+00
@FLT_EPSILON = global float 0.000000e+00
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = load float, float* @M_PI
%4 = load float, float* @FLT_EPSILON
%5 = tail call i32 @showFloatStructure(float 0.000000e+00)
%6 = tail call i32 @showFloatStructure(float 1.000000e+00)
%7 = tail call i32 @showFloatStructure(float -1.000000e+00)
%8 = tail call i32 @showFloatStructure(float %3)
%9 = tail call i32 @showFloatStructure(float %4)
ret i32 0
}