#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 uint32_t;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, float);
int /*<<< orphan*/ stdlib_base_float32_from_word(int, float *);
int main() {
  uint32_t word = 1078523331;
  float x;
  int i;
  for (i = 0; i < 10; i++) {
    stdlib_base_float32_from_word(word + (uint32_t)(i * 10), &x);
    printf("word: %u => %f\n", word, x);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x4048f5c3,-0x8(%rbp)
movl   $0x0,-0x10(%rbp)
cmpl   $0xa,-0x10(%rbp)
jge    117b <main+0x5b>
mov    -0x8(%rbp),%edi
imul   $0xa,-0x10(%rbp),%eax
add    %eax,%edi
lea    -0xc(%rbp),%rsi
call   1040 <stdlib_base_float32_from_word@plt>
mov    -0x8(%rbp),%esi
movss  -0xc(%rbp),%xmm0
lea    0xe98(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    113d <main+0x1d>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0x4(%rsp),%r14
mov    $0x4048f5c3,%edi
mov    %r14,%rsi
call   1040 <stdlib_base_float32_from_word@plt>
movss  0x4(%rsp),%xmm0
lea    0xebd(%rip),%rbx
mov    %rbx,%rdi
mov    $0x4048f5c3,%esi
call   1030 <printf@plt>
mov    $0x4048f5cd,%edi
mov    %r14,%rsi
call   1040 <stdlib_base_float32_from_word@plt>
movss  0x4(%rsp),%xmm0
mov    %rbx,%rdi
mov    $0x4048f5c3,%esi
call   1030 <printf@plt>
mov    $0x4048f5d7,%edi
mov    %r14,%rsi
call   1040 <stdlib_base_float32_from_word@plt>
movss  0x4(%rsp),%xmm0
mov    %rbx,%rdi
mov    $0x4048f5c3,%esi
call   1030 <printf@plt>
mov    $0x4048f5e1,%edi
mov    %r14,%rsi
call   1040 <stdlib_base_float32_from_word@plt>
movss  0x4(%rsp),%xmm0
mov    %rbx,%rdi
mov    $0x4048f5c3,%esi
call   1030 <printf@plt>
mov    $0x4048f5eb,%edi
mov    %r14,%rsi
call   1040 <stdlib_base_float32_from_word@plt>
movss  0x4(%rsp),%xmm0
mov    %rbx,%rdi
mov    $0x4048f5c3,%esi
call   1030 <printf@plt>
mov    $0x4048f5f5,%edi
mov    %r14,%rsi
call   1040 <stdlib_base_float32_from_word@plt>
movss  0x4(%rsp),%xmm0
mov    %rbx,%rdi
mov    $0x4048f5c3,%esi
call   1030 <printf@plt>
mov    $0x4048f5ff,%edi
mov    %r14,%rsi
call   1040 <stdlib_base_float32_from_word@plt>
movss  0x4(%rsp),%xmm0
mov    %rbx,%rdi
mov    $0x4048f5c3,%esi
call   1030 <printf@plt>
mov    $0x4048f609,%edi
mov    %r14,%rsi
call   1040 <stdlib_base_float32_from_word@plt>
movss  0x4(%rsp),%xmm0
mov    %rbx,%rdi
mov    $0x4048f5c3,%esi
call   1030 <printf@plt>
mov    $0x4048f613,%edi
mov    %r14,%rsi
call   1040 <stdlib_base_float32_from_word@plt>
movss  0x4(%rsp),%xmm0
mov    %rbx,%rdi
mov    $0x4048f5c3,%esi
call   1030 <printf@plt>
mov    $0x4048f61d,%edi
mov    %r14,%rsi
call   1040 <stdlib_base_float32_from_word@plt>
movss  0x4(%rsp),%xmm0
mov    %rbx,%rdi
mov    $0x4048f5c3,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [16 x i8] c"word: %u => %f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca float
%4 = alloca i32
store i32 0, i32* %1
store i32 1078523331, i32* %2
store i32 0, i32* %4
br label %5
5: ; preds = %17, %0
%6 = load i32, i32* %4
%7 = icmp slt i32 %6, 10
br i1 %7, label %8, label %20
8: ; preds = %5
%9 = load i32, i32* %2
%10 = load i32, i32* %4
%11 = mul nsw i32 %10, 10
%12 = add nsw i32 %9, %11
%13 = call i32 @stdlib_base_float32_from_word(i32 %12, float* %3)
%14 = load i32, i32* %2
%15 = load float, float* %3
%16 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 %14, float %15)
br label %17
17: ; preds = %8
%18 = load i32, i32* %4
%19 = add nsw i32 %18, 1
store i32 %19, i32* %4
br label %5
20: ; preds = %5
%21 = load i32, i32* %1
ret i32 %21
}

LLVM IR (-O2):
@.str = [16 x i8] c"word: %u => %f\0A\00"
define i32 @main() {
%1 = alloca float
%2 = bitcast float* %1 to i8*
%3 = call i32 @stdlib_base_float32_from_word(i32 1078523331, float* %1)
%4 = load float, float* %1
%5 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 1078523331, float %4)
%6 = call i32 @stdlib_base_float32_from_word(i32 1078523341, float* %1)
%7 = load float, float* %1
%8 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 1078523331, float %7)
%9 = call i32 @stdlib_base_float32_from_word(i32 1078523351, float* %1)
%10 = load float, float* %1
%11 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 1078523331, float %10)
%12 = call i32 @stdlib_base_float32_from_word(i32 1078523361, float* %1)
%13 = load float, float* %1
%14 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 1078523331, float %13)
%15 = call i32 @stdlib_base_float32_from_word(i32 1078523371, float* %1)
%16 = load float, float* %1
%17 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 1078523331, float %16)
%18 = call i32 @stdlib_base_float32_from_word(i32 1078523381, float* %1)
%19 = load float, float* %1
%20 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 1078523331, float %19)
%21 = call i32 @stdlib_base_float32_from_word(i32 1078523391, float* %1)
%22 = load float, float* %1
%23 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 1078523331, float %22)
%24 = call i32 @stdlib_base_float32_from_word(i32 1078523401, float* %1)
%25 = load float, float* %1
%26 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 1078523331, float %25)
%27 = call i32 @stdlib_base_float32_from_word(i32 1078523411, float* %1)
%28 = load float, float* %1
%29 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 1078523331, float %28)
%30 = call i32 @stdlib_base_float32_from_word(i32 1078523421, float* %1)
%31 = load float, float* %1
%32 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 1078523331, float %31)
ret i32 0
}