#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 void *uint8_t;
typedef int uint32_t;
struct u {
  int ui;
  float f;
  int /*<<< orphan*/ i;
};
typedef int /*<<< orphan*/ int32_t;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int fread(void **, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ fwrite(char *, int /*<<< orphan*/, int,
                          int /*<<< orphan*/ *);
int /*<<< orphan*/ sprintf(char *, char *, float);
int /*<<< orphan*/ strlen(char *);
int main(const int argc, const char *argv[]) {
  FILE *in_fp, *out_fp;
  uint8_t temp;
  union u {
    uint32_t ui;
    float f;
    int32_t i;
  } data;
  char buf[10000];
  in_fp = fopen("test-floor.out.bin", "rb");
  out_fp = fopen("test-floor.out", "w");
  while (1) {
    if (fread(&temp, 1, 1, in_fp) != 1)
      break;
    data.ui = temp;
    data.ui <<= 8;
    if (fread(&temp, 1, 1, in_fp) != 1)
      break;
    data.ui += temp;
    data.ui <<= 8;
    if (fread(&temp, 1, 1, in_fp) != 1)
      break;
    data.ui += temp;
    data.ui <<= 8;
    if (fread(&temp, 1, 1, in_fp) != 1)
      break;
    data.ui += temp;
    sprintf(buf, "\t%f\t", data.f);
    fwrite(buf, strlen(buf), 1, out_fp);
    if (fread(&temp, 1, 1, in_fp) != 1)
      break;
    data.ui = temp;
    data.ui <<= 8;
    if (fread(&temp, 1, 1, in_fp) != 1)
      break;
    data.ui += temp;
    data.ui <<= 8;
    if (fread(&temp, 1, 1, in_fp) != 1)
      break;
    data.ui += temp;
    data.ui <<= 8;
    if (fread(&temp, 1, 1, in_fp) != 1)
      break;
    data.ui += temp;
    sprintf(buf, "%f\n", data.f);
    fwrite(buf, strlen(buf), 1, out_fp);
  }
  fclose(out_fp);
  fclose(in_fp);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2750,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xe80(%rip),%rdi
lea    0xe8c(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x18(%rbp)
lea    0xe7f(%rip),%rdi
lea    0xe87(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rcx
lea    -0x28(%rbp),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1030 <fread@plt>
cmp    $0x1,%eax
je     11c9 <main+0x69>
jmp    13e6 <main+0x286>
mov    -0x28(%rbp),%rax
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%eax
shl    $0x8,%eax
mov    %eax,-0x30(%rbp)
mov    -0x18(%rbp),%rcx
lea    -0x28(%rbp),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1030 <fread@plt>
cmp    $0x1,%eax
je     11fb <main+0x9b>
jmp    13e6 <main+0x286>
mov    -0x28(%rbp),%rax
movslq -0x30(%rbp),%rcx
add    %rcx,%rax
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%eax
shl    $0x8,%eax
mov    %eax,-0x30(%rbp)
mov    -0x18(%rbp),%rcx
lea    -0x28(%rbp),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1030 <fread@plt>
cmp    $0x1,%eax
je     1234 <main+0xd4>
jmp    13e6 <main+0x286>
mov    -0x28(%rbp),%rax
movslq -0x30(%rbp),%rcx
add    %rcx,%rax
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%eax
shl    $0x8,%eax
mov    %eax,-0x30(%rbp)
mov    -0x18(%rbp),%rcx
lea    -0x28(%rbp),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1030 <fread@plt>
cmp    $0x1,%eax
je     126d <main+0x10d>
jmp    13e6 <main+0x286>
mov    -0x28(%rbp),%rax
movslq -0x30(%rbp),%rcx
add    %rcx,%rax
mov    %eax,-0x30(%rbp)
lea    -0x2740(%rbp),%rdi
movss  -0x30(%rbp),%xmm0
lea    0xd99(%rip),%rsi
call   1070 <sprintf@plt>
lea    -0x2740(%rbp),%rax
mov    %rax,-0x2748(%rbp)
lea    -0x2740(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0x2748(%rbp),%rdi
mov    %eax,%esi
mov    -0x20(%rbp),%rcx
mov    $0x1,%edx
call   1080 <fwrite@plt>
mov    -0x18(%rbp),%rcx
lea    -0x28(%rbp),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1030 <fread@plt>
cmp    $0x1,%eax
je     12e6 <main+0x186>
jmp    13e6 <main+0x286>
mov    -0x28(%rbp),%rax
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%eax
shl    $0x8,%eax
mov    %eax,-0x30(%rbp)
mov    -0x18(%rbp),%rcx
lea    -0x28(%rbp),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1030 <fread@plt>
cmp    $0x1,%eax
je     1318 <main+0x1b8>
jmp    13e6 <main+0x286>
mov    -0x28(%rbp),%rax
movslq -0x30(%rbp),%rcx
add    %rcx,%rax
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%eax
shl    $0x8,%eax
mov    %eax,-0x30(%rbp)
mov    -0x18(%rbp),%rcx
lea    -0x28(%rbp),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1030 <fread@plt>
cmp    $0x1,%eax
je     1351 <main+0x1f1>
jmp    13e6 <main+0x286>
mov    -0x28(%rbp),%rax
movslq -0x30(%rbp),%rcx
add    %rcx,%rax
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%eax
shl    $0x8,%eax
mov    %eax,-0x30(%rbp)
mov    -0x18(%rbp),%rcx
lea    -0x28(%rbp),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1030 <fread@plt>
cmp    $0x1,%eax
je     138a <main+0x22a>
jmp    13e6 <main+0x286>
mov    -0x28(%rbp),%rax
movslq -0x30(%rbp),%rcx
add    %rcx,%rax
mov    %eax,-0x30(%rbp)
lea    -0x2740(%rbp),%rdi
movss  -0x30(%rbp),%xmm0
lea    0xc81(%rip),%rsi
call   1070 <sprintf@plt>
lea    -0x2740(%rbp),%rax
mov    %rax,-0x2750(%rbp)
lea    -0x2740(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0x2750(%rbp),%rdi
mov    %eax,%esi
mov    -0x20(%rbp),%rcx
mov    $0x1,%edx
call   1080 <fwrite@plt>
jmp    11a7 <main+0x47>
mov    -0x20(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x18(%rbp),%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
add    $0x2750,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x2728,%rsp
lea    0xe88(%rip),%rdi
lea    0xe94(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,%r14
lea    0xe88(%rip),%rdi
lea    0xe90(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,0x8(%rsp)
mov    %rsp,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1030 <fread@plt>
cmp    $0x1,%eax
jne    1348 <main+0x1e8>
mov    %rsp,%r15
lea    0x10(%rsp),%r13
mov    (%rsp),%rbp
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1030 <fread@plt>
cmp    $0x1,%eax
jne    1348 <main+0x1e8>
mov    (%rsp),%r12
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1030 <fread@plt>
cmp    $0x1,%eax
jne    1348 <main+0x1e8>
mov    (%rsp),%rbx
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1030 <fread@plt>
cmp    $0x1,%eax
jne    1348 <main+0x1e8>
shl    $0x8,%ebp
add    %ebp,%r12d
shl    $0x8,%r12d
add    %r12d,%ebx
shl    $0x8,%ebx
add    (%rsp),%ebx
movd   %ebx,%xmm0
mov    %r13,%rdi
lea    0xddb(%rip),%rsi
call   1070 <sprintf@plt>
mov    %r13,%rdi
call   1050 <strlen@plt>
mov    %r13,%rdi
mov    %eax,%esi
mov    $0x1,%edx
mov    0x8(%rsp),%rcx
call   1080 <fwrite@plt>
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1030 <fread@plt>
cmp    $0x1,%eax
jne    1348 <main+0x1e8>
mov    (%rsp),%r12
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1030 <fread@plt>
cmp    $0x1,%eax
jne    1348 <main+0x1e8>
mov    (%rsp),%rbx
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1030 <fread@plt>
cmp    $0x1,%eax
jne    1348 <main+0x1e8>
mov    (%rsp),%rbp
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1030 <fread@plt>
cmp    $0x1,%eax
jne    1348 <main+0x1e8>
shl    $0x8,%r12d
add    %r12d,%ebx
shl    $0x8,%ebx
add    %ebx,%ebp
shl    $0x8,%ebp
add    (%rsp),%ebp
movd   %ebp,%xmm0
mov    %r13,%rdi
lea    0xd23(%rip),%rsi
call   1070 <sprintf@plt>
mov    %r13,%rdi
call   1050 <strlen@plt>
mov    %r13,%rdi
mov    %eax,%esi
mov    $0x1,%edx
mov    0x8(%rsp),%rcx
call   1080 <fwrite@plt>
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1030 <fread@plt>
cmp    $0x1,%eax
je     11c5 <main+0x65>
mov    0x8(%rsp),%rdi
call   1040 <fclose@plt>
mov    %r14,%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
add    $0x2728,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%union.u = type { i32 }
@.str = [19 x i8] c"test-floor.out.bin\00"
@.str.1 = [3 x i8] c"rb\00"
@.str.2 = [15 x i8] c"test-floor.out\00"
@.str.3 = [2 x i8] c"w\00"
@.str.4 = [5 x i8] c"\09%f\09\00"
@.str.5 = [4 x i8] c"%f\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca i32*
%8 = alloca i8*
%9 = alloca %union.u
%10 = alloca [10000 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%11 = call i32* @fopen(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %11, i32** %6
%12 = call i32* @fopen(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32* %12, i32** %7
br label %13
13: ; preds = %2, %116
%14 = load i32*, i32** %6
%15 = call i32 @fread(i8** %8, i32 1, i32 1, i32* %14)
%16 = icmp ne i32 %15, 1
br i1 %16, label %17, label %18
17: ; preds = %13
br label %132
18: ; preds = %13
%19 = load i8*, i8** %8
%20 = ptrtoint i8* %19 to i32
%21 = bitcast %union.u* %9 to i32*
store i32 %20, i32* %21
%22 = bitcast %union.u* %9 to i32*
%23 = load i32, i32* %22
%24 = shl i32 %23, 8
store i32 %24, i32* %22
%25 = load i32*, i32** %6
%26 = call i32 @fread(i8** %8, i32 1, i32 1, i32* %25)
%27 = icmp ne i32 %26, 1
br i1 %27, label %28, label %29
28: ; preds = %18
br label %132
29: ; preds = %18
%30 = load i8*, i8** %8
%31 = bitcast %union.u* %9 to i32*
%32 = load i32, i32* %31
%33 = sext i32 %32 to i64
%34 = getelementptr i8, i8* %30, i64 %33
%35 = ptrtoint i8* %34 to i32
store i32 %35, i32* %31
%36 = bitcast %union.u* %9 to i32*
%37 = load i32, i32* %36
%38 = shl i32 %37, 8
store i32 %38, i32* %36
%39 = load i32*, i32** %6
%40 = call i32 @fread(i8** %8, i32 1, i32 1, i32* %39)
%41 = icmp ne i32 %40, 1
br i1 %41, label %42, label %43
42: ; preds = %29
br label %132
43: ; preds = %29
%44 = load i8*, i8** %8
%45 = bitcast %union.u* %9 to i32*
%46 = load i32, i32* %45
%47 = sext i32 %46 to i64
%48 = getelementptr i8, i8* %44, i64 %47
%49 = ptrtoint i8* %48 to i32
store i32 %49, i32* %45
%50 = bitcast %union.u* %9 to i32*
%51 = load i32, i32* %50
%52 = shl i32 %51, 8
store i32 %52, i32* %50
%53 = load i32*, i32** %6
%54 = call i32 @fread(i8** %8, i32 1, i32 1, i32* %53)
%55 = icmp ne i32 %54, 1
br i1 %55, label %56, label %57
56: ; preds = %43
br label %132
57: ; preds = %43
%58 = load i8*, i8** %8
%59 = bitcast %union.u* %9 to i32*
%60 = load i32, i32* %59
%61 = sext i32 %60 to i64
%62 = getelementptr i8, i8* %58, i64 %61
%63 = ptrtoint i8* %62 to i32
store i32 %63, i32* %59
%64 = getelementptr inbounds [10000 x i8], [10000 x i8]* %10, i64 0, i64 0
%65 = bitcast %union.u* %9 to float*
%66 = load float, float* %65
%67 = call i32 @sprintf(i8* %64, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), float %66)
%68 = getelementptr inbounds [10000 x i8], [10000 x i8]* %10, i64 0, i64 0
%69 = getelementptr inbounds [10000 x i8], [10000 x i8]* %10, i64 0, i64 0
%70 = call i32 @strlen(i8* %69)
%71 = load i32*, i32** %7
%72 = call i32 @fwrite(i8* %68, i32 %70, i32 1, i32* %71)
%73 = load i32*, i32** %6
%74 = call i32 @fread(i8** %8, i32 1, i32 1, i32* %73)
%75 = icmp ne i32 %74, 1
br i1 %75, label %76, label %77
76: ; preds = %57
br label %132
77: ; preds = %57
%78 = load i8*, i8** %8
%79 = ptrtoint i8* %78 to i32
%80 = bitcast %union.u* %9 to i32*
store i32 %79, i32* %80
%81 = bitcast %union.u* %9 to i32*
%82 = load i32, i32* %81
%83 = shl i32 %82, 8
store i32 %83, i32* %81
%84 = load i32*, i32** %6
%85 = call i32 @fread(i8** %8, i32 1, i32 1, i32* %84)
%86 = icmp ne i32 %85, 1
br i1 %86, label %87, label %88
87: ; preds = %77
br label %132
88: ; preds = %77
%89 = load i8*, i8** %8
%90 = bitcast %union.u* %9 to i32*
%91 = load i32, i32* %90
%92 = sext i32 %91 to i64
%93 = getelementptr i8, i8* %89, i64 %92
%94 = ptrtoint i8* %93 to i32
store i32 %94, i32* %90
%95 = bitcast %union.u* %9 to i32*
%96 = load i32, i32* %95
%97 = shl i32 %96, 8
store i32 %97, i32* %95
%98 = load i32*, i32** %6
%99 = call i32 @fread(i8** %8, i32 1, i32 1, i32* %98)
%100 = icmp ne i32 %99, 1
br i1 %100, label %101, label %102
101: ; preds = %88
br label %132
102: ; preds = %88
%103 = load i8*, i8** %8
%104 = bitcast %union.u* %9 to i32*
%105 = load i32, i32* %104
%106 = sext i32 %105 to i64
%107 = getelementptr i8, i8* %103, i64 %106
%108 = ptrtoint i8* %107 to i32
store i32 %108, i32* %104
%109 = bitcast %union.u* %9 to i32*
%110 = load i32, i32* %109
%111 = shl i32 %110, 8
store i32 %111, i32* %109
%112 = load i32*, i32** %6
%113 = call i32 @fread(i8** %8, i32 1, i32 1, i32* %112)
%114 = icmp ne i32 %113, 1
br i1 %114, label %115, label %116
115: ; preds = %102
br label %132
116: ; preds = %102
%117 = load i8*, i8** %8
%118 = bitcast %union.u* %9 to i32*
%119 = load i32, i32* %118
%120 = sext i32 %119 to i64
%121 = getelementptr i8, i8* %117, i64 %120
%122 = ptrtoint i8* %121 to i32
store i32 %122, i32* %118
%123 = getelementptr inbounds [10000 x i8], [10000 x i8]* %10, i64 0, i64 0
%124 = bitcast %union.u* %9 to float*
%125 = load float, float* %124
%126 = call i32 @sprintf(i8* %123, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), float %125)
%127 = getelementptr inbounds [10000 x i8], [10000 x i8]* %10, i64 0, i64 0
%128 = getelementptr inbounds [10000 x i8], [10000 x i8]* %10, i64 0, i64 0
%129 = call i32 @strlen(i8* %128)
%130 = load i32*, i32** %7
%131 = call i32 @fwrite(i8* %127, i32 %129, i32 1, i32* %130)
br label %13
132: ; preds = %115, %101, %87, %76, %56, %42, %28, %17
%133 = load i32*, i32** %7
%134 = call i32 @fclose(i32* %133)
%135 = load i32*, i32** %6
%136 = call i32 @fclose(i32* %135)
ret i32 0
}

LLVM IR (-O2):
@.str = [19 x i8] c"test-floor.out.bin\00"
@.str.1 = [3 x i8] c"rb\00"
@.str.2 = [15 x i8] c"test-floor.out\00"
@.str.3 = [2 x i8] c"w\00"
@.str.4 = [5 x i8] c"\09%f\09\00"
@.str.5 = [4 x i8] c"%f\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i8*
%4 = alloca [10000 x i8]
%5 = bitcast i8** %3 to i8*
%6 = getelementptr inbounds [10000 x i8], [10000 x i8]* %4, i64 0, i64 0
%7 = tail call i32* @fopen(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%8 = tail call i32* @fopen(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%9 = call i32 @fread(i8** %3, i32 1, i32 1, i32* %7)
%10 = icmp eq i32 %9, 1
br i1 %10, label %11, label %85
11: ; preds = %2, %60
%12 = load i8*, i8** %3
%13 = call i32 @fread(i8** %3, i32 1, i32 1, i32* %7)
%14 = icmp eq i32 %13, 1
br i1 %14, label %15, label %85
15: ; preds = %11
%16 = load i8*, i8** %3
%17 = call i32 @fread(i8** %3, i32 1, i32 1, i32* %7)
%18 = icmp eq i32 %17, 1
br i1 %18, label %19, label %85
19: ; preds = %15
%20 = load i8*, i8** %3
%21 = call i32 @fread(i8** %3, i32 1, i32 1, i32* %7)
%22 = icmp eq i32 %21, 1
br i1 %22, label %23, label %85
23: ; preds = %19
%24 = ptrtoint i8* %12 to i64
%25 = trunc i64 %24 to i32
%26 = shl i32 %25, 8
%27 = sext i32 %26 to i64
%28 = getelementptr i8, i8* %16, i64 %27
%29 = ptrtoint i8* %28 to i64
%30 = trunc i64 %29 to i32
%31 = shl i32 %30, 8
%32 = sext i32 %31 to i64
%33 = getelementptr i8, i8* %20, i64 %32
%34 = ptrtoint i8* %33 to i64
%35 = trunc i64 %34 to i32
%36 = shl i32 %35, 8
%37 = load i8*, i8** %3
%38 = sext i32 %36 to i64
%39 = getelementptr i8, i8* %37, i64 %38
%40 = ptrtoint i8* %39 to i64
%41 = trunc i64 %40 to i32
%42 = bitcast i32 %41 to float
%43 = call i32 @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), float %42)
%44 = call i32 @strlen(i8* %6)
%45 = call i32 @fwrite(i8* %6, i32 %44, i32 1, i32* %8)
%46 = call i32 @fread(i8** %3, i32 1, i32 1, i32* %7)
%47 = icmp eq i32 %46, 1
br i1 %47, label %48, label %85
48: ; preds = %23
%49 = load i8*, i8** %3
%50 = call i32 @fread(i8** %3, i32 1, i32 1, i32* %7)
%51 = icmp eq i32 %50, 1
br i1 %51, label %52, label %85
52: ; preds = %48
%53 = load i8*, i8** %3
%54 = call i32 @fread(i8** %3, i32 1, i32 1, i32* %7)
%55 = icmp eq i32 %54, 1
br i1 %55, label %56, label %85
56: ; preds = %52
%57 = load i8*, i8** %3
%58 = call i32 @fread(i8** %3, i32 1, i32 1, i32* %7)
%59 = icmp eq i32 %58, 1
br i1 %59, label %60, label %85
60: ; preds = %56
%61 = ptrtoint i8* %49 to i64
%62 = trunc i64 %61 to i32
%63 = shl i32 %62, 8
%64 = sext i32 %63 to i64
%65 = getelementptr i8, i8* %53, i64 %64
%66 = ptrtoint i8* %65 to i64
%67 = trunc i64 %66 to i32
%68 = shl i32 %67, 8
%69 = sext i32 %68 to i64
%70 = getelementptr i8, i8* %57, i64 %69
%71 = ptrtoint i8* %70 to i64
%72 = trunc i64 %71 to i32
%73 = shl i32 %72, 8
%74 = load i8*, i8** %3
%75 = sext i32 %73 to i64
%76 = getelementptr i8, i8* %74, i64 %75
%77 = ptrtoint i8* %76 to i64
%78 = trunc i64 %77 to i32
%79 = bitcast i32 %78 to float
%80 = call i32 @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), float %79)
%81 = call i32 @strlen(i8* %6)
%82 = call i32 @fwrite(i8* %6, i32 %81, i32 1, i32* %8)
%83 = call i32 @fread(i8** %3, i32 1, i32 1, i32* %7)
%84 = icmp eq i32 %83, 1
br i1 %84, label %11, label %85
85: ; preds = %60, %11, %15, %19, %23, %48, %52, %56, %2
%86 = call i32 @fclose(i32* %8)
%87 = call i32 @fclose(i32* %7)
ret i32 0
}