#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 /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
scalar_t__ feof(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, double, double, double,
                           double);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, char *, char *,
                          double *, double *);
int /*<<< orphan*/ printf(char *, ...);
int main(void) {
  FILE *fp = fopen("orig.txt", "r");
  FILE *output = fopen("output.txt", "w");
  if (!fp) {
    printf("ERROR opening input file orig.txt\n");
    exit(0);
  }
  int i = 0;
  char append[50], find[50];
  double orig_sum_a = 0.0, orig_sum_f = 0.0, orig_a, orig_f;
  for (i = 0; i < 100; i++) {
    if (feof(fp)) {
      printf("ERROR: You need 100 datum instead of %d\n", i);
      printf("run 'make run' longer to get enough information\n\n");
      exit(0);
    }
    fscanf(fp, "%s %s %lf %lf\n", append, find, &orig_a, &orig_f);
    orig_sum_a += orig_a;
    orig_sum_f += orig_f;
  }
  fclose(fp);
  fp = fopen("opt.txt", "r");
  if (!fp) {
    fp = fopen("orig.txt", "r");
    if (!fp) {
      printf("ERROR opening input file opt.txt\n");
      exit(0);
    }
  }
  double opt_sum_a = 0.0, opt_sum_f = 0.0, opt_a, opt_f;
  for (i = 0; i < 100; i++) {
    if (feof(fp)) {
      printf("ERROR: You need 100 datum instead of %d\n", i);
      printf("run 'make run' longer to get enough information\n\n");
      exit(0);
    }
    fscanf(fp, "%s %s %lf %lf\n", append, find, &opt_a, &opt_f);
    opt_sum_a += opt_a;
    opt_sum_f += opt_f;
  }
  fclose(fp);
  fp = fopen("opt_bst.txt", "r");
  if (!fp) {
    fp = fopen("orig.txt", "r");
    if (!fp) {
      printf("ERROR opening input file opt.txt\n");
      exit(0);
    }
  }
  double opt_bst_sum_a = 0.0, opt_bst_sum_f = 0.0, opt_bst_a, opt_bst_f;
  for (i = 0; i < 100; i++) {
    if (feof(fp)) {
      printf("ERROR: You need 100 datum instead of %d\n", i);
      printf("run 'make run' longer to get enough information\n\n");
      exit(0);
    }
    fscanf(fp, "%s %s %lf %lf\n", append, find, &opt_bst_a, &opt_bst_f);
    opt_bst_sum_a += opt_bst_a;
    opt_bst_sum_f += opt_bst_f;
  }
  fclose(fp);
  fp = fopen("opt_struct.txt", "r");
  if (!fp) {
    fp = fopen("orig.txt", "r");
    if (!fp) {
      printf("ERROR opening input file opt.txt\n");
      exit(0);
    }
  }
  double opt_struct_sum_a = 0.0, opt_struct_sum_f = 0.0, opt_struct_a,
         opt_struct_f;
  for (i = 0; i < 100; i++) {
    if (feof(fp)) {
      printf("ERROR: You need 100 datum instead of %d\n", i);
      printf("run 'make run' longer to get enough information\n\n");
      exit(0);
    }
    fscanf(fp, "%s %s %lf %lf\n", append, find, &opt_struct_a, &opt_struct_f);
    opt_struct_sum_a += opt_struct_a;
    opt_struct_sum_f += opt_struct_f;
  }
  fprintf(output, "append() %lf %lf %lf %lf\n", orig_sum_a / 100.0,
          opt_sum_a / 100.0, opt_bst_sum_a / 100.0, opt_struct_sum_a / 100.0);
  fprintf(output, "findName() %lf %lf %lf %lf", orig_sum_f / 100.0,
          opt_sum_f / 100.0, opt_bst_sum_f / 100.0, opt_struct_sum_f / 100.0);
  fclose(output);
  fclose(fp);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x110,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe7f(%rip),%rdi
lea    0xe81(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x10(%rbp)
lea    0xe73(%rip),%rdi
lea    0xe77(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    11d0 <main+0x60>
lea    0xe5e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   1090 <exit@plt>
movl   $0x0,-0x1c(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movl   $0x0,-0x1c(%rbp)
cmpl   $0x64,-0x1c(%rbp)
jge    129e <main+0x12e>
mov    -0x10(%rbp),%rdi
call   1070 <feof@plt>
cmp    $0x0,%rax
je     1237 <main+0xc7>
mov    -0x1c(%rbp),%esi
lea    0xe28(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe43(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   1090 <exit@plt>
mov    -0x10(%rbp),%rdi
lea    -0x50(%rbp),%rdx
lea    -0x90(%rbp),%rcx
lea    0xe51(%rip),%rsi
lea    -0xa8(%rbp),%r8
lea    -0xb0(%rbp),%r9
call   1050 <fscanf@plt>
movsd  -0xa8(%rbp),%xmm0
ff
addsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0xb0(%rbp),%xmm0
ff
addsd  -0xa0(%rbp),%xmm0
ff
movsd  %xmm0,-0xa0(%rbp)
ff
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11f4 <main+0x84>
mov    -0x10(%rbp),%rdi
call   1030 <fclose@plt>
lea    0xdff(%rip),%rdi
lea    0xd5c(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1305 <main+0x195>
lea    0xd38(%rip),%rdi
lea    0xd3a(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1300 <main+0x190>
lea    0xdc3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   1090 <exit@plt>
jmp    1305 <main+0x195>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movl   $0x0,-0x1c(%rbp)
cmpl   $0x64,-0x1c(%rbp)
jge    13cc <main+0x25c>
mov    -0x10(%rbp),%rdi
call   1070 <feof@plt>
cmp    $0x0,%rax
je     1365 <main+0x1f5>
mov    -0x1c(%rbp),%esi
lea    0xcfa(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd15(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   1090 <exit@plt>
mov    -0x10(%rbp),%rdi
lea    -0x50(%rbp),%rdx
lea    -0x90(%rbp),%rcx
lea    0xd23(%rip),%rsi
lea    -0xc8(%rbp),%r8
lea    -0xd0(%rbp),%r9
call   1050 <fscanf@plt>
movsd  -0xc8(%rbp),%xmm0
ff
addsd  -0xb8(%rbp),%xmm0
ff
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0xd0(%rbp),%xmm0
ff
addsd  -0xc0(%rbp),%xmm0
ff
movsd  %xmm0,-0xc0(%rbp)
ff
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1322 <main+0x1b2>
mov    -0x10(%rbp),%rdi
call   1030 <fclose@plt>
lea    0xcfb(%rip),%rdi
lea    0xc2e(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1433 <main+0x2c3>
lea    0xc0a(%rip),%rdi
lea    0xc0c(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    142e <main+0x2be>
lea    0xc95(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   1090 <exit@plt>
jmp    1433 <main+0x2c3>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
movl   $0x0,-0x1c(%rbp)
cmpl   $0x64,-0x1c(%rbp)
jge    14fa <main+0x38a>
mov    -0x10(%rbp),%rdi
call   1070 <feof@plt>
cmp    $0x0,%rax
je     1493 <main+0x323>
mov    -0x1c(%rbp),%esi
lea    0xbcc(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xbe7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   1090 <exit@plt>
mov    -0x10(%rbp),%rdi
lea    -0x50(%rbp),%rdx
lea    -0x90(%rbp),%rcx
lea    0xbf5(%rip),%rsi
lea    -0xe8(%rbp),%r8
lea    -0xf0(%rbp),%r9
call   1050 <fscanf@plt>
movsd  -0xe8(%rbp),%xmm0
ff
addsd  -0xd8(%rbp),%xmm0
ff
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0xf0(%rbp),%xmm0
ff
addsd  -0xe0(%rbp),%xmm0
ff
movsd  %xmm0,-0xe0(%rbp)
ff
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1450 <main+0x2e0>
mov    -0x10(%rbp),%rdi
call   1030 <fclose@plt>
lea    0xbd9(%rip),%rdi
lea    0xb00(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1561 <main+0x3f1>
lea    0xadc(%rip),%rdi
lea    0xade(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    155c <main+0x3ec>
lea    0xb67(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   1090 <exit@plt>
jmp    1561 <main+0x3f1>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x100(%rbp)
ff
movl   $0x0,-0x1c(%rbp)
cmpl   $0x64,-0x1c(%rbp)
jge    1628 <main+0x4b8>
mov    -0x10(%rbp),%rdi
call   1070 <feof@plt>
cmp    $0x0,%rax
je     15c1 <main+0x451>
mov    -0x1c(%rbp),%esi
lea    0xa9e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xab9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   1090 <exit@plt>
mov    -0x10(%rbp),%rdi
lea    -0x50(%rbp),%rdx
lea    -0x90(%rbp),%rcx
lea    0xac7(%rip),%rsi
lea    -0x108(%rbp),%r8
lea    -0x110(%rbp),%r9
call   1050 <fscanf@plt>
movsd  -0x108(%rbp),%xmm0
ff
addsd  -0xf8(%rbp),%xmm0
ff
movsd  %xmm0,-0xf8(%rbp)
ff
movsd  -0x110(%rbp),%xmm0
ff
addsd  -0x100(%rbp),%xmm0
ff
movsd  %xmm0,-0x100(%rbp)
ff
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    157e <main+0x40e>
mov    -0x18(%rbp),%rdi
movsd  -0x98(%rbp),%xmm0
ff
movsd  0x9c4(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  -0xb8(%rbp),%xmm1
ff
movsd  0x9b0(%rip),%xmm2
divsd  %xmm2,%xmm1
movsd  -0xd8(%rbp),%xmm2
ff
movsd  0x99c(%rip),%xmm3
divsd  %xmm3,%xmm2
movsd  -0xf8(%rbp),%xmm3
ff
movsd  0x988(%rip),%xmm4
divsd  %xmm4,%xmm3
lea    0xa6f(%rip),%rsi
call   1060 <fprintf@plt>
mov    -0x18(%rbp),%rdi
movsd  -0xa0(%rbp),%xmm0
ff
movsd  0x964(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  -0xc0(%rbp),%xmm1
ff
movsd  0x950(%rip),%xmm2
divsd  %xmm2,%xmm1
movsd  -0xe0(%rbp),%xmm2
ff
movsd  0x93c(%rip),%xmm3
divsd  %xmm3,%xmm2
movsd  -0x100(%rbp),%xmm3
ff
movsd  0x928(%rip),%xmm4
divsd  %xmm4,%xmm3
lea    0xa29(%rip),%rsi
call   1060 <fprintf@plt>
mov    -0x18(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x10(%rbp),%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
add    $0x110,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x108,%rsp
lea    0xf20(%rip),%rdi
lea    0xe69(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%rbx
lea    0xe5c(%rip),%rdi
lea    0xe60(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,0x40(%rsp)
test   %rbx,%rbx
je     1590 <main+0x410>
xor    %ebp,%ebp
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x38(%rsp)
lea    0xd0(%rsp),%r12
lea    0x90(%rsp),%r13
lea    0x88(%rsp),%r14
lea    0x80(%rsp),%r15
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x30(%rsp)
xchg   %ax,%ax
mov    %rbx,%rdi
call   1080 <feof@plt>
test   %rax,%rax
jne    156d <main+0x3ed>
mov    %rbx,%rdi
lea    0xe25(%rip),%rsi
mov    %r12,%rdx
mov    %r13,%rcx
mov    %r14,%r8
mov    %r15,%r9
call   1060 <fscanf@plt>
movsd  0x30(%rsp),%xmm0
addsd  0x88(%rsp),%xmm0
movsd  %xmm0,0x30(%rsp)
movsd  0x38(%rsp),%xmm0
addsd  0x80(%rsp),%xmm0
movsd  %xmm0,0x38(%rsp)
add    $0x1,%ebp
cmp    $0x64,%ebp
jne    1200 <main+0x80>
mov    %rbx,%rdi
call   1040 <fclose@plt>
lea    0xe6d(%rip),%rdi
lea    0xd94(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    12a0 <main+0x120>
lea    0xe30(%rip),%rdi
lea    0xd79(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%rbx
test   %rax,%rax
je     1599 <main+0x419>
xor    %ebp,%ebp
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x28(%rsp)
lea    0xd0(%rsp),%r12
lea    0x90(%rsp),%r13
lea    0x78(%rsp),%r14
lea    0x70(%rsp),%r15
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x20(%rsp)
mov    %rbx,%rdi
call   1080 <feof@plt>
test   %rax,%rax
jne    156d <main+0x3ed>
mov    %rbx,%rdi
lea    0xd55(%rip),%rsi
mov    %r12,%rdx
mov    %r13,%rcx
mov    %r14,%r8
mov    %r15,%r9
call   1060 <fscanf@plt>
movsd  0x20(%rsp),%xmm0
addsd  0x78(%rsp),%xmm0
movsd  %xmm0,0x20(%rsp)
movsd  0x28(%rsp),%xmm0
addsd  0x70(%rsp),%xmm0
movsd  %xmm0,0x28(%rsp)
add    $0x1,%ebp
cmp    $0x64,%ebp
jne    12d0 <main+0x150>
mov    %rbx,%rdi
call   1040 <fclose@plt>
lea    0xd18(%rip),%rdi
lea    0xcca(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    136a <main+0x1ea>
lea    0xd66(%rip),%rdi
lea    0xcaf(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%rbx
test   %rax,%rax
je     1599 <main+0x419>
xor    %ebp,%ebp
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x18(%rsp)
lea    0xd0(%rsp),%r12
lea    0x90(%rsp),%r13
lea    0x68(%rsp),%r14
lea    0x60(%rsp),%r15
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x10(%rsp)
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   1080 <feof@plt>
test   %rax,%rax
jne    156d <main+0x3ed>
mov    %rbx,%rdi
lea    0xc85(%rip),%rsi
mov    %r12,%rdx
mov    %r13,%rcx
mov    %r14,%r8
mov    %r15,%r9
call   1060 <fscanf@plt>
movsd  0x10(%rsp),%xmm0
addsd  0x68(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0x18(%rsp),%xmm0
addsd  0x60(%rsp),%xmm0
movsd  %xmm0,0x18(%rsp)
add    $0x1,%ebp
cmp    $0x64,%ebp
jne    13a0 <main+0x220>
mov    %rbx,%rdi
call   1040 <fclose@plt>
lea    0xc54(%rip),%rdi
lea    0xbfa(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    143a <main+0x2ba>
lea    0xc96(%rip),%rdi
lea    0xbdf(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%rbx
test   %rax,%rax
je     1599 <main+0x419>
xor    %ebp,%ebp
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x8(%rsp)
lea    0xd0(%rsp),%r12
lea    0x90(%rsp),%r13
lea    0x58(%rsp),%r14
lea    0x50(%rsp),%r15
xorpd  %xmm3,%xmm3
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  %xmm3,0x48(%rsp)
mov    %rbx,%rdi
call   1080 <feof@plt>
test   %rax,%rax
jne    156d <main+0x3ed>
mov    %rbx,%rdi
lea    0xbaf(%rip),%rsi
mov    %r12,%rdx
mov    %r13,%rcx
mov    %r14,%r8
mov    %r15,%r9
call   1060 <fscanf@plt>
movsd  0x48(%rsp),%xmm3
addsd  0x58(%rsp),%xmm3
movsd  0x8(%rsp),%xmm0
addsd  0x50(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
add    $0x1,%ebp
cmp    $0x64,%ebp
jne    1470 <main+0x2f0>
movsd  0xb30(%rip),%xmm4
movsd  0x30(%rsp),%xmm0
divsd  %xmm4,%xmm0
movsd  0x20(%rsp),%xmm1
divsd  %xmm4,%xmm1
movsd  0x10(%rsp),%xmm2
divsd  %xmm4,%xmm2
divsd  %xmm4,%xmm3
lea    0xb71(%rip),%rsi
mov    0x40(%rsp),%rbp
mov    %rbp,%rdi
call   1070 <fprintf@plt>
movsd  0x38(%rsp),%xmm0
movsd  0xaec(%rip),%xmm3
divsd  %xmm3,%xmm0
movsd  0x28(%rsp),%xmm1
divsd  %xmm3,%xmm1
movsd  0x18(%rsp),%xmm2
divsd  %xmm3,%xmm2
movapd %xmm3,%xmm4
movsd  0x8(%rsp),%xmm3
divsd  %xmm4,%xmm3
lea    0xb43(%rip),%rsi
mov    %rbp,%rdi
call   1070 <fprintf@plt>
mov    %rbp,%rdi
call   1040 <fclose@plt>
mov    %rbx,%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
add    $0x108,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xaa3(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xb5e(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   10a0 <exit@plt>
lea    0xb08(%rip),%rdi
jmp    1584 <main+0x404>
lea    0xb21(%rip),%rdi
jmp    1584 <main+0x404>

LLVM IR (-O0):
@.str = [9 x i8] c"orig.txt\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [11 x i8] c"output.txt\00"
@.str.3 = [2 x i8] c"w\00"
@.str.4 = [35 x i8] c"ERROR opening input file orig.txt\0A\00"
@.str.5 = [41 x i8] c"ERROR: You need 100 datum instead of %d\0A\00"
@.str.6 = [50 x i8] c"run 'make run' longer to get enough information\0A\0A\00"
@.str.7 = [15 x i8] c"%s %s %lf %lf\0A\00"
@.str.8 = [8 x i8] c"opt.txt\00"
@.str.9 = [34 x i8] c"ERROR opening input file opt.txt\0A\00"
@.str.10 = [12 x i8] c"opt_bst.txt\00"
@.str.11 = [15 x i8] c"opt_struct.txt\00"
@.str.12 = [26 x i8] c"append() %lf %lf %lf %lf\0A\00"
@.str.13 = [27 x i8] c"findName() %lf %lf %lf %lf\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca i32*
%4 = alloca i32
%5 = alloca [50 x i8]
%6 = alloca [50 x i8]
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca double
%20 = alloca double
%21 = alloca double
%22 = alloca double
store i32 0, i32* %1
%23 = call i32* @fopen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %23, i32** %2
%24 = call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 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* %24, i32** %3
%25 = load i32*, i32** %2
%26 = icmp ne i32* %25, null
br i1 %26, label %30, label %27
27: ; preds = %0
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0))
%29 = call i32 @exit(i32 0)
unreachable
30: ; preds = %0
store i32 0, i32* %4
store double 0.000000e+00, double* %7
store double 0.000000e+00, double* %8
store i32 0, i32* %4
br label %31
31: ; preds = %54, %30
%32 = load i32, i32* %4
%33 = icmp slt i32 %32, 100
br i1 %33, label %34, label %57
34: ; preds = %31
%35 = load i32*, i32** %2
%36 = call i64 @feof(i32* %35)
%37 = icmp ne i64 %36, 0
br i1 %37, label %38, label %43
38: ; preds = %34
%39 = load i32, i32* %4
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0), i32 %39)
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.6, i64 0, i64 0))
%42 = call i32 @exit(i32 0)
unreachable
43: ; preds = %34
%44 = load i32*, i32** %2
%45 = getelementptr inbounds [50 x i8], [50 x i8]* %5, i64 0, i64 0
%46 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%47 = call i32 @fscanf(i32* %44, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8* %45, i8* %46, double* %9, double* %10)
%48 = load double, double* %9
%49 = load double, double* %7
%50 = fadd double %49, %48
store double %50, double* %7
%51 = load double, double* %10
%52 = load double, double* %8
%53 = fadd double %52, %51
store double %53, double* %8
br label %54
54: ; preds = %43
%55 = load i32, i32* %4
%56 = add nsw i32 %55, 1
store i32 %56, i32* %4
br label %31
57: ; preds = %31
%58 = load i32*, i32** %2
%59 = call i32 @fclose(i32* %58)
%60 = call i32* @fopen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %60, i32** %2
%61 = load i32*, i32** %2
%62 = icmp ne i32* %61, null
br i1 %62, label %71, label %63
63: ; preds = %57
%64 = call i32* @fopen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %64, i32** %2
%65 = load i32*, i32** %2
%66 = icmp ne i32* %65, null
br i1 %66, label %70, label %67
67: ; preds = %63
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.9, i64 0, i64 0))
%69 = call i32 @exit(i32 0)
unreachable
70: ; preds = %63
br label %71
71: ; preds = %70, %57
store double 0.000000e+00, double* %11
store double 0.000000e+00, double* %12
store i32 0, i32* %4
br label %72
72: ; preds = %95, %71
%73 = load i32, i32* %4
%74 = icmp slt i32 %73, 100
br i1 %74, label %75, label %98
75: ; preds = %72
%76 = load i32*, i32** %2
%77 = call i64 @feof(i32* %76)
%78 = icmp ne i64 %77, 0
br i1 %78, label %79, label %84
79: ; preds = %75
%80 = load i32, i32* %4
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0), i32 %80)
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.6, i64 0, i64 0))
%83 = call i32 @exit(i32 0)
unreachable
84: ; preds = %75
%85 = load i32*, i32** %2
%86 = getelementptr inbounds [50 x i8], [50 x i8]* %5, i64 0, i64 0
%87 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%88 = call i32 @fscanf(i32* %85, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8* %86, i8* %87, double* %13, double* %14)
%89 = load double, double* %13
%90 = load double, double* %11
%91 = fadd double %90, %89
store double %91, double* %11
%92 = load double, double* %14
%93 = load double, double* %12
%94 = fadd double %93, %92
store double %94, double* %12
br label %95
95: ; preds = %84
%96 = load i32, i32* %4
%97 = add nsw i32 %96, 1
store i32 %97, i32* %4
br label %72
98: ; preds = %72
%99 = load i32*, i32** %2
%100 = call i32 @fclose(i32* %99)
%101 = call i32* @fopen(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %101, i32** %2
%102 = load i32*, i32** %2
%103 = icmp ne i32* %102, null
br i1 %103, label %112, label %104
104: ; preds = %98
%105 = call i32* @fopen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %105, i32** %2
%106 = load i32*, i32** %2
%107 = icmp ne i32* %106, null
br i1 %107, label %111, label %108
108: ; preds = %104
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.9, i64 0, i64 0))
%110 = call i32 @exit(i32 0)
unreachable
111: ; preds = %104
br label %112
112: ; preds = %111, %98
store double 0.000000e+00, double* %15
store double 0.000000e+00, double* %16
store i32 0, i32* %4
br label %113
113: ; preds = %136, %112
%114 = load i32, i32* %4
%115 = icmp slt i32 %114, 100
br i1 %115, label %116, label %139
116: ; preds = %113
%117 = load i32*, i32** %2
%118 = call i64 @feof(i32* %117)
%119 = icmp ne i64 %118, 0
br i1 %119, label %120, label %125
120: ; preds = %116
%121 = load i32, i32* %4
%122 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0), i32 %121)
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.6, i64 0, i64 0))
%124 = call i32 @exit(i32 0)
unreachable
125: ; preds = %116
%126 = load i32*, i32** %2
%127 = getelementptr inbounds [50 x i8], [50 x i8]* %5, i64 0, i64 0
%128 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%129 = call i32 @fscanf(i32* %126, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8* %127, i8* %128, double* %17, double* %18)
%130 = load double, double* %17
%131 = load double, double* %15
%132 = fadd double %131, %130
store double %132, double* %15
%133 = load double, double* %18
%134 = load double, double* %16
%135 = fadd double %134, %133
store double %135, double* %16
br label %136
136: ; preds = %125
%137 = load i32, i32* %4
%138 = add nsw i32 %137, 1
store i32 %138, i32* %4
br label %113
139: ; preds = %113
%140 = load i32*, i32** %2
%141 = call i32 @fclose(i32* %140)
%142 = call i32* @fopen(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %142, i32** %2
%143 = load i32*, i32** %2
%144 = icmp ne i32* %143, null
br i1 %144, label %153, label %145
145: ; preds = %139
%146 = call i32* @fopen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %146, i32** %2
%147 = load i32*, i32** %2
%148 = icmp ne i32* %147, null
br i1 %148, label %152, label %149
149: ; preds = %145
%150 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.9, i64 0, i64 0))
%151 = call i32 @exit(i32 0)
unreachable
152: ; preds = %145
br label %153
153: ; preds = %152, %139
store double 0.000000e+00, double* %19
store double 0.000000e+00, double* %20
store i32 0, i32* %4
br label %154
154: ; preds = %177, %153
%155 = load i32, i32* %4
%156 = icmp slt i32 %155, 100
br i1 %156, label %157, label %180
157: ; preds = %154
%158 = load i32*, i32** %2
%159 = call i64 @feof(i32* %158)
%160 = icmp ne i64 %159, 0
br i1 %160, label %161, label %166
161: ; preds = %157
%162 = load i32, i32* %4
%163 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0), i32 %162)
%164 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.6, i64 0, i64 0))
%165 = call i32 @exit(i32 0)
unreachable
166: ; preds = %157
%167 = load i32*, i32** %2
%168 = getelementptr inbounds [50 x i8], [50 x i8]* %5, i64 0, i64 0
%169 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%170 = call i32 @fscanf(i32* %167, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8* %168, i8* %169, double* %21, double* %22)
%171 = load double, double* %21
%172 = load double, double* %19
%173 = fadd double %172, %171
store double %173, double* %19
%174 = load double, double* %22
%175 = load double, double* %20
%176 = fadd double %175, %174
store double %176, double* %20
br label %177
177: ; preds = %166
%178 = load i32, i32* %4
%179 = add nsw i32 %178, 1
store i32 %179, i32* %4
br label %154
180: ; preds = %154
%181 = load i32*, i32** %3
%182 = load double, double* %7
%183 = fdiv double %182, 1.000000e+02
%184 = load double, double* %11
%185 = fdiv double %184, 1.000000e+02
%186 = load double, double* %15
%187 = fdiv double %186, 1.000000e+02
%188 = load double, double* %19
%189 = fdiv double %188, 1.000000e+02
%190 = call i32 @fprintf(i32* %181, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.12, i64 0, i64 0), double %183, double %185, double %187, double %189)
%191 = load i32*, i32** %3
%192 = load double, double* %8
%193 = fdiv double %192, 1.000000e+02
%194 = load double, double* %12
%195 = fdiv double %194, 1.000000e+02
%196 = load double, double* %16
%197 = fdiv double %196, 1.000000e+02
%198 = load double, double* %20
%199 = fdiv double %198, 1.000000e+02
%200 = call i32 @fprintf(i32* %191, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.13, i64 0, i64 0), double %193, double %195, double %197, double %199)
%201 = load i32*, i32** %3
%202 = call i32 @fclose(i32* %201)
%203 = load i32*, i32** %2
%204 = call i32 @fclose(i32* %203)
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"orig.txt\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [11 x i8] c"output.txt\00"
@.str.3 = [2 x i8] c"w\00"
@.str.5 = [41 x i8] c"ERROR: You need 100 datum instead of %d\0A\00"
@.str.7 = [15 x i8] c"%s %s %lf %lf\0A\00"
@.str.8 = [8 x i8] c"opt.txt\00"
@.str.10 = [12 x i8] c"opt_bst.txt\00"
@.str.11 = [15 x i8] c"opt_struct.txt\00"
@.str.12 = [26 x i8] c"append() %lf %lf %lf %lf\0A\00"
@.str.13 = [27 x i8] c"findName() %lf %lf %lf %lf\00"
@str = [34 x i8] c"ERROR opening input file orig.txt\00"
@str.16 = [33 x i8] c"ERROR opening input file opt.txt\00"
@str.20 = [49 x i8] c"run 'make run' longer to get enough information\0A\00"
define i32 @main() {
%1 = alloca [50 x i8]
%2 = alloca [50 x i8]
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = tail call i32* @fopen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%12 = tail call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%13 = icmp eq i32* %11, null
br i1 %13, label %14, label %17
14: ; preds = %0
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str, i64 0, i64 0))
%16 = tail call i32 @exit(i32 0)
unreachable
17: ; preds = %0
%18 = getelementptr inbounds [50 x i8], [50 x i8]* %1, i64 0, i64 0
%19 = getelementptr inbounds [50 x i8], [50 x i8]* %2, i64 0, i64 0
%20 = bitcast double* %3 to i8*
%21 = bitcast double* %4 to i8*
br label %22
22: ; preds = %17, %32
%23 = phi double [ 0.000000e+00, %17 ], [ %37, %32 ]
%24 = phi double [ 0.000000e+00, %17 ], [ %35, %32 ]
%25 = phi i32 [ 0, %17 ], [ %38, %32 ]
%26 = call i64 @feof(i32* %11)
%27 = icmp eq i64 %26, 0
br i1 %27, label %32, label %28
28: ; preds = %22
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0), i32 %25)
%30 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.20, i64 0, i64 0))
%31 = call i32 @exit(i32 0)
unreachable
32: ; preds = %22
%33 = call i32 @fscanf(i32* %11, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8* %18, i8* %19, double* %3, double* %4)
%34 = load double, double* %3
%35 = fadd double %24, %34
%36 = load double, double* %4
%37 = fadd double %23, %36
%38 = add nuw nsw i32 %25, 1
%39 = icmp eq i32 %38, 100
br i1 %39, label %40, label %22
40: ; preds = %32
%41 = call i32 @fclose(i32* %11)
%42 = call i32* @fopen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%43 = icmp eq i32* %42, null
br i1 %43, label %44, label %50
44: ; preds = %40
%45 = call i32* @fopen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%46 = icmp eq i32* %45, null
br i1 %46, label %47, label %50
47: ; preds = %44
%48 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.16, i64 0, i64 0))
%49 = call i32 @exit(i32 0)
unreachable
50: ; preds = %44, %40
%51 = phi i32* [ %42, %40 ], [ %45, %44 ]
%52 = bitcast double* %5 to i8*
%53 = bitcast double* %6 to i8*
br label %54
54: ; preds = %50, %64
%55 = phi double [ 0.000000e+00, %50 ], [ %69, %64 ]
%56 = phi double [ 0.000000e+00, %50 ], [ %67, %64 ]
%57 = phi i32 [ 0, %50 ], [ %70, %64 ]
%58 = call i64 @feof(i32* %51)
%59 = icmp eq i64 %58, 0
br i1 %59, label %64, label %60
60: ; preds = %54
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0), i32 %57)
%62 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.20, i64 0, i64 0))
%63 = call i32 @exit(i32 0)
unreachable
64: ; preds = %54
%65 = call i32 @fscanf(i32* %51, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8* %18, i8* %19, double* %5, double* %6)
%66 = load double, double* %5
%67 = fadd double %56, %66
%68 = load double, double* %6
%69 = fadd double %55, %68
%70 = add nuw nsw i32 %57, 1
%71 = icmp eq i32 %70, 100
br i1 %71, label %72, label %54
72: ; preds = %64
%73 = call i32 @fclose(i32* %51)
%74 = call i32* @fopen(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%75 = icmp eq i32* %74, null
br i1 %75, label %76, label %82
76: ; preds = %72
%77 = call i32* @fopen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%78 = icmp eq i32* %77, null
br i1 %78, label %79, label %82
79: ; preds = %76
%80 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.16, i64 0, i64 0))
%81 = call i32 @exit(i32 0)
unreachable
82: ; preds = %76, %72
%83 = phi i32* [ %74, %72 ], [ %77, %76 ]
%84 = bitcast double* %7 to i8*
%85 = bitcast double* %8 to i8*
br label %86
86: ; preds = %82, %96
%87 = phi double [ 0.000000e+00, %82 ], [ %101, %96 ]
%88 = phi double [ 0.000000e+00, %82 ], [ %99, %96 ]
%89 = phi i32 [ 0, %82 ], [ %102, %96 ]
%90 = call i64 @feof(i32* %83)
%91 = icmp eq i64 %90, 0
br i1 %91, label %96, label %92
92: ; preds = %86
%93 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0), i32 %89)
%94 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.20, i64 0, i64 0))
%95 = call i32 @exit(i32 0)
unreachable
96: ; preds = %86
%97 = call i32 @fscanf(i32* %83, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8* %18, i8* %19, double* %7, double* %8)
%98 = load double, double* %7
%99 = fadd double %88, %98
%100 = load double, double* %8
%101 = fadd double %87, %100
%102 = add nuw nsw i32 %89, 1
%103 = icmp eq i32 %102, 100
br i1 %103, label %104, label %86
104: ; preds = %96
%105 = call i32 @fclose(i32* %83)
%106 = call i32* @fopen(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%107 = icmp eq i32* %106, null
br i1 %107, label %108, label %114
108: ; preds = %104
%109 = call i32* @fopen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%110 = icmp eq i32* %109, null
br i1 %110, label %111, label %114
111: ; preds = %108
%112 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.16, i64 0, i64 0))
%113 = call i32 @exit(i32 0)
unreachable
114: ; preds = %108, %104
%115 = phi i32* [ %106, %104 ], [ %109, %108 ]
%116 = bitcast double* %9 to i8*
%117 = bitcast double* %10 to i8*
br label %118
118: ; preds = %114, %128
%119 = phi double [ 0.000000e+00, %114 ], [ %133, %128 ]
%120 = phi double [ 0.000000e+00, %114 ], [ %131, %128 ]
%121 = phi i32 [ 0, %114 ], [ %134, %128 ]
%122 = call i64 @feof(i32* %115)
%123 = icmp eq i64 %122, 0
br i1 %123, label %128, label %124
124: ; preds = %118
%125 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0), i32 %121)
%126 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.20, i64 0, i64 0))
%127 = call i32 @exit(i32 0)
unreachable
128: ; preds = %118
%129 = call i32 @fscanf(i32* %115, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8* %18, i8* %19, double* %9, double* %10)
%130 = load double, double* %9
%131 = fadd double %120, %130
%132 = load double, double* %10
%133 = fadd double %119, %132
%134 = add nuw nsw i32 %121, 1
%135 = icmp eq i32 %134, 100
br i1 %135, label %136, label %118
136: ; preds = %128
%137 = fdiv double %35, 1.000000e+02
%138 = fdiv double %67, 1.000000e+02
%139 = fdiv double %99, 1.000000e+02
%140 = fdiv double %131, 1.000000e+02
%141 = call i32 @fprintf(i32* %12, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.12, i64 0, i64 0), double %137, double %138, double %139, double %140)
%142 = fdiv double %37, 1.000000e+02
%143 = fdiv double %69, 1.000000e+02
%144 = fdiv double %101, 1.000000e+02
%145 = fdiv double %133, 1.000000e+02
%146 = call i32 @fprintf(i32* %12, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.13, i64 0, i64 0), double %142, double %143, double %144, double %145)
%147 = call i32 @fclose(i32* %12)
%148 = call i32 @fclose(i32* %115)
ret i32 0
}