#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*/ FILE;

/* Variables and functions */
int fclose(int /*<<< orphan*/ *);
int feof(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, float);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, char *, char *, int *,
                          int *, int *, int *);
int /*<<< orphan*/ printf(char *, float);
int main() {
  FILE *datos;
  float temperatura, humedad, co2, max_temp, tmp;
  char fecha[10];
  char hora[8];
  int col1, col2, col3, col4, cantidad;
  datos = fopen("mediciones.txt", "r");
  temperatura = 0;
  cantidad = 0;
  humedad = 0;
  co2 = 0;
  max_temp = 0;
  while (feof(datos) == 0) {
    col4 = 0;
    fscanf(datos, "%s  %s   %d    %d    %d    %d  ", fecha, hora, &col1, &col2,
           &col3, &col4);
    if (feof(datos) == 1 && col4 == 0) {
      break;
    }
    tmp = (col1 / 100);
    temperatura = temperatura + tmp;
    humedad = humedad + ((col2 - 0.16) / 0.0062);
    co2 = co2 + col3;
    cantidad = cantidad + 1;
    if (tmp > max_temp) {
      max_temp = tmp;
    }
  }
  printf("%d mediciones leidas.\n", cantidad);
  printf("Temperatura promedio: %2.2f ºC.\n", temperatura / cantidad);
  printf("Máxima temperatura registrada: %2.2f ºC.\n", max_temp);
  printf("Humedad promedio: %2.2f.\n", humedad / cantidad);
  printf("Concentración promedio de CO2: %2.2f PPM.\n", co2 / cantidad);
  fclose(datos);
  datos = fopen("resultados.015.txt", "w");
  fprintf(datos, "%d mediciones leidas.\n", cantidad);
  fprintf(datos, "Temperatura promedio: %2.2f ºC.\n", temperatura / cantidad);
  fprintf(datos, "Máxima temperatura registrada: %2.2f ºC.\n", max_temp);
  fprintf(datos, "Humedad promedio: %2.2f.\n", humedad / cantidad);
  fprintf(datos, "Concentración promedio de CO2: %2.2f PPM.\n", co2 / cantidad);
  return fclose(datos);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe9a(%rip),%rdi
lea    0xea2(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x10(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x14(%rbp)
movl   $0x0,-0x4c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x18(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x1c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
call   1070 <feof@plt>
cmp    $0x0,%eax
jne    12a8 <main+0x148>
movl   $0x0,-0x48(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x2e(%rbp),%rdx
lea    -0x36(%rbp),%rcx
lea    0xe48(%rip),%rsi
lea    -0x3c(%rbp),%r8
lea    -0x40(%rbp),%r9
lea    -0x44(%rbp),%r10
lea    -0x48(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1050 <fscanf@plt>
mov    -0x10(%rbp),%rdi
call   1070 <feof@plt>
cmp    $0x1,%eax
jne    1218 <main+0xb8>
cmpl   $0x0,-0x48(%rbp)
jne    1218 <main+0xb8>
jmp    12a8 <main+0x148>
mov    -0x3c(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0x14(%rbp),%xmm0
addss  -0x24(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
cvtsi2sdl -0x40(%rbp),%xmm1
movsd  0xdb7(%rip),%xmm2
subsd  %xmm2,%xmm1
movsd  0xda3(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x1c(%rbp),%xmm0
cvtsi2ssl -0x44(%rbp),%xmm1
addss  %xmm1,%xmm0
movss  %xmm0,-0x1c(%rbp)
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
movss  -0x24(%rbp),%xmm0
ucomiss -0x20(%rbp),%xmm0
jbe    12a3 <main+0x143>
movss  -0x24(%rbp),%xmm0
movss  %xmm0,-0x20(%rbp)
jmp    11ad <main+0x4d>
cvtsi2ssl -0x4c(%rbp),%xmm0
lea    0xd8d(%rip),%rdi
call   1040 <printf@plt>
movss  -0x14(%rbp),%xmm0
cvtsi2ssl -0x4c(%rbp),%xmm1
divss  %xmm1,%xmm0
lea    0xd8a(%rip),%rdi
call   1040 <printf@plt>
movss  -0x20(%rbp),%xmm0
lea    0xd9b(%rip),%rdi
call   1040 <printf@plt>
movss  -0x18(%rbp),%xmm0
cvtsi2ssl -0x4c(%rbp),%xmm1
divss  %xmm1,%xmm0
lea    0xdad(%rip),%rdi
call   1040 <printf@plt>
movss  -0x1c(%rbp),%xmm0
cvtsi2ssl -0x4c(%rbp),%xmm1
divss  %xmm1,%xmm0
lea    0xdad(%rip),%rdi
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1030 <fclose@plt>
lea    0xdc4(%rip),%rdi
lea    0xdd0(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
cvtsi2ssl -0x4c(%rbp),%xmm0
lea    0xcf9(%rip),%rsi
call   1060 <fprintf@plt>
mov    -0x10(%rbp),%rdi
movss  -0x14(%rbp),%xmm0
cvtsi2ssl -0x4c(%rbp),%xmm1
divss  %xmm1,%xmm0
lea    0xcf2(%rip),%rsi
call   1060 <fprintf@plt>
mov    -0x10(%rbp),%rdi
movss  -0x20(%rbp),%xmm0
lea    0xcff(%rip),%rsi
call   1060 <fprintf@plt>
mov    -0x10(%rbp),%rdi
movss  -0x18(%rbp),%xmm0
cvtsi2ssl -0x4c(%rbp),%xmm1
divss  %xmm1,%xmm0
lea    0xd0d(%rip),%rsi
call   1060 <fprintf@plt>
mov    -0x10(%rbp),%rdi
movss  -0x1c(%rbp),%xmm0
cvtsi2ssl -0x4c(%rbp),%xmm1
divss  %xmm1,%xmm0
lea    0xd09(%rip),%rsi
call   1060 <fprintf@plt>
mov    -0x10(%rbp),%rdi
call   1030 <fclose@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
lea    0xe9b(%rip),%rdi
lea    0xea3(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,%rbx
mov    %rax,%rdi
call   1070 <feof@plt>
xorps  %xmm0,%xmm0
test   %eax,%eax
je     11ac <main+0x4c>
movaps %xmm0,0x20(%rsp)
xor    %r14d,%r14d
xorps  %xmm0,%xmm0
movss  %xmm0,0x4(%rsp)
xorps  %xmm0,%xmm0
jmp    12c6 <main+0x166>
movaps %xmm0,0x20(%rsp)
xorps  %xmm1,%xmm1
xor    %r14d,%r14d
lea    0x5e(%rsp),%r15
lea    0x56(%rsp),%r12
lea    0x3c(%rsp),%r13
lea    0x38(%rsp),%rbp
xorps  %xmm0,%xmm0
movss  %xmm0,0x4(%rsp)
jmp    126b <main+0x10b>
nopl   0x0(%rax)
movslq 0x3c(%rsp),%rax
imul   $0x51eb851f,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x25,%rax
movss  0x4(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
xorps  %xmm1,%xmm1
cvtsi2sdl 0x38(%rsp),%xmm1
addsd  0xdee(%rip),%xmm1
divsd  0xdee(%rip),%xmm1
addsd  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
movss  %xmm0,0x4(%rsp)
add    %ecx,%eax
movd   %eax,%xmm0
movd   0x34(%rsp),%xmm1
punpckldq %xmm1,%xmm0
cvtdq2ps %xmm0,%xmm1
movaps 0x20(%rsp),%xmm0
addps  %xmm1,%xmm0
movaps %xmm0,0x20(%rsp)
add    $0x1,%r14d
maxss  0x10(%rsp),%xmm1
movaps %xmm1,0x10(%rsp)
mov    %rbx,%rdi
call   1070 <feof@plt>
movaps 0x10(%rsp),%xmm1
test   %eax,%eax
jne    12cb <main+0x16b>
movss  %xmm1,0x10(%rsp)
movl   $0x0,0xc(%rsp)
mov    %rbx,%rdi
lea    0xd9e(%rip),%rsi
mov    %r15,%rdx
mov    %r12,%rcx
mov    %r13,%r8
mov    %rbp,%r9
lea    0xc(%rsp),%rax
push   %rax
lea    0x3c(%rsp),%rax
push   %rax
call   1050 <fscanf@plt>
add    $0x10,%rsp
mov    %rbx,%rdi
call   1070 <feof@plt>
cmp    $0x1,%eax
jne    11e0 <main+0x80>
cmpl   $0x0,0xc(%rsp)
jne    11e0 <main+0x80>
movss  0x10(%rsp),%xmm0
movaps %xmm0,0x10(%rsp)
xorps  %xmm0,%xmm0
cvtsi2ss %r14d,%xmm0
movss  %xmm0,0x8(%rsp)
lea    0xd61(%rip),%r14
mov    %r14,%rdi
call   1040 <printf@plt>
movaps 0x20(%rsp),%xmm0
divss  0x8(%rsp),%xmm0
movaps %xmm0,0x40(%rsp)
lea    0xd59(%rip),%r12
mov    %r12,%rdi
call   1040 <printf@plt>
lea    0xd6c(%rip),%r15
mov    %r15,%rdi
movaps 0x10(%rsp),%xmm0
call   1040 <printf@plt>
movss  0x4(%rsp),%xmm0
divss  0x8(%rsp),%xmm0
movss  %xmm0,0x4(%rsp)
lea    0xd72(%rip),%r13
mov    %r13,%rdi
call   1040 <printf@plt>
movaps 0x20(%rsp),%xmm0
shufps $0x55,%xmm0,%xmm0
divss  0x8(%rsp),%xmm0
movaps %xmm0,0x20(%rsp)
lea    0xd69(%rip),%rbp
mov    %rbp,%rdi
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1030 <fclose@plt>
lea    0xd7e(%rip),%rdi
lea    0xd8a(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %r14,%rsi
movss  0x8(%rsp),%xmm0
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
movaps 0x40(%rsp),%xmm0
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
movaps 0x10(%rsp),%xmm0
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
movss  0x4(%rsp),%xmm0
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
movaps 0x20(%rsp),%xmm0
call   1060 <fprintf@plt>
mov    %rbx,%rdi
call   1030 <fclose@plt>
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [15 x i8] c"mediciones.txt\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [32 x i8] c"%s %s %d %d %d %d \00"
@.str.3 = [23 x i8] c"%d mediciones leidas.\0A\00"
@.str.4 = [34 x i8] c"Temperatura promedio: %2.2f \C2\BAC.\0A\00"
@.str.5 = [44 x i8] c"M\C3\A1xima temperatura registrada: %2.2f \C2\BAC.\0A\00"
@.str.6 = [26 x i8] c"Humedad promedio: %2.2f.\0A\00"
@.str.7 = [44 x i8] c"Concentraci\C3\B3n promedio de CO2: %2.2f PPM.\0A\00"
@.str.8 = [19 x i8] c"resultados.015.txt\00"
@.str.9 = [2 x i8] c"w\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca [10 x i8]
%9 = alloca [8 x i8]
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
store i32 0, i32* %1
%15 = call i32* @fopen(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %15, i32** %2
store float 0.000000e+00, float* %3
store i32 0, i32* %14
store float 0.000000e+00, float* %4
store float 0.000000e+00, float* %5
store float 0.000000e+00, float* %6
br label %16
16: ; preds = %58, %0
%17 = load i32*, i32** %2
%18 = call i32 @feof(i32* %17)
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %59
20: ; preds = %16
store i32 0, i32* %13
%21 = load i32*, i32** %2
%22 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 0
%23 = getelementptr inbounds [8 x i8], [8 x i8]* %9, i64 0, i64 0
%24 = call i32 @fscanf(i32* %21, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i8* %22, i8* %23, i32* %10, i32* %11, i32* %12, i32* %13)
%25 = load i32*, i32** %2
%26 = call i32 @feof(i32* %25)
%27 = icmp eq i32 %26, 1
br i1 %27, label %28, label %32
28: ; preds = %20
%29 = load i32, i32* %13
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %32
31: ; preds = %28
br label %59
32: ; preds = %28, %20
%33 = load i32, i32* %10
%34 = sdiv i32 %33, 100
%35 = sitofp i32 %34 to float
store float %35, float* %7
%36 = load float, float* %3
%37 = load float, float* %7
%38 = fadd float %36, %37
store float %38, float* %3
%39 = load float, float* %4
%40 = fpext float %39 to double
%41 = load i32, i32* %11
%42 = sitofp i32 %41 to double
%43 = fsub double %42, 1.600000e-01
%44 = fdiv double %43, 6.200000e-03
%45 = fadd double %40, %44
%46 = fptrunc double %45 to float
store float %46, float* %4
%47 = load float, float* %5
%48 = load i32, i32* %12
%49 = sitofp i32 %48 to float
%50 = fadd float %47, %49
store float %50, float* %5
%51 = load i32, i32* %14
%52 = add nsw i32 %51, 1
store i32 %52, i32* %14
%53 = load float, float* %7
%54 = load float, float* %6
%55 = fcmp ogt float %53, %54
br i1 %55, label %56, label %58
56: ; preds = %32
%57 = load float, float* %7
store float %57, float* %6
br label %58
58: ; preds = %56, %32
br label %16
59: ; preds = %31, %16
%60 = load i32, i32* %14
%61 = sitofp i32 %60 to float
%62 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), float %61)
%63 = load float, float* %3
%64 = load i32, i32* %14
%65 = sitofp i32 %64 to float
%66 = fdiv float %63, %65
%67 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), float %66)
%68 = load float, float* %6
%69 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.5, i64 0, i64 0), float %68)
%70 = load float, float* %4
%71 = load i32, i32* %14
%72 = sitofp i32 %71 to float
%73 = fdiv float %70, %72
%74 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), float %73)
%75 = load float, float* %5
%76 = load i32, i32* %14
%77 = sitofp i32 %76 to float
%78 = fdiv float %75, %77
%79 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.7, i64 0, i64 0), float %78)
%80 = load i32*, i32** %2
%81 = call i32 @fclose(i32* %80)
%82 = call i32* @fopen(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
store i32* %82, i32** %2
%83 = load i32*, i32** %2
%84 = load i32, i32* %14
%85 = sitofp i32 %84 to float
%86 = call i32 @fprintf(i32* %83, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), float %85)
%87 = load i32*, i32** %2
%88 = load float, float* %3
%89 = load i32, i32* %14
%90 = sitofp i32 %89 to float
%91 = fdiv float %88, %90
%92 = call i32 @fprintf(i32* %87, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), float %91)
%93 = load i32*, i32** %2
%94 = load float, float* %6
%95 = call i32 @fprintf(i32* %93, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.5, i64 0, i64 0), float %94)
%96 = load i32*, i32** %2
%97 = load float, float* %4
%98 = load i32, i32* %14
%99 = sitofp i32 %98 to float
%100 = fdiv float %97, %99
%101 = call i32 @fprintf(i32* %96, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), float %100)
%102 = load i32*, i32** %2
%103 = load float, float* %5
%104 = load i32, i32* %14
%105 = sitofp i32 %104 to float
%106 = fdiv float %103, %105
%107 = call i32 @fprintf(i32* %102, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.7, i64 0, i64 0), float %106)
%108 = load i32*, i32** %2
%109 = call i32 @fclose(i32* %108)
ret i32 %109
}

LLVM IR (-O2):
@.str = [15 x i8] c"mediciones.txt\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [32 x i8] c"%s %s %d %d %d %d \00"
@.str.3 = [23 x i8] c"%d mediciones leidas.\0A\00"
@.str.4 = [34 x i8] c"Temperatura promedio: %2.2f \C2\BAC.\0A\00"
@.str.5 = [44 x i8] c"M\C3\A1xima temperatura registrada: %2.2f \C2\BAC.\0A\00"
@.str.6 = [26 x i8] c"Humedad promedio: %2.2f.\0A\00"
@.str.7 = [44 x i8] c"Concentraci\C3\B3n promedio de CO2: %2.2f PPM.\0A\00"
@.str.8 = [19 x i8] c"resultados.015.txt\00"
@.str.9 = [2 x i8] c"w\00"
define i32 @main() {
%1 = alloca [10 x i8]
%2 = alloca [8 x i8]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = getelementptr inbounds [10 x i8], [10 x i8]* %1, i64 0, i64 0
%8 = getelementptr inbounds [8 x i8], [8 x i8]* %2, i64 0, i64 0
%9 = bitcast i32* %3 to i8*
%10 = bitcast i32* %4 to i8*
%11 = bitcast i32* %5 to i8*
%12 = bitcast i32* %6 to i8*
%13 = tail call i32* @fopen(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%14 = call i32 @feof(i32* %13)
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %48
16: ; preds = %0, %27
%17 = phi i32 [ %42, %27 ], [ 0, %0 ]
%18 = phi float [ %45, %27 ], [ 0.000000e+00, %0 ]
%19 = phi float [ %36, %27 ], [ 0.000000e+00, %0 ]
%20 = phi <2 x float> [ %41, %27 ], [ zeroinitializer, %0 ]
store i32 0, i32* %6
%21 = call i32 @fscanf(i32* %13, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i8* %7, i8* %8, i32* %3, i32* %4, i32* %5, i32* %6)
%22 = call i32 @feof(i32* %13)
%23 = icmp eq i32 %22, 1
%24 = load i32, i32* %6
%25 = icmp eq i32 %24, 0
%26 = select i1 %23, i1 %25, i1 false
br i1 %26, label %48, label %27
27: ; preds = %16
%28 = load i32, i32* %3
%29 = sdiv i32 %28, 100
%30 = fpext float %19 to double
%31 = load i32, i32* %4
%32 = sitofp i32 %31 to double
%33 = fadd double %32, -1.600000e-01
%34 = fdiv double %33, 6.200000e-03
%35 = fadd double %34, %30
%36 = fptrunc double %35 to float
%37 = load i32, i32* %5
%38 = insertelement <2 x i32> poison, i32 %29, i64 0
%39 = insertelement <2 x i32> %38, i32 %37, i64 1
%40 = sitofp <2 x i32> %39 to <2 x float>
%41 = fadd <2 x float> %20, %40
%42 = add nuw nsw i32 %17, 1
%43 = extractelement <2 x float> %40, i64 0
%44 = fcmp olt float %18, %43
%45 = select i1 %44, float %43, float %18
%46 = call i32 @feof(i32* %13)
%47 = icmp eq i32 %46, 0
br i1 %47, label %16, label %48
48: ; preds = %27, %16, %0
%49 = phi float [ 0.000000e+00, %0 ], [ %19, %16 ], [ %36, %27 ]
%50 = phi float [ 0.000000e+00, %0 ], [ %18, %16 ], [ %45, %27 ]
%51 = phi i32 [ 0, %0 ], [ %17, %16 ], [ %42, %27 ]
%52 = phi <2 x float> [ zeroinitializer, %0 ], [ %20, %16 ], [ %41, %27 ]
%53 = sitofp i32 %51 to float
%54 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), float %53)
%55 = extractelement <2 x float> %52, i64 0
%56 = fdiv float %55, %53
%57 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), float %56)
%58 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.5, i64 0, i64 0), float %50)
%59 = fdiv float %49, %53
%60 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), float %59)
%61 = extractelement <2 x float> %52, i64 1
%62 = fdiv float %61, %53
%63 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.7, i64 0, i64 0), float %62)
%64 = call i32 @fclose(i32* %13)
%65 = call i32* @fopen(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%66 = call i32 @fprintf(i32* %65, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), float %53)
%67 = call i32 @fprintf(i32* %65, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), float %56)
%68 = call i32 @fprintf(i32* %65, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.5, i64 0, i64 0), float %50)
%69 = call i32 @fprintf(i32* %65, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), float %59)
%70 = call i32 @fprintf(i32* %65, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.7, i64 0, i64 0), float %62)
%71 = call i32 @fclose(i32* %65)
ret i32 %71
}