#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, 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;
  }
  fp = fopen("hash.txt", "r");
  if (!fp) {
    fp = fopen("orig.txt", "r");
    if (!fp) {
      printf("ERROR opening input file hash.txt\n");
      exit(0);
    }
  }
  double hash_sum_a = 0.0, hash_sum_f = 0.0, hash_a, hash_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, &hash_a, &hash_f);
    hash_sum_a += hash_a;
    hash_sum_f += hash_f;
  }
  fp = fopen("trie.txt", "r");
  if (!fp) {
    fp = fopen("orig.txt", "r");
    if (!fp) {
      printf("ERROR opening input file trie.txt\n");
      exit(0);
    }
  }
  double trie_sum_a = 0.0, trie_sum_f = 0.0, trie_a, trie_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, &trie_a, &trie_f);
    trie_sum_a += trie_a;
    trie_sum_f += trie_f;
  }
  fp = fopen("rbtree.txt", "r");
  if (!fp) {
    fp = fopen("orig.txt", "r");
    if (!fp) {
      printf("ERROR opening input file rbtree.txt\n");
      exit(0);
    }
  }
  double rbtree_sum_a = 0.0, rbtree_sum_f = 0.0, rbtree_a, rbtree_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, &rbtree_a, &rbtree_f);
    rbtree_sum_a += rbtree_a;
    rbtree_sum_f += rbtree_f;
  }
  fp = fopen("bptree.txt", "r");
  if (!fp) {
    fp = fopen("orig.txt", "r");
    if (!fp) {
      printf("ERROR opening input file bptree.txt\n");
      exit(0);
    }
  }
  double bptree_sum_a = 0.0, bptree_sum_f = 0.0, bptree_a, bptree_f;
  for (i = 0; i < 10; i++) {
    if (feof(fp)) {
      printf("ERROR: You need 10 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, &bptree_a, &bptree_f);
    bptree_sum_a += bptree_a;
    bptree_sum_f += bptree_f;
  }
  fp = fopen("bptree_bulk.txt", "r");
  if (!fp) {
    fp = fopen("orig.txt", "r");
    if (!fp) {
      printf("ERROR opening input file bptree_bulk.txt\n");
      exit(0);
    }
  }
  double bptree_bulk_sum_a = 0.0, bptree_bulk_sum_f = 0.0, bptree_bulk_a,
         bptree_bulk_f;
  for (i = 0; i < 10; i++) {
    if (feof(fp)) {
      printf("ERROR: You need 10 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, &bptree_bulk_a, &bptree_bulk_f);
    bptree_bulk_sum_a += bptree_bulk_a;
    bptree_bulk_sum_f += bptree_bulk_f;
  }
  fprintf(output, "append() %lf %lf %lf %lf %lf %lf %lf\n", orig_sum_a / 100.0,
          opt_sum_a / 100.0, hash_sum_a / 100.0, trie_sum_a / 100.0,
          rbtree_sum_a / 100.0, bptree_sum_a / 10.0, bptree_bulk_sum_a / 10.0);
  fprintf(output, "findName() %lf %lf %lf %lf %lf %lf %lf\n",
          orig_sum_f / 100.0, opt_sum_f / 100.0, hash_sum_f / 100.0,
          trie_sum_f / 100.0, rbtree_sum_f / 100.0, bptree_sum_f / 10.0,
          bptree_bulk_sum_f / 10.0);
  fprintf(output, "total %lf %lf %lf %lf %lf %lf %lf",
          (orig_sum_a + orig_sum_f) / 100.0, (opt_sum_a + opt_sum_f) / 100.0,
          (hash_sum_a + hash_sum_f) / 100.0, (trie_sum_a + trie_sum_f) / 100.0,
          (rbtree_sum_a + rbtree_sum_f) / 100.0,
          (bptree_sum_a + bptree_sum_f) / 10.0,
          (bptree_bulk_sum_a + bptree_bulk_sum_f) / 10.0);
  fclose(output);
  fclose(fp);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x170,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe87(%rip),%rdi
lea    0xe89(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x10(%rbp)
lea    0xe7b(%rip),%rdi
lea    0xe7f(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    11d0 <main+0x60>
lea    0xe66(%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    0xe30(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe4b(%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    0xe59(%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    0xe07(%rip),%rdi
lea    0xd64(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1305 <main+0x195>
lea    0xd40(%rip),%rdi
lea    0xd42(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1300 <main+0x190>
lea    0xdcb(%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    0xd02(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd1d(%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    0xd2b(%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>
lea    0xd0c(%rip),%rdi
lea    0xc3f(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    142a <main+0x2ba>
lea    0xc1b(%rip),%rdi
lea    0xc1d(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1425 <main+0x2b5>
lea    0xcd1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   1090 <exit@plt>
jmp    142a <main+0x2ba>
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    14f1 <main+0x381>
mov    -0x10(%rbp),%rdi
call   1070 <feof@plt>
cmp    $0x0,%rax
je     148a <main+0x31a>
mov    -0x1c(%rbp),%esi
lea    0xbdd(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xbf8(%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    0xc06(%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    1447 <main+0x2d7>
lea    0xc13(%rip),%rdi
lea    0xb1a(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    154f <main+0x3df>
lea    0xaf6(%rip),%rdi
lea    0xaf8(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    154a <main+0x3da>
lea    0xbd8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   1090 <exit@plt>
jmp    154f <main+0x3df>
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    1616 <main+0x4a6>
mov    -0x10(%rbp),%rdi
call   1070 <feof@plt>
cmp    $0x0,%rax
je     15af <main+0x43f>
mov    -0x1c(%rbp),%esi
lea    0xab8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xad3(%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    0xae1(%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    156c <main+0x3fc>
lea    0xb1a(%rip),%rdi
lea    0x9f5(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1674 <main+0x504>
lea    0x9d1(%rip),%rdi
lea    0x9d3(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    166f <main+0x4ff>
lea    0xae1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   1090 <exit@plt>
jmp    1674 <main+0x504>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x118(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x120(%rbp)
ff
movl   $0x0,-0x1c(%rbp)
cmpl   $0x64,-0x1c(%rbp)
jge    173b <main+0x5cb>
mov    -0x10(%rbp),%rdi
call   1070 <feof@plt>
cmp    $0x0,%rax
je     16d4 <main+0x564>
mov    -0x1c(%rbp),%esi
lea    0x993(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0x9ae(%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    0x9bc(%rip),%rsi
lea    -0x128(%rbp),%r8
lea    -0x130(%rbp),%r9
call   1050 <fscanf@plt>
movsd  -0x128(%rbp),%xmm0
ff
addsd  -0x118(%rbp),%xmm0
ff
movsd  %xmm0,-0x118(%rbp)
ff
movsd  -0x130(%rbp),%xmm0
ff
addsd  -0x120(%rbp),%xmm0
ff
movsd  %xmm0,-0x120(%rbp)
ff
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1691 <main+0x521>
lea    0xa25(%rip),%rdi
lea    0x8d0(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1799 <main+0x629>
lea    0x8ac(%rip),%rdi
lea    0x8ae(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1794 <main+0x624>
lea    0x9ec(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   1090 <exit@plt>
jmp    1799 <main+0x629>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x138(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x140(%rbp)
ff
movl   $0x0,-0x1c(%rbp)
cmpl   $0xa,-0x1c(%rbp)
jge    1860 <main+0x6f0>
mov    -0x10(%rbp),%rdi
call   1070 <feof@plt>
cmp    $0x0,%rax
je     17f9 <main+0x689>
mov    -0x1c(%rbp),%esi
lea    0x9ba(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0x889(%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    0x897(%rip),%rsi
lea    -0x148(%rbp),%r8
lea    -0x150(%rbp),%r9
call   1050 <fscanf@plt>
movsd  -0x148(%rbp),%xmm0
ff
addsd  -0x138(%rbp),%xmm0
ff
movsd  %xmm0,-0x138(%rbp)
ff
movsd  -0x150(%rbp),%xmm0
ff
addsd  -0x140(%rbp),%xmm0
ff
movsd  %xmm0,-0x140(%rbp)
ff
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    17b6 <main+0x646>
lea    0x958(%rip),%rdi
lea    0x7ab(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    18be <main+0x74e>
lea    0x787(%rip),%rdi
lea    0x789(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    18b9 <main+0x749>
lea    0x924(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   1090 <exit@plt>
jmp    18be <main+0x74e>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x158(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x160(%rbp)
ff
movl   $0x0,-0x1c(%rbp)
cmpl   $0xa,-0x1c(%rbp)
jge    1985 <main+0x815>
mov    -0x10(%rbp),%rdi
call   1070 <feof@plt>
cmp    $0x0,%rax
je     191e <main+0x7ae>
mov    -0x1c(%rbp),%esi
lea    0x895(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0x764(%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    0x772(%rip),%rsi
lea    -0x168(%rbp),%r8
lea    -0x170(%rbp),%r9
call   1050 <fscanf@plt>
movsd  -0x168(%rbp),%xmm0
ff
addsd  -0x158(%rbp),%xmm0
ff
movsd  %xmm0,-0x158(%rbp)
ff
movsd  -0x170(%rbp),%xmm0
ff
addsd  -0x160(%rbp),%xmm0
ff
movsd  %xmm0,-0x160(%rbp)
ff
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    18db <main+0x76b>
mov    -0x18(%rbp),%rdi
movsd  -0x98(%rbp),%xmm0
ff
movsd  0x66f(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  -0xb8(%rbp),%xmm1
ff
movsd  0x65b(%rip),%xmm2
divsd  %xmm2,%xmm1
movsd  -0xd8(%rbp),%xmm2
ff
movsd  0x647(%rip),%xmm3
divsd  %xmm3,%xmm2
movsd  -0xf8(%rbp),%xmm3
ff
movsd  0x633(%rip),%xmm4
divsd  %xmm4,%xmm3
movsd  -0x118(%rbp),%xmm4
ff
movsd  0x61f(%rip),%xmm5
divsd  %xmm5,%xmm4
movsd  -0x138(%rbp),%xmm5
ff
movsd  0x603(%rip),%xmm6
divsd  %xmm6,%xmm5
movsd  -0x158(%rbp),%xmm6
ff
movsd  0x5ef(%rip),%xmm7
divsd  %xmm7,%xmm6
lea    0x7dd(%rip),%rsi
call   1060 <fprintf@plt>
mov    -0x18(%rbp),%rdi
movsd  -0xa0(%rbp),%xmm0
ff
movsd  0x5d3(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  -0xc0(%rbp),%xmm1
ff
movsd  0x5bf(%rip),%xmm2
divsd  %xmm2,%xmm1
movsd  -0xe0(%rbp),%xmm2
ff
movsd  0x5ab(%rip),%xmm3
divsd  %xmm3,%xmm2
movsd  -0x100(%rbp),%xmm3
ff
movsd  0x597(%rip),%xmm4
divsd  %xmm4,%xmm3
movsd  -0x120(%rbp),%xmm4
ff
movsd  0x583(%rip),%xmm5
divsd  %xmm5,%xmm4
movsd  -0x140(%rbp),%xmm5
ff
movsd  0x567(%rip),%xmm6
divsd  %xmm6,%xmm5
movsd  -0x160(%rbp),%xmm6
ff
movsd  0x553(%rip),%xmm7
divsd  %xmm7,%xmm6
lea    0x767(%rip),%rsi
call   1060 <fprintf@plt>
mov    -0x18(%rbp),%rdi
movsd  -0x98(%rbp),%xmm0
ff
addsd  -0xa0(%rbp),%xmm0
ff
movsd  0x52f(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  -0xb8(%rbp),%xmm1
ff
addsd  -0xc0(%rbp),%xmm1
ff
movsd  0x513(%rip),%xmm2
divsd  %xmm2,%xmm1
movsd  -0xd8(%rbp),%xmm2
addsd  -0xe0(%rbp),%xmm2
ff
movsd  0x4f7(%rip),%xmm3
divsd  %xmm3,%xmm2
movsd  -0xf8(%rbp),%xmm3
ff
addsd  -0x100(%rbp),%xmm3
ff
movsd  0x4db(%rip),%xmm4
divsd  %xmm4,%xmm3
movsd  -0x118(%rbp),%xmm4
ff
addsd  -0x120(%rbp),%xmm4
ff
movsd  0x4bf(%rip),%xmm5
divsd  %xmm5,%xmm4
movsd  -0x138(%rbp),%xmm5
ff
addsd  -0x140(%rbp),%xmm5
ff
movsd  0x49b(%rip),%xmm6
divsd  %xmm6,%xmm5
movsd  -0x158(%rbp),%xmm6
ff
addsd  -0x160(%rbp),%xmm6
ff
movsd  0x47f(%rip),%xmm7
divsd  %xmm7,%xmm6
lea    0x6bb(%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    $0x170,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x168,%rsp
lea    0xf70(%rip),%rdi
lea    0xe71(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%rbx
lea    0xe64(%rip),%rdi
lea    0xe68(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,0x78(%rsp)
test   %rbx,%rbx
je     1900 <main+0x780>
xor    %ebp,%ebp
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x60(%rsp)
lea    0x130(%rsp),%r12
lea    0xf0(%rsp),%r13
lea    0xe8(%rsp),%r14
lea    0xe0(%rsp),%r15
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x68(%rsp)
xchg   %ax,%ax
mov    %rbx,%rdi
call   1080 <feof@plt>
test   %rax,%rax
jne    18d4 <main+0x754>
mov    %rbx,%rdi
lea    0xe2d(%rip),%rsi
mov    %r12,%rdx
mov    %r13,%rcx
mov    %r14,%r8
mov    %r15,%r9
call   1060 <fscanf@plt>
movsd  0x68(%rsp),%xmm0
addsd  0xe8(%rsp),%xmm0
movsd  %xmm0,0x68(%rsp)
movsd  0x60(%rsp),%xmm0
addsd  0xe0(%rsp),%xmm0
movsd  %xmm0,0x60(%rsp)
add    $0x1,%ebp
cmp    $0x64,%ebp
jne    1200 <main+0x80>
mov    %rbx,%rdi
call   1040 <fclose@plt>
lea    0xebd(%rip),%rdi
lea    0xd9c(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    12a0 <main+0x120>
lea    0xe80(%rip),%rdi
lea    0xd81(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%rbx
test   %rax,%rax
je     1909 <main+0x789>
xor    %ebp,%ebp
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x50(%rsp)
lea    0x130(%rsp),%r12
lea    0xf0(%rsp),%r13
lea    0xd8(%rsp),%r14
lea    0xd0(%rsp),%r15
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x58(%rsp)
cs nopw 0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   1080 <feof@plt>
test   %rax,%rax
jne    18d4 <main+0x754>
mov    %rbx,%rdi
lea    0xd4d(%rip),%rsi
mov    %r12,%rdx
mov    %r13,%rcx
mov    %r14,%r8
mov    %r15,%r9
call   1060 <fscanf@plt>
movsd  0x58(%rsp),%xmm0
addsd  0xd8(%rsp),%xmm0
movsd  %xmm0,0x58(%rsp)
movsd  0x50(%rsp),%xmm0
addsd  0xd0(%rsp),%xmm0
movsd  %xmm0,0x50(%rsp)
add    $0x1,%ebp
cmp    $0x64,%ebp
jne    12e0 <main+0x160>
lea    0xe06(%rip),%rdi
lea    0xcc4(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    1378 <main+0x1f8>
lea    0xda8(%rip),%rdi
lea    0xca9(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%rbx
test   %rax,%rax
je     1912 <main+0x792>
xor    %ebp,%ebp
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x40(%rsp)
lea    0x130(%rsp),%r12
lea    0xf0(%rsp),%r13
lea    0xc8(%rsp),%r14
lea    0xc0(%rsp),%r15
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x48(%rsp)
xchg   %ax,%ax
mov    %rbx,%rdi
call   1080 <feof@plt>
test   %rax,%rax
jne    18d4 <main+0x754>
mov    %rbx,%rdi
lea    0xc7d(%rip),%rsi
mov    %r12,%rdx
mov    %r13,%rcx
mov    %r14,%r8
mov    %r15,%r9
call   1060 <fscanf@plt>
movsd  0x48(%rsp),%xmm0
addsd  0xc8(%rsp),%xmm0
movsd  %xmm0,0x48(%rsp)
movsd  0x40(%rsp),%xmm0
addsd  0xc0(%rsp),%xmm0
movsd  %xmm0,0x40(%rsp)
add    $0x1,%ebp
cmp    $0x64,%ebp
jne    13b0 <main+0x230>
lea    0xd58(%rip),%rdi
lea    0xbf4(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    1448 <main+0x2c8>
lea    0xcd8(%rip),%rdi
lea    0xbd9(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%rbx
test   %rax,%rax
je     191b <main+0x79b>
xor    %ebp,%ebp
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x30(%rsp)
lea    0x130(%rsp),%r12
lea    0xf0(%rsp),%r13
lea    0xb8(%rsp),%r14
lea    0xb0(%rsp),%r15
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x38(%rsp)
xchg   %ax,%ax
mov    %rbx,%rdi
call   1080 <feof@plt>
test   %rax,%rax
jne    18d4 <main+0x754>
mov    %rbx,%rdi
lea    0xbad(%rip),%rsi
mov    %r12,%rdx
mov    %r13,%rcx
mov    %r14,%r8
mov    %r15,%r9
call   1060 <fscanf@plt>
movsd  0x38(%rsp),%xmm0
addsd  0xb8(%rsp),%xmm0
movsd  %xmm0,0x38(%rsp)
movsd  0x30(%rsp),%xmm0
addsd  0xb0(%rsp),%xmm0
movsd  %xmm0,0x30(%rsp)
add    $0x1,%ebp
cmp    $0x64,%ebp
jne    1480 <main+0x300>
lea    0xcaa(%rip),%rdi
lea    0xb24(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    1518 <main+0x398>
lea    0xc08(%rip),%rdi
lea    0xb09(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%rbx
test   %rax,%rax
je     1924 <main+0x7a4>
xor    %ebp,%ebp
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x20(%rsp)
lea    0x130(%rsp),%r12
lea    0xf0(%rsp),%r13
lea    0xa8(%rsp),%r14
lea    0xa0(%rsp),%r15
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x28(%rsp)
xchg   %ax,%ax
mov    %rbx,%rdi
call   1080 <feof@plt>
test   %rax,%rax
jne    18d4 <main+0x754>
mov    %rbx,%rdi
lea    0xadd(%rip),%rsi
mov    %r12,%rdx
mov    %r13,%rcx
mov    %r14,%r8
mov    %r15,%r9
call   1060 <fscanf@plt>
movsd  0x28(%rsp),%xmm0
addsd  0xa8(%rsp),%xmm0
movsd  %xmm0,0x28(%rsp)
movsd  0x20(%rsp),%xmm0
addsd  0xa0(%rsp),%xmm0
movsd  %xmm0,0x20(%rsp)
add    $0x1,%ebp
cmp    $0x64,%ebp
jne    1550 <main+0x3d0>
lea    0xbfe(%rip),%rdi
lea    0xa54(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    15e8 <main+0x468>
lea    0xb38(%rip),%rdi
lea    0xa39(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%rbx
test   %rax,%rax
je     192d <main+0x7ad>
xor    %ebp,%ebp
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x10(%rsp)
lea    0x130(%rsp),%r12
lea    0xf0(%rsp),%r13
lea    0x98(%rsp),%r14
lea    0x90(%rsp),%r15
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x18(%rsp)
xchg   %ax,%ax
mov    %rbx,%rdi
call   1080 <feof@plt>
test   %rax,%rax
jne    18dd <main+0x75d>
mov    %rbx,%rdi
lea    0xa0d(%rip),%rsi
mov    %r12,%rdx
mov    %r13,%rcx
mov    %r14,%r8
mov    %r15,%r9
call   1060 <fscanf@plt>
movsd  0x18(%rsp),%xmm0
addsd  0x98(%rsp),%xmm0
movsd  %xmm0,0x18(%rsp)
movsd  0x10(%rsp),%xmm0
addsd  0x90(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
add    $0x1,%ebp
cmp    $0xa,%ebp
jne    1620 <main+0x4a0>
lea    0xb52(%rip),%rdi
lea    0x984(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    16b8 <main+0x538>
lea    0xa68(%rip),%rdi
lea    0x969(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%rbx
test   %rax,%rax
je     1936 <main+0x7b6>
xor    %ebp,%ebp
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x8(%rsp)
lea    0x130(%rsp),%r12
lea    0xf0(%rsp),%r13
lea    0x88(%rsp),%r14
lea    0x80(%rsp),%r15
xorpd  %xmm6,%xmm6
nopl   0x0(%rax,%rax,1)
movsd  %xmm6,0x70(%rsp)
mov    %rbx,%rdi
call   1080 <feof@plt>
test   %rax,%rax
jne    18dd <main+0x75d>
mov    %rbx,%rdi
lea    0x937(%rip),%rsi
mov    %r12,%rdx
mov    %r13,%rcx
mov    %r14,%r8
mov    %r15,%r9
call   1060 <fscanf@plt>
movsd  0x70(%rsp),%xmm6
addsd  0x88(%rsp),%xmm6
movsd  0x8(%rsp),%xmm0
addsd  0x80(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
add    $0x1,%ebp
cmp    $0xa,%ebp
jne    16f0 <main+0x570>
movsd  0x8aa(%rip),%xmm5
movsd  0x68(%rsp),%xmm0
divsd  %xmm5,%xmm0
movsd  0x58(%rsp),%xmm1
divsd  %xmm5,%xmm1
movsd  0x48(%rsp),%xmm2
divsd  %xmm5,%xmm2
movsd  0x38(%rsp),%xmm3
divsd  %xmm5,%xmm3
movsd  0x28(%rsp),%xmm4
divsd  %xmm5,%xmm4
movsd  0x878(%rip),%xmm7
movsd  0x18(%rsp),%xmm5
divsd  %xmm7,%xmm5
movsd  %xmm6,0x70(%rsp)
divsd  %xmm7,%xmm6
lea    0x8d4(%rip),%rsi
mov    0x78(%rsp),%rbp
mov    %rbp,%rdi
call   1070 <fprintf@plt>
movsd  0x60(%rsp),%xmm0
movsd  0x83a(%rip),%xmm5
divsd  %xmm5,%xmm0
movsd  0x50(%rsp),%xmm1
divsd  %xmm5,%xmm1
movsd  0x40(%rsp),%xmm2
divsd  %xmm5,%xmm2
movsd  0x30(%rsp),%xmm3
divsd  %xmm5,%xmm3
movsd  0x20(%rsp),%xmm4
divsd  %xmm5,%xmm4
movsd  0x10(%rsp),%xmm5
movsd  0x808(%rip),%xmm7
divsd  %xmm7,%xmm5
movsd  0x8(%rsp),%xmm6
divsd  %xmm7,%xmm6
lea    0x890(%rip),%rsi
mov    %rbp,%rdi
call   1070 <fprintf@plt>
movsd  0x68(%rsp),%xmm0
addsd  0x60(%rsp),%xmm0
movsd  0x7cf(%rip),%xmm4
divsd  %xmm4,%xmm0
movsd  0x58(%rsp),%xmm1
addsd  0x50(%rsp),%xmm1
divsd  %xmm4,%xmm1
movsd  0x48(%rsp),%xmm2
addsd  0x40(%rsp),%xmm2
divsd  %xmm4,%xmm2
movsd  0x38(%rsp),%xmm3
addsd  0x30(%rsp),%xmm3
divsd  %xmm4,%xmm3
movapd %xmm4,%xmm5
movsd  0x28(%rsp),%xmm4
addsd  0x20(%rsp),%xmm4
divsd  %xmm5,%xmm4
movsd  0x18(%rsp),%xmm5
addsd  0x10(%rsp),%xmm5
movsd  0x77b(%rip),%xmm7
divsd  %xmm7,%xmm5
movsd  0x70(%rsp),%xmm6
addsd  0x8(%rsp),%xmm6
divsd  %xmm7,%xmm6
lea    0x825(%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    $0x168,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x744(%rip),%rdi
jmp    18e4 <main+0x764>
lea    0x773(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x8f3(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   10a0 <exit@plt>
lea    0x7e8(%rip),%rdi
jmp    18f4 <main+0x774>
lea    0x801(%rip),%rdi
jmp    18f4 <main+0x774>
lea    0x819(%rip),%rdi
jmp    18f4 <main+0x774>
lea    0x832(%rip),%rdi
jmp    18f4 <main+0x774>
lea    0x84b(%rip),%rdi
jmp    18f4 <main+0x774>
lea    0x866(%rip),%rdi
jmp    18f4 <main+0x774>
lea    0x881(%rip),%rdi
jmp    18f4 <main+0x774>

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 = [9 x i8] c"hash.txt\00"
@.str.11 = [35 x i8] c"ERROR opening input file hash.txt\0A\00"
@.str.12 = [9 x i8] c"trie.txt\00"
@.str.13 = [35 x i8] c"ERROR opening input file trie.txt\0A\00"
@.str.14 = [11 x i8] c"rbtree.txt\00"
@.str.15 = [37 x i8] c"ERROR opening input file rbtree.txt\0A\00"
@.str.16 = [11 x i8] c"bptree.txt\00"
@.str.17 = [37 x i8] c"ERROR opening input file bptree.txt\0A\00"
@.str.18 = [40 x i8] c"ERROR: You need 10 datum instead of %d\0A\00"
@.str.19 = [16 x i8] c"bptree_bulk.txt\00"
@.str.20 = [42 x i8] c"ERROR opening input file bptree_bulk.txt\0A\00"
@.str.21 = [38 x i8] c"append() %lf %lf %lf %lf %lf %lf %lf\0A\00"
@.str.22 = [40 x i8] c"findName() %lf %lf %lf %lf %lf %lf %lf\0A\00"
@.str.23 = [34 x i8] c"total %lf %lf %lf %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
%23 = alloca double
%24 = alloca double
%25 = alloca double
%26 = alloca double
%27 = alloca double
%28 = alloca double
%29 = alloca double
%30 = alloca double
%31 = alloca double
%32 = alloca double
%33 = alloca double
%34 = alloca double
store i32 0, i32* %1
%35 = 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* %35, i32** %2
%36 = 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* %36, i32** %3
%37 = load i32*, i32** %2
%38 = icmp ne i32* %37, null
br i1 %38, label %42, label %39
39: ; preds = %0
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0))
%41 = call i32 @exit(i32 0)
unreachable
42: ; 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 %43
43: ; preds = %66, %42
%44 = load i32, i32* %4
%45 = icmp slt i32 %44, 100
br i1 %45, label %46, label %69
46: ; preds = %43
%47 = load i32*, i32** %2
%48 = call i64 @feof(i32* %47)
%49 = icmp ne i64 %48, 0
br i1 %49, label %50, label %55
50: ; preds = %46
%51 = load i32, i32* %4
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0), i32 %51)
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.6, i64 0, i64 0))
%54 = call i32 @exit(i32 0)
unreachable
55: ; preds = %46
%56 = load i32*, i32** %2
%57 = getelementptr inbounds [50 x i8], [50 x i8]* %5, i64 0, i64 0
%58 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%59 = call i32 @fscanf(i32* %56, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8* %57, i8* %58, double* %9, double* %10)
%60 = load double, double* %9
%61 = load double, double* %7
%62 = fadd double %61, %60
store double %62, double* %7
%63 = load double, double* %10
%64 = load double, double* %8
%65 = fadd double %64, %63
store double %65, double* %8
br label %66
66: ; preds = %55
%67 = load i32, i32* %4
%68 = add nsw i32 %67, 1
store i32 %68, i32* %4
br label %43
69: ; preds = %43
%70 = load i32*, i32** %2
%71 = call i32 @fclose(i32* %70)
%72 = 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* %72, i32** %2
%73 = load i32*, i32** %2
%74 = icmp ne i32* %73, null
br i1 %74, label %83, label %75
75: ; preds = %69
%76 = 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* %76, i32** %2
%77 = load i32*, i32** %2
%78 = icmp ne i32* %77, null
br i1 %78, label %82, label %79
79: ; preds = %75
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.9, i64 0, i64 0))
%81 = call i32 @exit(i32 0)
unreachable
82: ; preds = %75
br label %83
83: ; preds = %82, %69
store double 0.000000e+00, double* %11
store double 0.000000e+00, double* %12
store i32 0, i32* %4
br label %84
84: ; preds = %107, %83
%85 = load i32, i32* %4
%86 = icmp slt i32 %85, 100
br i1 %86, label %87, label %110
87: ; preds = %84
%88 = load i32*, i32** %2
%89 = call i64 @feof(i32* %88)
%90 = icmp ne i64 %89, 0
br i1 %90, label %91, label %96
91: ; preds = %87
%92 = load i32, i32* %4
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0), i32 %92)
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.6, i64 0, i64 0))
%95 = call i32 @exit(i32 0)
unreachable
96: ; preds = %87
%97 = load i32*, i32** %2
%98 = getelementptr inbounds [50 x i8], [50 x i8]* %5, i64 0, i64 0
%99 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%100 = call i32 @fscanf(i32* %97, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8* %98, i8* %99, double* %13, double* %14)
%101 = load double, double* %13
%102 = load double, double* %11
%103 = fadd double %102, %101
store double %103, double* %11
%104 = load double, double* %14
%105 = load double, double* %12
%106 = fadd double %105, %104
store double %106, double* %12
br label %107
107: ; preds = %96
%108 = load i32, i32* %4
%109 = add nsw i32 %108, 1
store i32 %109, i32* %4
br label %84
110: ; preds = %84
%111 = call i32* @fopen(i8* getelementptr inbounds ([9 x i8], [9 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* %111, i32** %2
%112 = load i32*, i32** %2
%113 = icmp ne i32* %112, null
br i1 %113, label %122, label %114
114: ; preds = %110
%115 = 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* %115, i32** %2
%116 = load i32*, i32** %2
%117 = icmp ne i32* %116, null
br i1 %117, label %121, label %118
118: ; preds = %114
%119 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.11, i64 0, i64 0))
%120 = call i32 @exit(i32 0)
unreachable
121: ; preds = %114
br label %122
122: ; preds = %121, %110
store double 0.000000e+00, double* %15
store double 0.000000e+00, double* %16
store i32 0, i32* %4
br label %123
123: ; preds = %146, %122
%124 = load i32, i32* %4
%125 = icmp slt i32 %124, 100
br i1 %125, label %126, label %149
126: ; preds = %123
%127 = load i32*, i32** %2
%128 = call i64 @feof(i32* %127)
%129 = icmp ne i64 %128, 0
br i1 %129, label %130, label %135
130: ; preds = %126
%131 = load i32, i32* %4
%132 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0), i32 %131)
%133 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.6, i64 0, i64 0))
%134 = call i32 @exit(i32 0)
unreachable
135: ; preds = %126
%136 = load i32*, i32** %2
%137 = getelementptr inbounds [50 x i8], [50 x i8]* %5, i64 0, i64 0
%138 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%139 = call i32 @fscanf(i32* %136, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8* %137, i8* %138, double* %17, double* %18)
%140 = load double, double* %17
%141 = load double, double* %15
%142 = fadd double %141, %140
store double %142, double* %15
%143 = load double, double* %18
%144 = load double, double* %16
%145 = fadd double %144, %143
store double %145, double* %16
br label %146
146: ; preds = %135
%147 = load i32, i32* %4
%148 = add nsw i32 %147, 1
store i32 %148, i32* %4
br label %123
149: ; preds = %123
%150 = call i32* @fopen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %150, i32** %2
%151 = load i32*, i32** %2
%152 = icmp ne i32* %151, null
br i1 %152, label %161, label %153
153: ; preds = %149
%154 = 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* %154, i32** %2
%155 = load i32*, i32** %2
%156 = icmp ne i32* %155, null
br i1 %156, label %160, label %157
157: ; preds = %153
%158 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.13, i64 0, i64 0))
%159 = call i32 @exit(i32 0)
unreachable
160: ; preds = %153
br label %161
161: ; preds = %160, %149
store double 0.000000e+00, double* %19
store double 0.000000e+00, double* %20
store i32 0, i32* %4
br label %162
162: ; preds = %185, %161
%163 = load i32, i32* %4
%164 = icmp slt i32 %163, 100
br i1 %164, label %165, label %188
165: ; preds = %162
%166 = load i32*, i32** %2
%167 = call i64 @feof(i32* %166)
%168 = icmp ne i64 %167, 0
br i1 %168, label %169, label %174
169: ; preds = %165
%170 = load i32, i32* %4
%171 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0), i32 %170)
%172 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.6, i64 0, i64 0))
%173 = call i32 @exit(i32 0)
unreachable
174: ; preds = %165
%175 = load i32*, i32** %2
%176 = getelementptr inbounds [50 x i8], [50 x i8]* %5, i64 0, i64 0
%177 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%178 = call i32 @fscanf(i32* %175, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8* %176, i8* %177, double* %21, double* %22)
%179 = load double, double* %21
%180 = load double, double* %19
%181 = fadd double %180, %179
store double %181, double* %19
%182 = load double, double* %22
%183 = load double, double* %20
%184 = fadd double %183, %182
store double %184, double* %20
br label %185
185: ; preds = %174
%186 = load i32, i32* %4
%187 = add nsw i32 %186, 1
store i32 %187, i32* %4
br label %162
188: ; preds = %162
%189 = call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %189, i32** %2
%190 = load i32*, i32** %2
%191 = icmp ne i32* %190, null
br i1 %191, label %200, label %192
192: ; preds = %188
%193 = 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* %193, i32** %2
%194 = load i32*, i32** %2
%195 = icmp ne i32* %194, null
br i1 %195, label %199, label %196
196: ; preds = %192
%197 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.15, i64 0, i64 0))
%198 = call i32 @exit(i32 0)
unreachable
199: ; preds = %192
br label %200
200: ; preds = %199, %188
store double 0.000000e+00, double* %23
store double 0.000000e+00, double* %24
store i32 0, i32* %4
br label %201
201: ; preds = %224, %200
%202 = load i32, i32* %4
%203 = icmp slt i32 %202, 100
br i1 %203, label %204, label %227
204: ; preds = %201
%205 = load i32*, i32** %2
%206 = call i64 @feof(i32* %205)
%207 = icmp ne i64 %206, 0
br i1 %207, label %208, label %213
208: ; preds = %204
%209 = load i32, i32* %4
%210 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0), i32 %209)
%211 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.6, i64 0, i64 0))
%212 = call i32 @exit(i32 0)
unreachable
213: ; preds = %204
%214 = load i32*, i32** %2
%215 = getelementptr inbounds [50 x i8], [50 x i8]* %5, i64 0, i64 0
%216 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%217 = call i32 @fscanf(i32* %214, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8* %215, i8* %216, double* %25, double* %26)
%218 = load double, double* %25
%219 = load double, double* %23
%220 = fadd double %219, %218
store double %220, double* %23
%221 = load double, double* %26
%222 = load double, double* %24
%223 = fadd double %222, %221
store double %223, double* %24
br label %224
224: ; preds = %213
%225 = load i32, i32* %4
%226 = add nsw i32 %225, 1
store i32 %226, i32* %4
br label %201
227: ; preds = %201
%228 = call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %228, i32** %2
%229 = load i32*, i32** %2
%230 = icmp ne i32* %229, null
br i1 %230, label %239, label %231
231: ; preds = %227
%232 = 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* %232, i32** %2
%233 = load i32*, i32** %2
%234 = icmp ne i32* %233, null
br i1 %234, label %238, label %235
235: ; preds = %231
%236 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.17, i64 0, i64 0))
%237 = call i32 @exit(i32 0)
unreachable
238: ; preds = %231
br label %239
239: ; preds = %238, %227
store double 0.000000e+00, double* %27
store double 0.000000e+00, double* %28
store i32 0, i32* %4
br label %240
240: ; preds = %263, %239
%241 = load i32, i32* %4
%242 = icmp slt i32 %241, 10
br i1 %242, label %243, label %266
243: ; preds = %240
%244 = load i32*, i32** %2
%245 = call i64 @feof(i32* %244)
%246 = icmp ne i64 %245, 0
br i1 %246, label %247, label %252
247: ; preds = %243
%248 = load i32, i32* %4
%249 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.18, i64 0, i64 0), i32 %248)
%250 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.6, i64 0, i64 0))
%251 = call i32 @exit(i32 0)
unreachable
252: ; preds = %243
%253 = load i32*, i32** %2
%254 = getelementptr inbounds [50 x i8], [50 x i8]* %5, i64 0, i64 0
%255 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%256 = call i32 @fscanf(i32* %253, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8* %254, i8* %255, double* %29, double* %30)
%257 = load double, double* %29
%258 = load double, double* %27
%259 = fadd double %258, %257
store double %259, double* %27
%260 = load double, double* %30
%261 = load double, double* %28
%262 = fadd double %261, %260
store double %262, double* %28
br label %263
263: ; preds = %252
%264 = load i32, i32* %4
%265 = add nsw i32 %264, 1
store i32 %265, i32* %4
br label %240
266: ; preds = %240
%267 = call i32* @fopen(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %267, i32** %2
%268 = load i32*, i32** %2
%269 = icmp ne i32* %268, null
br i1 %269, label %278, label %270
270: ; preds = %266
%271 = 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* %271, i32** %2
%272 = load i32*, i32** %2
%273 = icmp ne i32* %272, null
br i1 %273, label %277, label %274
274: ; preds = %270
%275 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.20, i64 0, i64 0))
%276 = call i32 @exit(i32 0)
unreachable
277: ; preds = %270
br label %278
278: ; preds = %277, %266
store double 0.000000e+00, double* %31
store double 0.000000e+00, double* %32
store i32 0, i32* %4
br label %279
279: ; preds = %302, %278
%280 = load i32, i32* %4
%281 = icmp slt i32 %280, 10
br i1 %281, label %282, label %305
282: ; preds = %279
%283 = load i32*, i32** %2
%284 = call i64 @feof(i32* %283)
%285 = icmp ne i64 %284, 0
br i1 %285, label %286, label %291
286: ; preds = %282
%287 = load i32, i32* %4
%288 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.18, i64 0, i64 0), i32 %287)
%289 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.6, i64 0, i64 0))
%290 = call i32 @exit(i32 0)
unreachable
291: ; preds = %282
%292 = load i32*, i32** %2
%293 = getelementptr inbounds [50 x i8], [50 x i8]* %5, i64 0, i64 0
%294 = getelementptr inbounds [50 x i8], [50 x i8]* %6, i64 0, i64 0
%295 = call i32 @fscanf(i32* %292, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8* %293, i8* %294, double* %33, double* %34)
%296 = load double, double* %33
%297 = load double, double* %31
%298 = fadd double %297, %296
store double %298, double* %31
%299 = load double, double* %34
%300 = load double, double* %32
%301 = fadd double %300, %299
store double %301, double* %32
br label %302
302: ; preds = %291
%303 = load i32, i32* %4
%304 = add nsw i32 %303, 1
store i32 %304, i32* %4
br label %279
305: ; preds = %279
%306 = load i32*, i32** %3
%307 = load double, double* %7
%308 = fdiv double %307, 1.000000e+02
%309 = load double, double* %11
%310 = fdiv double %309, 1.000000e+02
%311 = load double, double* %15
%312 = fdiv double %311, 1.000000e+02
%313 = load double, double* %19
%314 = fdiv double %313, 1.000000e+02
%315 = load double, double* %23
%316 = fdiv double %315, 1.000000e+02
%317 = load double, double* %27
%318 = fdiv double %317, 1.000000e+01
%319 = load double, double* %31
%320 = fdiv double %319, 1.000000e+01
%321 = call i32 @fprintf(i32* %306, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.21, i64 0, i64 0), double %308, double %310, double %312, double %314, double %316, double %318, double %320)
%322 = load i32*, i32** %3
%323 = load double, double* %8
%324 = fdiv double %323, 1.000000e+02
%325 = load double, double* %12
%326 = fdiv double %325, 1.000000e+02
%327 = load double, double* %16
%328 = fdiv double %327, 1.000000e+02
%329 = load double, double* %20
%330 = fdiv double %329, 1.000000e+02
%331 = load double, double* %24
%332 = fdiv double %331, 1.000000e+02
%333 = load double, double* %28
%334 = fdiv double %333, 1.000000e+01
%335 = load double, double* %32
%336 = fdiv double %335, 1.000000e+01
%337 = call i32 @fprintf(i32* %322, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.22, i64 0, i64 0), double %324, double %326, double %328, double %330, double %332, double %334, double %336)
%338 = load i32*, i32** %3
%339 = load double, double* %7
%340 = load double, double* %8
%341 = fadd double %339, %340
%342 = fdiv double %341, 1.000000e+02
%343 = load double, double* %11
%344 = load double, double* %12
%345 = fadd double %343, %344
%346 = fdiv double %345, 1.000000e+02
%347 = load double, double* %15
%348 = load double, double* %16
%349 = fadd double %347, %348
%350 = fdiv double %349, 1.000000e+02
%351 = load double, double* %19
%352 = load double, double* %20
%353 = fadd double %351, %352
%354 = fdiv double %353, 1.000000e+02
%355 = load double, double* %23
%356 = load double, double* %24
%357 = fadd double %355, %356
%358 = fdiv double %357, 1.000000e+02
%359 = load double, double* %27
%360 = load double, double* %28
%361 = fadd double %359, %360
%362 = fdiv double %361, 1.000000e+01
%363 = load double, double* %31
%364 = load double, double* %32
%365 = fadd double %363, %364
%366 = fdiv double %365, 1.000000e+01
%367 = call i32 @fprintf(i32* %338, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.23, i64 0, i64 0), double %342, double %346, double %350, double %354, double %358, double %362, double %366)
%368 = load i32*, i32** %3
%369 = call i32 @fclose(i32* %368)
%370 = load i32*, i32** %2
%371 = call i32 @fclose(i32* %370)
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 = [9 x i8] c"hash.txt\00"
@.str.12 = [9 x i8] c"trie.txt\00"
@.str.14 = [11 x i8] c"rbtree.txt\00"
@.str.16 = [11 x i8] c"bptree.txt\00"
@.str.18 = [40 x i8] c"ERROR: You need 10 datum instead of %d\0A\00"
@.str.19 = [16 x i8] c"bptree_bulk.txt\00"
@.str.21 = [38 x i8] c"append() %lf %lf %lf %lf %lf %lf %lf\0A\00"
@.str.22 = [40 x i8] c"findName() %lf %lf %lf %lf %lf %lf %lf\0A\00"
@.str.23 = [34 x i8] c"total %lf %lf %lf %lf %lf %lf %lf\00"
@str = [34 x i8] c"ERROR opening input file orig.txt\00"
@str.24 = [33 x i8] c"ERROR opening input file opt.txt\00"
@str.25 = [34 x i8] c"ERROR opening input file hash.txt\00"
@str.26 = [34 x i8] c"ERROR opening input file trie.txt\00"
@str.27 = [36 x i8] c"ERROR opening input file rbtree.txt\00"
@str.28 = [36 x i8] c"ERROR opening input file bptree.txt\00"
@str.29 = [41 x i8] c"ERROR opening input file bptree_bulk.txt\00"
@str.36 = [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 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = 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))
%18 = 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))
%19 = icmp eq i32* %17, null
br i1 %19, label %20, label %23
20: ; preds = %0
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str, i64 0, i64 0))
%22 = tail call i32 @exit(i32 0)
unreachable
23: ; preds = %0
%24 = getelementptr inbounds [50 x i8], [50 x i8]* %1, i64 0, i64 0
%25 = getelementptr inbounds [50 x i8], [50 x i8]* %2, i64 0, i64 0
%26 = bitcast double* %3 to i8*
%27 = bitcast double* %4 to i8*
br label %28
28: ; preds = %23, %38
%29 = phi double [ 0.000000e+00, %23 ], [ %43, %38 ]
%30 = phi double [ 0.000000e+00, %23 ], [ %41, %38 ]
%31 = phi i32 [ 0, %23 ], [ %44, %38 ]
%32 = call i64 @feof(i32* %17)
%33 = icmp eq i64 %32, 0
br i1 %33, label %38, label %34
34: ; preds = %28
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0), i32 %31)
%36 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.36, i64 0, i64 0))
%37 = call i32 @exit(i32 0)
unreachable
38: ; preds = %28
%39 = call i32 @fscanf(i32* %17, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8* %24, i8* %25, double* %3, double* %4)
%40 = load double, double* %3
%41 = fadd double %30, %40
%42 = load double, double* %4
%43 = fadd double %29, %42
%44 = add nuw nsw i32 %31, 1
%45 = icmp eq i32 %44, 100
br i1 %45, label %46, label %28
46: ; preds = %38
%47 = call i32 @fclose(i32* %17)
%48 = 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))
%49 = icmp eq i32* %48, null
br i1 %49, label %50, label %56
50: ; preds = %46
%51 = 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))
%52 = icmp eq i32* %51, null
br i1 %52, label %53, label %56
53: ; preds = %50
%54 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.24, i64 0, i64 0))
%55 = call i32 @exit(i32 0)
unreachable
56: ; preds = %50, %46
%57 = phi i32* [ %48, %46 ], [ %51, %50 ]
%58 = bitcast double* %5 to i8*
%59 = bitcast double* %6 to i8*
br label %60
60: ; preds = %56, %70
%61 = phi double [ 0.000000e+00, %56 ], [ %75, %70 ]
%62 = phi double [ 0.000000e+00, %56 ], [ %73, %70 ]
%63 = phi i32 [ 0, %56 ], [ %76, %70 ]
%64 = call i64 @feof(i32* %57)
%65 = icmp eq i64 %64, 0
br i1 %65, label %70, label %66
66: ; preds = %60
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0), i32 %63)
%68 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.36, i64 0, i64 0))
%69 = call i32 @exit(i32 0)
unreachable
70: ; preds = %60
%71 = call i32 @fscanf(i32* %57, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8* %24, i8* %25, double* %5, double* %6)
%72 = load double, double* %5
%73 = fadd double %62, %72
%74 = load double, double* %6
%75 = fadd double %61, %74
%76 = add nuw nsw i32 %63, 1
%77 = icmp eq i32 %76, 100
br i1 %77, label %78, label %60
78: ; preds = %70
%79 = call i32* @fopen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%80 = icmp eq i32* %79, null
br i1 %80, label %81, label %87
81: ; preds = %78
%82 = 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))
%83 = icmp eq i32* %82, null
br i1 %83, label %84, label %87
84: ; preds = %81
%85 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.25, i64 0, i64 0))
%86 = call i32 @exit(i32 0)
unreachable
87: ; preds = %81, %78
%88 = phi i32* [ %79, %78 ], [ %82, %81 ]
%89 = bitcast double* %7 to i8*
%90 = bitcast double* %8 to i8*
br label %91
91: ; preds = %87, %101
%92 = phi double [ 0.000000e+00, %87 ], [ %106, %101 ]
%93 = phi double [ 0.000000e+00, %87 ], [ %104, %101 ]
%94 = phi i32 [ 0, %87 ], [ %107, %101 ]
%95 = call i64 @feof(i32* %88)
%96 = icmp eq i64 %95, 0
br i1 %96, label %101, label %97
97: ; preds = %91
%98 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0), i32 %94)
%99 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.36, i64 0, i64 0))
%100 = call i32 @exit(i32 0)
unreachable
101: ; preds = %91
%102 = call i32 @fscanf(i32* %88, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8* %24, i8* %25, double* %7, double* %8)
%103 = load double, double* %7
%104 = fadd double %93, %103
%105 = load double, double* %8
%106 = fadd double %92, %105
%107 = add nuw nsw i32 %94, 1
%108 = icmp eq i32 %107, 100
br i1 %108, label %109, label %91
109: ; preds = %101
%110 = call i32* @fopen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%111 = icmp eq i32* %110, null
br i1 %111, label %112, label %118
112: ; preds = %109
%113 = 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))
%114 = icmp eq i32* %113, null
br i1 %114, label %115, label %118
115: ; preds = %112
%116 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.26, i64 0, i64 0))
%117 = call i32 @exit(i32 0)
unreachable
118: ; preds = %112, %109
%119 = phi i32* [ %110, %109 ], [ %113, %112 ]
%120 = bitcast double* %9 to i8*
%121 = bitcast double* %10 to i8*
br label %122
122: ; preds = %118, %132
%123 = phi double [ 0.000000e+00, %118 ], [ %137, %132 ]
%124 = phi double [ 0.000000e+00, %118 ], [ %135, %132 ]
%125 = phi i32 [ 0, %118 ], [ %138, %132 ]
%126 = call i64 @feof(i32* %119)
%127 = icmp eq i64 %126, 0
br i1 %127, label %132, label %128
128: ; preds = %122
%129 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0), i32 %125)
%130 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.36, i64 0, i64 0))
%131 = call i32 @exit(i32 0)
unreachable
132: ; preds = %122
%133 = call i32 @fscanf(i32* %119, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8* %24, i8* %25, double* %9, double* %10)
%134 = load double, double* %9
%135 = fadd double %124, %134
%136 = load double, double* %10
%137 = fadd double %123, %136
%138 = add nuw nsw i32 %125, 1
%139 = icmp eq i32 %138, 100
br i1 %139, label %140, label %122
140: ; preds = %132
%141 = call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%142 = icmp eq i32* %141, null
br i1 %142, label %143, label %149
143: ; preds = %140
%144 = 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))
%145 = icmp eq i32* %144, null
br i1 %145, label %146, label %149
146: ; preds = %143
%147 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.27, i64 0, i64 0))
%148 = call i32 @exit(i32 0)
unreachable
149: ; preds = %143, %140
%150 = phi i32* [ %141, %140 ], [ %144, %143 ]
%151 = bitcast double* %11 to i8*
%152 = bitcast double* %12 to i8*
br label %153
153: ; preds = %149, %163
%154 = phi double [ 0.000000e+00, %149 ], [ %168, %163 ]
%155 = phi double [ 0.000000e+00, %149 ], [ %166, %163 ]
%156 = phi i32 [ 0, %149 ], [ %169, %163 ]
%157 = call i64 @feof(i32* %150)
%158 = icmp eq i64 %157, 0
br i1 %158, label %163, label %159
159: ; preds = %153
%160 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0), i32 %156)
%161 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.36, i64 0, i64 0))
%162 = call i32 @exit(i32 0)
unreachable
163: ; preds = %153
%164 = call i32 @fscanf(i32* %150, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8* %24, i8* %25, double* %11, double* %12)
%165 = load double, double* %11
%166 = fadd double %155, %165
%167 = load double, double* %12
%168 = fadd double %154, %167
%169 = add nuw nsw i32 %156, 1
%170 = icmp eq i32 %169, 100
br i1 %170, label %171, label %153
171: ; preds = %163
%172 = call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%173 = icmp eq i32* %172, null
br i1 %173, label %174, label %180
174: ; preds = %171
%175 = 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))
%176 = icmp eq i32* %175, null
br i1 %176, label %177, label %180
177: ; preds = %174
%178 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.28, i64 0, i64 0))
%179 = call i32 @exit(i32 0)
unreachable
180: ; preds = %174, %171
%181 = phi i32* [ %172, %171 ], [ %175, %174 ]
%182 = bitcast double* %13 to i8*
%183 = bitcast double* %14 to i8*
br label %184
184: ; preds = %180, %194
%185 = phi double [ 0.000000e+00, %180 ], [ %199, %194 ]
%186 = phi double [ 0.000000e+00, %180 ], [ %197, %194 ]
%187 = phi i32 [ 0, %180 ], [ %200, %194 ]
%188 = call i64 @feof(i32* %181)
%189 = icmp eq i64 %188, 0
br i1 %189, label %194, label %190
190: ; preds = %184
%191 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.18, i64 0, i64 0), i32 %187)
%192 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.36, i64 0, i64 0))
%193 = call i32 @exit(i32 0)
unreachable
194: ; preds = %184
%195 = call i32 @fscanf(i32* %181, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8* %24, i8* %25, double* %13, double* %14)
%196 = load double, double* %13
%197 = fadd double %186, %196
%198 = load double, double* %14
%199 = fadd double %185, %198
%200 = add nuw nsw i32 %187, 1
%201 = icmp eq i32 %200, 10
br i1 %201, label %202, label %184
202: ; preds = %194
%203 = call i32* @fopen(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%204 = icmp eq i32* %203, null
br i1 %204, label %205, label %211
205: ; preds = %202
%206 = 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))
%207 = icmp eq i32* %206, null
br i1 %207, label %208, label %211
208: ; preds = %205
%209 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.29, i64 0, i64 0))
%210 = call i32 @exit(i32 0)
unreachable
211: ; preds = %205, %202
%212 = phi i32* [ %203, %202 ], [ %206, %205 ]
%213 = bitcast double* %15 to i8*
%214 = bitcast double* %16 to i8*
br label %215
215: ; preds = %211, %225
%216 = phi double [ 0.000000e+00, %211 ], [ %230, %225 ]
%217 = phi double [ 0.000000e+00, %211 ], [ %228, %225 ]
%218 = phi i32 [ 0, %211 ], [ %231, %225 ]
%219 = call i64 @feof(i32* %212)
%220 = icmp eq i64 %219, 0
br i1 %220, label %225, label %221
221: ; preds = %215
%222 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.18, i64 0, i64 0), i32 %218)
%223 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.36, i64 0, i64 0))
%224 = call i32 @exit(i32 0)
unreachable
225: ; preds = %215
%226 = call i32 @fscanf(i32* %212, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8* %24, i8* %25, double* %15, double* %16)
%227 = load double, double* %15
%228 = fadd double %217, %227
%229 = load double, double* %16
%230 = fadd double %216, %229
%231 = add nuw nsw i32 %218, 1
%232 = icmp eq i32 %231, 10
br i1 %232, label %233, label %215
233: ; preds = %225
%234 = fdiv double %41, 1.000000e+02
%235 = fdiv double %73, 1.000000e+02
%236 = fdiv double %104, 1.000000e+02
%237 = fdiv double %135, 1.000000e+02
%238 = fdiv double %166, 1.000000e+02
%239 = fdiv double %197, 1.000000e+01
%240 = fdiv double %228, 1.000000e+01
%241 = call i32 @fprintf(i32* %18, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.21, i64 0, i64 0), double %234, double %235, double %236, double %237, double %238, double %239, double %240)
%242 = fdiv double %43, 1.000000e+02
%243 = fdiv double %75, 1.000000e+02
%244 = fdiv double %106, 1.000000e+02
%245 = fdiv double %137, 1.000000e+02
%246 = fdiv double %168, 1.000000e+02
%247 = fdiv double %199, 1.000000e+01
%248 = fdiv double %230, 1.000000e+01
%249 = call i32 @fprintf(i32* %18, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.22, i64 0, i64 0), double %242, double %243, double %244, double %245, double %246, double %247, double %248)
%250 = fadd double %41, %43
%251 = fdiv double %250, 1.000000e+02
%252 = fadd double %73, %75
%253 = fdiv double %252, 1.000000e+02
%254 = fadd double %104, %106
%255 = fdiv double %254, 1.000000e+02
%256 = fadd double %135, %137
%257 = fdiv double %256, 1.000000e+02
%258 = fadd double %166, %168
%259 = fdiv double %258, 1.000000e+02
%260 = fadd double %197, %199
%261 = fdiv double %260, 1.000000e+01
%262 = fadd double %228, %230
%263 = fdiv double %262, 1.000000e+01
%264 = call i32 @fprintf(i32* %18, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.23, i64 0, i64 0), double %251, double %253, double %255, double %257, double %259, double %261, double %263)
%265 = call i32 @fclose(i32* %18)
%266 = call i32 @fclose(i32* %212)
ret i32 0
}