#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 */
scalar_t__ EOF;
int /*<<< orphan*/ calculate_allele_information(int, int, int **, int *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
scalar_t__ fscanf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ strcmp(char *, char *);
int strlen(char *);
int /*<<< orphan*/ strncpy(char *, char *, int);
char *strtok(char *, char *);
int main(int argc, char *argv[]) {
  FILE *file_csv;
  FILE *file_table;
  char line[30000];
  int i = 0, j = 0;
  char subset[14][4];
  char sample[1092][8];
  int sample_index[1092];
  int table_index[1092];
  int table_count[14][3];
  int table_total[14];
  char *tok;
  int subset_num = 0;
  int sample_num = 0;
  int index;
  int ac_check;
  int ac_subset;
  int ac_set;
  int count[3];
  int total;
  char chr[10];
  int pos;
  char rs[20];
  char ref;
  char alt;
  char vt[10];
  int ac;
  int an;
  float af;
  char asn[10];
  char amr[10];
  char afr[10];
  char eur[10];
  char rsq[10];
  char ldaf[10];
  char genotype[3];
  file_csv = fopen(argv[1], "r");
  file_table = fopen(argv[2], "r");
  while (fgets(line, 30000, file_csv) != NULL) {
    tok = NULL;
    tok = strtok(line, ",");
    index = 0;
    while (tok != NULL) {
      if (index == 0) {
        strncpy(subset[subset_num], tok, 3);
        subset_num++;
        index++;
      } else if (strlen(tok) > 2) {
        strncpy(sample[sample_num], tok, 7);
        sample_index[sample_num] = subset_num - 1;
        sample_num++;
        index++;
      }
      tok = strtok(NULL, ",");
    }
    table_total[subset_num - 1] = index - 1;
  }
  for (i = 0; i < 15; i++) {
    fscanf(file_table, "%s", line);
    printf("%s\t", line);
  }
  for (i = 0; i < 1092; i++) {
    fscanf(file_table, "%s", rs);
    j = 0;
    while (strcmp(rs + 4, sample[j]) != 0) {
      j++;
    }
    table_index[i] = sample_index[j];
  }
  printf("ASN_00\tASN_01\tASN_11\tASN_AF\tASN_COUNT\t");
  printf("AMR_00\tAMR_01\tAMR_11\tAMR_AF\tAMR_COUNT\t");
  printf("AFR_00\tAFR_01\tAFR_11\tAFR_AF\tAFR_COUNT\t");
  printf("EUR_00\tEUR_01\tEUR_11\tEUR_AF\tEUR_COUNT\t");
  for (i = 0; i < 14; i++) {
    printf("%s_00\t%s_01\t%s_11\t%s_AF\t%s_COUNT\t", subset[i], subset[i],
           subset[i], subset[i], subset[i]);
  }
  printf("\n");
  index = 0;
  while (fscanf(file_table, "%s", chr) != EOF) {
    fscanf(file_table, "%d", &pos);
    fscanf(file_table, "%s", rs);
    fscanf(file_table, "\t%c", &ref);
    fscanf(file_table, "\t%c", &alt);
    fscanf(file_table, "%s", vt);
    fscanf(file_table, "%d", &ac);
    fscanf(file_table, "%d", &an);
    fscanf(file_table, "%f", &af);
    fscanf(file_table, "%s", asn);
    fscanf(file_table, "%s", amr);
    fscanf(file_table, "%s", afr);
    fscanf(file_table, "%s", eur);
    fscanf(file_table, "%s", rsq);
    fscanf(file_table, "%s", ldaf);
    printf("%s\t%d\t%s\t%c\t%c\t%s\t%d\t%d\t%f\t%s\t%s\t%s\t%s\t%s\t%s", chr,
           pos, rs, ref, alt, vt, ac, an, af, asn, amr, afr, eur, rsq, ldaf);
    for (i = 0; i < 1092; i++) {
      fscanf(file_table, "%s", genotype);
      if (genotype[0] == genotype[1]) {
        if (genotype[0] == ref) {
          table_count[table_index[i]][0]++;
        } else if (genotype[0] == alt) {
          table_count[table_index[i]][2]++;
        }
      } else {
        table_count[table_index[i]][1]++;
      }
    }
    calculate_allele_information(0, 2, table_count, table_total);
    calculate_allele_information(3, 5, table_count, table_total);
    calculate_allele_information(6, 8, table_count, table_total);
    calculate_allele_information(9, 14, table_count, table_total);
    ac_check = 0;
    for (i = 0; i < 14; i++) {
      ac_subset = (table_count[i][1] + table_count[i][2] + table_count[i][2]);
      ac_check += ac_subset;
      printf("\t%.5f\t%.5f\t%.5f\t%.5f",
             (float)table_count[i][0] / table_total[i],
             (float)table_count[i][1] / table_total[i],
             (float)table_count[i][2] / table_total[i],
             (float)ac_subset / (table_total[i] * 2));
      printf("\t%d,%d,%d,%d", table_count[i][0], table_count[i][1],
             table_count[i][2], ac_subset);
      table_count[i][0] = 0;
      table_count[i][1] = 0;
      table_count[i][2] = 0;
    }
    printf("\n");
    if (ac != ac_check) {
      printf("Error\n");
      return -1;
    }
    index++;
  }
  fclose(file_csv);
  fclose(file_table);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xbbd8,%rsp
movl   $0x0,-0x2c(%rbp)
mov    %edi,-0x30(%rbp)
mov    %rsi,-0x38(%rbp)
movl   $0x0,-0x7584(%rbp)
movl   $0x0,-0x7588(%rbp)
movl   $0x0,-0xbafc(%rbp)
movl   $0x0,-0xbb00(%rbp)
mov    -0x38(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe07(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x40(%rbp)
mov    -0x38(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xdef(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x48(%rbp)
lea    -0x7580(%rbp),%rdi
mov    -0x40(%rbp),%rdx
mov    $0x7530,%esi
call   1080 <fgets@plt>
cmp    $0x0,%rax
je     137d <main+0x1dd>
movq   $0x0,-0xbaf8(%rbp)
lea    -0x7580(%rbp),%rdi
lea    0xdb0(%rip),%rsi
call   10b0 <strtok@plt>
mov    %rax,-0xbaf8(%rbp)
movl   $0x0,-0xbb04(%rbp)
cmpq   $0x0,-0xbaf8(%rbp)
je     135d <main+0x1bd>
cmpl   $0x0,-0xbb04(%rbp)
jne    12cc <main+0x12c>
movslq -0xbafc(%rbp),%rax
lea    -0x75c0(%rbp),%rdi
shl    $0x2,%rax
add    %rax,%rdi
mov    -0xbaf8(%rbp),%rsi
mov    $0x3,%edx
call   1030 <strncpy@plt>
mov    -0xbafc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xbafc(%rbp)
mov    -0xbb04(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xbb04(%rbp)
jmp    1341 <main+0x1a1>
mov    -0xbaf8(%rbp),%rdi
call   1050 <strlen@plt>
cmp    $0x2,%eax
jle    133c <main+0x19c>
movslq -0xbb00(%rbp),%rax
lea    -0x97e0(%rbp),%rdi
shl    $0x3,%rax
add    %rax,%rdi
mov    -0xbaf8(%rbp),%rsi
mov    $0x7,%edx
call   1030 <strncpy@plt>
mov    -0xbafc(%rbp),%ecx
sub    $0x1,%ecx
movslq -0xbb00(%rbp),%rax
mov    %ecx,-0xa8f0(%rbp,%rax,4)
mov    -0xbb00(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xbb00(%rbp)
mov    -0xbb04(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xbb04(%rbp)
jmp    1341 <main+0x1a1>
xor    %eax,%eax
mov    %eax,%edi
lea    0xcb6(%rip),%rsi
call   10b0 <strtok@plt>
mov    %rax,-0xbaf8(%rbp)
jmp    1268 <main+0xc8>
mov    -0xbb04(%rbp),%ecx
sub    $0x1,%ecx
mov    -0xbafc(%rbp),%eax
sub    $0x1,%eax
cltq
mov    %ecx,-0xbaf0(%rbp,%rax,4)
jmp    121a <main+0x7a>
movl   $0x0,-0x7584(%rbp)
cmpl   $0xf,-0x7584(%rbp)
jge    13d6 <main+0x236>
mov    -0x48(%rbp),%rdi
lea    -0x7580(%rbp),%rdx
lea    0xd51(%rip),%rsi
mov    $0x0,%al
call   1070 <fscanf@plt>
lea    -0x7580(%rbp),%rsi
lea    0xc49(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x7584(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x7584(%rbp)
jmp    1387 <main+0x1e7>
movl   $0x0,-0x7584(%rbp)
cmpl   $0x444,-0x7584(%rbp)
jge    1486 <main+0x2e6>
mov    -0x48(%rbp),%rdi
lea    -0xbb50(%rbp),%rdx
lea    0xcf5(%rip),%rsi
mov    $0x0,%al
call   1070 <fscanf@plt>
movl   $0x0,-0x7588(%rbp)
lea    -0xbb50(%rbp),%rdi
add    $0x4,%rdi
movslq -0x7588(%rbp),%rax
lea    -0x97e0(%rbp),%rsi
shl    $0x3,%rax
add    %rax,%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
je     1456 <main+0x2b6>
mov    -0x7588(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x7588(%rbp)
jmp    1413 <main+0x273>
movslq -0x7588(%rbp),%rax
mov    -0xa8f0(%rbp,%rax,4),%ecx
movslq -0x7584(%rbp),%rax
mov    %ecx,-0xba00(%rbp,%rax,4)
mov    -0x7584(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x7584(%rbp)
jmp    13e0 <main+0x240>
lea    0xb7b(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xb94(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xbad(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xbc6(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x7584(%rbp)
cmpl   $0xe,-0x7584(%rbp)
jge    1560 <main+0x3c0>
movslq -0x7584(%rbp),%rax
lea    -0x75c0(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
movslq -0x7584(%rbp),%rax
lea    -0x75c0(%rbp),%rdx
shl    $0x2,%rax
add    %rax,%rdx
movslq -0x7584(%rbp),%rax
lea    -0x75c0(%rbp),%rcx
shl    $0x2,%rax
add    %rax,%rcx
movslq -0x7584(%rbp),%rax
lea    -0x75c0(%rbp),%r8
shl    $0x2,%rax
add    %rax,%r8
movslq -0x7584(%rbp),%rax
lea    -0x75c0(%rbp),%r9
shl    $0x2,%rax
add    %rax,%r9
lea    0xb5f(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x7584(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x7584(%rbp)
jmp    14c8 <main+0x328>
lea    0xbba(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0xbb04(%rbp)
mov    -0x48(%rbp),%rdi
lea    -0xbb2a(%rbp),%rdx
lea    0xb6d(%rip),%rsi
mov    $0x0,%al
call   1070 <fscanf@plt>
mov    0x2a50(%rip),%rcx
cmp    (%rcx),%rax
je     1b8e <main+0x9ee>
mov    -0x48(%rbp),%rdi
lea    0xb6d(%rip),%rsi
lea    -0xbb30(%rbp),%rdx
mov    $0x0,%al
call   1070 <fscanf@plt>
mov    -0x48(%rbp),%rdi
lea    -0xbb50(%rbp),%rdx
lea    0xb2b(%rip),%rsi
mov    $0x0,%al
call   1070 <fscanf@plt>
mov    -0x48(%rbp),%rdi
lea    0xae8(%rip),%rsi
lea    -0xbb51(%rbp),%rdx
mov    $0x0,%al
call   1070 <fscanf@plt>
mov    -0x48(%rbp),%rdi
lea    0xacf(%rip),%rsi
lea    -0xbb52(%rbp),%rdx
mov    $0x0,%al
call   1070 <fscanf@plt>
mov    -0x48(%rbp),%rdi
lea    -0xbb5c(%rbp),%rdx
lea    0xae0(%rip),%rsi
mov    $0x0,%al
call   1070 <fscanf@plt>
mov    -0x48(%rbp),%rdi
lea    0xaf0(%rip),%rsi
lea    -0xbb60(%rbp),%rdx
mov    $0x0,%al
call   1070 <fscanf@plt>
mov    -0x48(%rbp),%rdi
lea    0xad7(%rip),%rsi
lea    -0xbb64(%rbp),%rdx
mov    $0x0,%al
call   1070 <fscanf@plt>
mov    -0x48(%rbp),%rdi
lea    0xa6f(%rip),%rsi
lea    -0xbb68(%rbp),%rdx
mov    $0x0,%al
call   1070 <fscanf@plt>
mov    -0x48(%rbp),%rdi
lea    -0xbb72(%rbp),%rdx
lea    0xa7c(%rip),%rsi
mov    $0x0,%al
call   1070 <fscanf@plt>
mov    -0x48(%rbp),%rdi
lea    -0xbb7c(%rbp),%rdx
lea    0xa63(%rip),%rsi
mov    $0x0,%al
call   1070 <fscanf@plt>
mov    -0x48(%rbp),%rdi
lea    -0xbb86(%rbp),%rdx
lea    0xa4a(%rip),%rsi
mov    $0x0,%al
call   1070 <fscanf@plt>
mov    -0x48(%rbp),%rdi
lea    -0xbb90(%rbp),%rdx
lea    0xa31(%rip),%rsi
mov    $0x0,%al
call   1070 <fscanf@plt>
mov    -0x48(%rbp),%rdi
lea    -0xbb9a(%rbp),%rdx
lea    0xa18(%rip),%rsi
mov    $0x0,%al
call   1070 <fscanf@plt>
mov    -0x48(%rbp),%rdi
lea    -0xbba4(%rbp),%rdx
lea    0x9ff(%rip),%rsi
mov    $0x0,%al
call   1070 <fscanf@plt>
lea    -0xbb2a(%rbp),%rsi
mov    -0xbb30(%rbp),%edx
lea    -0xbb50(%rbp),%rcx
movsbl -0xbb51(%rbp),%r8d
ff
movsbl -0xbb52(%rbp),%r9d
ff
lea    -0xbb5c(%rbp),%rax
mov    -0xbb60(%rbp),%r13d
mov    -0xbb64(%rbp),%r12d
movss  -0xbb68(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    -0xbb72(%rbp),%r15
lea    -0xbb7c(%rbp),%r14
lea    -0xbb86(%rbp),%rbx
lea    -0xbb90(%rbp),%r11
lea    -0xbb9a(%rbp),%r10
lea    -0xbba4(%rbp),%rdi
mov    %rdi,-0xbbb0(%rbp)
lea    0x951(%rip),%rdi
mov    %rax,(%rsp)
mov    -0xbbb0(%rbp),%rax
mov    %r13d,0x8(%rsp)
mov    %r12d,0x10(%rsp)
mov    %r15,0x18(%rsp)
mov    %r14,0x20(%rsp)
mov    %rbx,0x28(%rsp)
mov    %r11,0x30(%rsp)
mov    %r10,0x38(%rsp)
mov    %rax,0x40(%rsp)
mov    $0x1,%al
call   1060 <printf@plt>
movl   $0x0,-0x7584(%rbp)
cmpl   $0x444,-0x7584(%rbp)
jge    18c3 <main+0x723>
mov    -0x48(%rbp),%rdi
lea    -0xbba7(%rbp),%rdx
lea    0x915(%rip),%rsi
mov    $0x0,%al
call   1070 <fscanf@plt>
movsbl -0xbba7(%rbp),%eax
movsbl -0xbba6(%rbp),%ecx
cmp    %ecx,%eax
jne    1884 <main+0x6e4>
movsbl -0xbba7(%rbp),%eax
movsbl -0xbb51(%rbp),%ecx
cmp    %ecx,%eax
jne    183e <main+0x69e>
movslq -0x7584(%rbp),%rax
movslq -0xba00(%rbp,%rax,4),%rcx
ff
lea    -0xbab0(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
mov    (%rax),%ecx
add    $0x1,%ecx
mov    %ecx,(%rax)
jmp    187f <main+0x6df>
movsbl -0xbba7(%rbp),%eax
movsbl -0xbb52(%rbp),%ecx
cmp    %ecx,%eax
jne    187a <main+0x6da>
movslq -0x7584(%rbp),%rax
movslq -0xba00(%rbp,%rax,4),%rcx
ff
lea    -0xbab0(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
mov    0x8(%rax),%ecx
add    $0x1,%ecx
mov    %ecx,0x8(%rax)
jmp    187f <main+0x6df>
jmp    18aa <main+0x70a>
movslq -0x7584(%rbp),%rax
movslq -0xba00(%rbp,%rax,4),%rcx
ff
lea    -0xbab0(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
mov    0x4(%rax),%ecx
add    $0x1,%ecx
mov    %ecx,0x4(%rax)
jmp    18af <main+0x70f>
mov    -0x7584(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x7584(%rbp)
jmp    17c0 <main+0x620>
lea    -0xbab0(%rbp),%rdx
lea    -0xbaf0(%rbp),%rcx
xor    %edi,%edi
mov    $0x2,%esi
call   10c0 <calculate_allele_information@plt>
lea    -0xbab0(%rbp),%rdx
lea    -0xbaf0(%rbp),%rcx
mov    $0x3,%edi
mov    $0x5,%esi
call   10c0 <calculate_allele_information@plt>
lea    -0xbab0(%rbp),%rdx
lea    -0xbaf0(%rbp),%rcx
mov    $0x6,%edi
mov    $0x8,%esi
call   10c0 <calculate_allele_information@plt>
lea    -0xbab0(%rbp),%rdx
lea    -0xbaf0(%rbp),%rcx
mov    $0x9,%edi
mov    $0xe,%esi
call   10c0 <calculate_allele_information@plt>
movl   $0x0,-0xbb08(%rbp)
movl   $0x0,-0x7584(%rbp)
cmpl   $0xe,-0x7584(%rbp)
jge    1b40 <main+0x9a0>
movslq -0x7584(%rbp),%rcx
lea    -0xbab0(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
mov    0x4(%rax),%eax
movslq -0x7584(%rbp),%rdx
lea    -0xbab0(%rbp),%rcx
imul   $0xc,%rdx,%rdx
add    %rdx,%rcx
add    0x8(%rcx),%eax
movslq -0x7584(%rbp),%rdx
lea    -0xbab0(%rbp),%rcx
imul   $0xc,%rdx,%rdx
add    %rdx,%rcx
add    0x8(%rcx),%eax
mov    %eax,-0xbb0c(%rbp)
mov    -0xbb0c(%rbp),%eax
add    -0xbb08(%rbp),%eax
mov    %eax,-0xbb08(%rbp)
movslq -0x7584(%rbp),%rcx
lea    -0xbab0(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
cvtsi2ssl (%rax),%xmm0
movslq -0x7584(%rbp),%rax
cvtsi2ssl -0xbaf0(%rbp,%rax,4),%xmm1
ff ff
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
movslq -0x7584(%rbp),%rcx
lea    -0xbab0(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
cvtsi2ssl 0x4(%rax),%xmm1
movslq -0x7584(%rbp),%rax
cvtsi2ssl -0xbaf0(%rbp,%rax,4),%xmm2
ff ff
divss  %xmm2,%xmm1
cvtss2sd %xmm1,%xmm1
movslq -0x7584(%rbp),%rcx
lea    -0xbab0(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
cvtsi2ssl 0x8(%rax),%xmm2
movslq -0x7584(%rbp),%rax
cvtsi2ssl -0xbaf0(%rbp,%rax,4),%xmm3
ff ff
divss  %xmm3,%xmm2
cvtss2sd %xmm2,%xmm2
cvtsi2ssl -0xbb0c(%rbp),%xmm3
ff
movslq -0x7584(%rbp),%rax
mov    -0xbaf0(%rbp,%rax,4),%eax
shl    $0x1,%eax
cvtsi2ss %eax,%xmm4
divss  %xmm4,%xmm3
cvtss2sd %xmm3,%xmm3
lea    0x684(%rip),%rdi
mov    $0x4,%al
call   1060 <printf@plt>
movslq -0x7584(%rbp),%rcx
lea    -0xbab0(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
mov    (%rax),%esi
movslq -0x7584(%rbp),%rcx
lea    -0xbab0(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
mov    0x4(%rax),%edx
movslq -0x7584(%rbp),%rcx
lea    -0xbab0(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
mov    0x8(%rax),%ecx
mov    -0xbb0c(%rbp),%r8d
lea    0x63d(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movslq -0x7584(%rbp),%rcx
lea    -0xbab0(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
movl   $0x0,(%rax)
movslq -0x7584(%rbp),%rcx
lea    -0xbab0(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
movl   $0x0,0x4(%rax)
movslq -0x7584(%rbp),%rcx
lea    -0xbab0(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
movl   $0x0,0x8(%rax)
mov    -0x7584(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x7584(%rbp)
jmp    1948 <main+0x7a8>
lea    0x5da(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0xbb60(%rbp),%eax
cmp    -0xbb08(%rbp),%eax
je     1b7a <main+0x9da>
lea    0x5b5(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0xffffffff,-0x2c(%rbp)
jmp    1ba7 <main+0xa07>
mov    -0xbb04(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xbb04(%rbp)
jmp    1578 <main+0x3d8>
mov    -0x40(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x48(%rbp),%rdi
call   1040 <fclose@plt>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
add    $0xbbd8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xbb48,%rsp
mov    %rsi,%rbx
mov    0x8(%rsi),%rdi
lea    0xf3f(%rip),%r14
mov    %r14,%rsi
call   10c0 <fopen@plt>
mov    %rax,%rbp
mov    0x10(%rbx),%rdi
mov    %r14,%rsi
call   10c0 <fopen@plt>
mov    %rax,0x8(%rsp)
lea    0x4610(%rsp),%rdi
mov    $0x7530,%esi
mov    %rbp,0x28(%rsp)
mov    %rbp,%rdx
call   10a0 <fgets@plt>
test   %rax,%rax
je     1309 <main+0x149>
xor    %ebx,%ebx
lea    0xdd9(%rip),%r12
lea    0x4610(%rsp),%r15
xor    %r13d,%r13d
jmp    126d <main+0xad>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
xor    %r14d,%r14d
add    $0xffffffff,%r14d
movslq %r13d,%rax
mov    %r14d,0xdc(%rsp,%rax,4)
mov    %r15,%rdi
mov    $0x7530,%esi
mov    0x28(%rsp),%rdx
call   10a0 <fgets@plt>
test   %rax,%rax
je     1309 <main+0x149>
mov    %r15,%rdi
mov    %r12,%rsi
call   10d0 <strtok@plt>
test   %rax,%rax
je     1240 <main+0x80>
mov    %rax,%rbp
xor    %r14d,%r14d
jmp    12c8 <main+0x108>
cs nopw 0x0(%rax,%rax,1)
nop
movslq %r13d,%rax
lea    (%rsp,%rax,4),%rdi
add    $0x30,%rdi
mov    %rbp,%rsi
mov    $0x3,%edx
call   1040 <strncpy@plt>
add    $0x1,%r13d
mov    $0x1,%r14d
xor    %edi,%edi
mov    %r12,%rsi
call   10d0 <strtok@plt>
mov    %rax,%rbp
test   %rax,%rax
je     1243 <main+0x83>
test   %r14d,%r14d
je     1290 <main+0xd0>
mov    %rbp,%rdi
call   1070 <strlen@plt>
cmp    $0x3,%eax
jl     12b2 <main+0xf2>
movslq %ebx,%rbx
lea    (%rsp,%rbx,8),%rdi
add    $0x23f0,%rdi
mov    %rbp,%rsi
mov    $0x7,%edx
call   1040 <strncpy@plt>
lea    -0x1(%r13),%eax
mov    %eax,0x12e0(%rsp,%rbx,4)
add    $0x1,%ebx
add    $0x1,%r14d
jmp    12b2 <main+0xf2>
lea    0xde5(%rip),%r15
lea    0x4610(%rsp),%rbp
mov    0x8(%rsp),%rbx
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1090 <fscanf@plt>
lea    0xcce(%rip),%r14
mov    %r14,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    %r14,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    %r14,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    %r14,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    %r14,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    %r14,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    %r14,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    %r14,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    %r14,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    %r14,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    %r14,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    %r14,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    %r14,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    %r14,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    %r14,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0x74(%rsp),%rbp
lea    0x23f0(%rsp),%r13
xor    %r12d,%r12d
nopw   0x0(%rax,%rax,1)
mov    0x8(%rsp),%rdi
mov    %r15,%rsi
lea    0x70(%rsp),%rdx
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    $0xffffffffffffffff,%r14
mov    %r13,%rbx
xchg   %ax,%ax
mov    %rbp,%rdi
mov    %rbx,%rsi
call   10b0 <strcmp@plt>
add    $0x1,%r14
add    $0x8,%rbx
test   %rax,%rax
jne    1510 <main+0x350>
mov    %r14d,%eax
mov    0x12e0(%rsp,%rax,4),%eax
mov    %eax,0x1d0(%rsp,%r12,4)
add    $0x1,%r12
cmp    $0x444,%r12
jne    14f0 <main+0x330>
lea    0xab8(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xad1(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xaea(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xb03(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xb1c(%rip),%rbx
lea    0x30(%rsp),%rcx
mov    %rbx,%rdi
mov    %rcx,%rsi
mov    %rcx,%rdx
mov    %rcx,%r8
mov    %rcx,%r9
xor    %eax,%eax
call   1080 <printf@plt>
lea    0x34(%rsp),%rcx
mov    %rbx,%rdi
mov    %rcx,%rsi
mov    %rcx,%rdx
mov    %rcx,%r8
mov    %rcx,%r9
xor    %eax,%eax
call   1080 <printf@plt>
lea    0x38(%rsp),%rcx
mov    %rbx,%rdi
mov    %rcx,%rsi
mov    %rcx,%rdx
mov    %rcx,%r8
mov    %rcx,%r9
xor    %eax,%eax
call   1080 <printf@plt>
lea    0x3c(%rsp),%rcx
mov    %rbx,%rdi
mov    %rcx,%rsi
mov    %rcx,%rdx
mov    %rcx,%r8
mov    %rcx,%r9
xor    %eax,%eax
call   1080 <printf@plt>
lea    0x40(%rsp),%rcx
mov    %rbx,%rdi
mov    %rcx,%rsi
mov    %rcx,%rdx
mov    %rcx,%r8
mov    %rcx,%r9
xor    %eax,%eax
call   1080 <printf@plt>
lea    0x44(%rsp),%rcx
mov    %rbx,%rdi
mov    %rcx,%rsi
mov    %rcx,%rdx
mov    %rcx,%r8
mov    %rcx,%r9
xor    %eax,%eax
call   1080 <printf@plt>
lea    0x48(%rsp),%rcx
mov    %rbx,%rdi
mov    %rcx,%rsi
mov    %rcx,%rdx
mov    %rcx,%r8
mov    %rcx,%r9
xor    %eax,%eax
call   1080 <printf@plt>
lea    0x4c(%rsp),%rcx
mov    %rbx,%rdi
mov    %rcx,%rsi
mov    %rcx,%rdx
mov    %rcx,%r8
mov    %rcx,%r9
xor    %eax,%eax
call   1080 <printf@plt>
lea    0x50(%rsp),%rcx
mov    %rbx,%rdi
mov    %rcx,%rsi
mov    %rcx,%rdx
mov    %rcx,%r8
mov    %rcx,%r9
xor    %eax,%eax
call   1080 <printf@plt>
lea    0x54(%rsp),%rcx
mov    %rbx,%rdi
mov    %rcx,%rsi
mov    %rcx,%rdx
mov    %rcx,%r8
mov    %rcx,%r9
xor    %eax,%eax
call   1080 <printf@plt>
lea    0x58(%rsp),%rcx
mov    %rbx,%rdi
mov    %rcx,%rsi
mov    %rcx,%rdx
mov    %rcx,%r8
mov    %rcx,%r9
xor    %eax,%eax
call   1080 <printf@plt>
lea    0x5c(%rsp),%rcx
mov    %rbx,%rdi
mov    %rcx,%rsi
mov    %rcx,%rdx
mov    %rcx,%r8
mov    %rcx,%r9
xor    %eax,%eax
call   1080 <printf@plt>
lea    0x60(%rsp),%rcx
mov    %rbx,%rdi
mov    %rcx,%rsi
mov    %rcx,%rdx
mov    %rcx,%r8
mov    %rcx,%r9
xor    %eax,%eax
call   1080 <printf@plt>
lea    0x64(%rsp),%rcx
mov    %rbx,%rdi
mov    %rcx,%rsi
mov    %rcx,%rdx
mov    %rcx,%r8
mov    %rcx,%r9
xor    %eax,%eax
call   1080 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x9e4(%rip),%r12
lea    0xae(%rsp),%r14
nopl   0x0(%rax)
mov    0x8(%rsp),%rbx
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    0x28ac(%rip),%rcx
cmp    (%rcx),%rax
je     1afe <main+0x93e>
mov    %rbx,%rdi
lea    0x9c8(%rip),%r13
mov    %r13,%rsi
lea    0x24(%rsp),%rdx
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
lea    0x70(%rsp),%rdx
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    0x8(%rsp),%rdi
lea    0x948(%rip),%rbp
mov    %rbp,%rsi
lea    0x7(%rsp),%rdx
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    0x8(%rsp),%rdi
mov    %rbp,%rsi
lea    0x6(%rsp),%rdx
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    0x8(%rsp),%rdi
lea    0x94a(%rip),%rsi
lea    0xa4(%rsp),%rdx
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    0x8(%rsp),%rdi
mov    %r13,%rsi
lea    0x18(%rsp),%rdx
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    0x8(%rsp),%rdi
mov    %r13,%rsi
lea    0x20(%rsp),%rdx
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    0x8(%rsp),%rdi
lea    0x8da(%rip),%rsi
lea    0x1c(%rsp),%rdx
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    0x8(%rsp),%rdi
lea    0x8ef(%rip),%rsi
lea    0x9a(%rsp),%rdx
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    0x8(%rsp),%rdi
lea    0x8d4(%rip),%rsi
lea    0x90(%rsp),%rdx
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    0x8(%rsp),%rdi
lea    0x8b9(%rip),%rsi
lea    0xd6(%rsp),%rbx
mov    %rbx,%rdx
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    0x8(%rsp),%rdi
lea    0x89b(%rip),%rsi
lea    0xcc(%rsp),%r15
mov    %r15,%rdx
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    0x8(%rsp),%rdi
lea    0x87d(%rip),%rsi
lea    0xc2(%rsp),%r13
mov    %r13,%rdx
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    0x8(%rsp),%rdi
lea    0x85f(%rip),%rsi
lea    0xb8(%rsp),%r12
mov    %r12,%rdx
xor    %eax,%eax
call   1090 <fscanf@plt>
mov    0x24(%rsp),%edx
movsbl 0x7(%rsp),%r8d
movsbl 0x6(%rsp),%r9d
mov    0x18(%rsp),%r10d
mov    0x20(%rsp),%ebp
movss  0x1c(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
sub    $0x8,%rsp
lea    0x7f5(%rip),%rdi
mov    %r14,%rsi
lea    0x78(%rsp),%rcx
mov    $0x1,%al
push   %r12
lea    0x80c(%rip),%r12
mov    0x18(%rsp),%r14
push   %r13
push   %r15
push   %rbx
lea    0xb8(%rsp),%rbx
push   %rbx
lea    0xca(%rsp),%rbx
push   %rbx
push   %rbp
push   %r10
lea    0xec(%rsp),%rbp
push   %rbp
call   1080 <printf@plt>
add    $0x50,%rsp
xor    %ebp,%ebp
lea    0x15(%rsp),%rbx
jmp    195a <main+0x79a>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
xor    %eax,%eax
movslq 0x1d0(%rsp,%rbp,4),%rcx
lea    (%rcx,%rcx,2),%rcx
lea    (%rsp,%rcx,4),%rcx
add    $0x120,%rcx
addl   $0x1,(%rcx,%rax,4)
add    $0x1,%rbp
cmp    $0x444,%rbp
je     1990 <main+0x7d0>
mov    %r14,%rdi
mov    %r12,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1090 <fscanf@plt>
movzbl 0x15(%rsp),%ecx
mov    $0x1,%eax
cmp    0x16(%rsp),%cl
jne    1932 <main+0x772>
cmp    0x7(%rsp),%cl
je     1930 <main+0x770>
mov    $0x2,%eax
cmp    0x6(%rsp),%cl
je     1932 <main+0x772>
jmp    194d <main+0x78d>
nopl   (%rax)
xor    %r14d,%r14d
xor    %edi,%edi
mov    $0x2,%esi
lea    0x120(%rsp),%rbx
mov    %rbx,%rdx
lea    0xe0(%rsp),%rbp
mov    %rbp,%rcx
call   10e0 <calculate_allele_information@plt>
mov    $0x3,%edi
mov    $0x5,%esi
mov    %rbx,%rdx
mov    %rbp,%rcx
call   10e0 <calculate_allele_information@plt>
mov    $0x6,%edi
mov    $0x8,%esi
mov    %rbx,%rdx
mov    %rbp,%rcx
call   10e0 <calculate_allele_information@plt>
mov    $0x9,%edi
mov    $0xe,%esi
mov    %rbx,%rdx
mov    %rbp,%rcx
call   10e0 <calculate_allele_information@plt>
lea    0x128(%rsp),%r12
xor    %r13d,%r13d
lea    0x6f2(%rip),%r15
lea    0x700(%rip),%rbx
nopl   (%rax)
mov    -0x4(%r12),%eax
mov    (%r12),%ecx
lea    (%rax,%rcx,2),%ebp
add    %ebp,%r13d
xorps  %xmm0,%xmm0
cvtsi2ssl -0x8(%r12),%xmm0
mov    0xe0(%rsp,%r14,4),%edx
xorps  %xmm1,%xmm1
cvtsi2ss %edx,%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
xorps  %xmm2,%xmm2
cvtsi2ss %eax,%xmm2
divss  %xmm1,%xmm2
xorps  %xmm3,%xmm3
cvtsi2ss %ecx,%xmm3
divss  %xmm1,%xmm3
xorps  %xmm4,%xmm4
cvtsi2ss %ebp,%xmm4
add    %edx,%edx
xorps  %xmm5,%xmm5
cvtsi2ss %edx,%xmm5
xorps  %xmm1,%xmm1
cvtss2sd %xmm2,%xmm1
xorps  %xmm2,%xmm2
cvtss2sd %xmm3,%xmm2
divss  %xmm5,%xmm4
xorps  %xmm3,%xmm3
cvtss2sd %xmm4,%xmm3
mov    %r15,%rdi
mov    $0x4,%al
call   1080 <printf@plt>
mov    -0x8(%r12),%esi
mov    -0x4(%r12),%edx
mov    (%r12),%ecx
mov    %rbx,%rdi
mov    %ebp,%r8d
xor    %eax,%eax
call   1080 <printf@plt>
movq   $0x0,-0x8(%r12)
movl   $0x0,(%r12)
add    $0x1,%r14
add    $0xc,%r12
cmp    $0xe,%r14
jne    1a10 <main+0x850>
mov    $0xa,%edi
call   1030 <putchar@plt>
cmp    %r13d,0x18(%rsp)
lea    0xae(%rsp),%r14
lea    0x610(%rip),%r12
je     1720 <main+0x560>
lea    0x628(%rip),%rdi
call   1050 <puts@plt>
mov    $0xffffffff,%eax
jmp    1b12 <main+0x952>
mov    0x28(%rsp),%rdi
call   1060 <fclose@plt>
mov    %rbx,%rdi
call   1060 <fclose@plt>
xor    %eax,%eax
add    $0xbb48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"r\00"
@.str.1 = [2 x i8] c",\00"
@.str.2 = [3 x i8] c"%s\00"
@.str.3 = [4 x i8] c"%s\09\00"
@.str.4 = [39 x i8] c"ASN_00\09ASN_01\09ASN_11\09ASN_AF\09ASN_COUNT\09\00"
@.str.5 = [39 x i8] c"AMR_00\09AMR_01\09AMR_11\09AMR_AF\09AMR_COUNT\09\00"
@.str.6 = [39 x i8] c"AFR_00\09AFR_01\09AFR_11\09AFR_AF\09AFR_COUNT\09\00"
@.str.7 = [39 x i8] c"EUR_00\09EUR_01\09EUR_11\09EUR_AF\09EUR_COUNT\09\00"
@.str.8 = [34 x i8] c"%s_00\09%s_01\09%s_11\09%s_AF\09%s_COUNT\09\00"
@.str.9 = [2 x i8] c"\0A\00"
@EOF = global i64 0
@.str.10 = [3 x i8] c"%d\00"
@.str.11 = [4 x i8] c"\09%c\00"
@.str.12 = [3 x i8] c"%f\00"
@.str.13 = [45 x i8] c"%s\09%d\09%s\09%c\09%c\09%s\09%d\09%d\09%f\09%s\09%s\09%s\09%s\09%s\09%s\00"
@.str.14 = [21 x i8] c"\09%.5f\09%.5f\09%.5f\09%.5f\00"
@.str.15 = [13 x i8] c"\09%d,%d,%d,%d\00"
@.str.16 = [7 x i8] c"Error\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca i32*
%8 = alloca [30000 x i8]
%9 = alloca i32
%10 = alloca i32
%11 = alloca [14 x [4 x i8]]
%12 = alloca [1092 x [8 x i8]]
%13 = alloca [1092 x i32]
%14 = alloca [1092 x i32]
%15 = alloca [14 x [3 x i32]]
%16 = alloca [14 x i32]
%17 = alloca i8*
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca [3 x i32]
%25 = alloca i32
%26 = alloca [10 x i8]
%27 = alloca i32
%28 = alloca [20 x i8]
%29 = alloca i8
%30 = alloca i8
%31 = alloca [10 x i8]
%32 = alloca i32
%33 = alloca i32
%34 = alloca float
%35 = alloca [10 x i8]
%36 = alloca [10 x i8]
%37 = alloca [10 x i8]
%38 = alloca [10 x i8]
%39 = alloca [10 x i8]
%40 = alloca [10 x i8]
%41 = alloca [3 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %9
store i32 0, i32* %10
store i32 0, i32* %18
store i32 0, i32* %19
%42 = load i8**, i8*** %5
%43 = getelementptr inbounds i8*, i8** %42, i64 1
%44 = load i8*, i8** %43
%45 = call i32* @fopen(i8* %44, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %45, i32** %6
%46 = load i8**, i8*** %5
%47 = getelementptr inbounds i8*, i8** %46, i64 2
%48 = load i8*, i8** %47
%49 = call i32* @fopen(i8* %48, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %49, i32** %7
br label %50
50: ; preds = %98, %2
%51 = getelementptr inbounds [30000 x i8], [30000 x i8]* %8, i64 0, i64 0
%52 = load i32*, i32** %6
%53 = call i32* @fgets(i8* %51, i32 30000, i32* %52)
%54 = icmp ne i32* %53, null
br i1 %54, label %55, label %105
55: ; preds = %50
store i8* null, i8** %17
%56 = getelementptr inbounds [30000 x i8], [30000 x i8]* %8, i64 0, i64 0
%57 = call i8* @strtok(i8* %56, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i8* %57, i8** %17
store i32 0, i32* %20
br label %58
58: ; preds = %96, %55
%59 = load i8*, i8** %17
%60 = icmp ne i8* %59, null
br i1 %60, label %61, label %98
61: ; preds = %58
%62 = load i32, i32* %20
%63 = icmp eq i32 %62, 0
br i1 %63, label %64, label %75
64: ; preds = %61
%65 = load i32, i32* %18
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [14 x [4 x i8]], [14 x [4 x i8]]* %11, i64 0, i64 %66
%68 = getelementptr inbounds [4 x i8], [4 x i8]* %67, i64 0, i64 0
%69 = load i8*, i8** %17
%70 = call i32 @strncpy(i8* %68, i8* %69, i32 3)
%71 = load i32, i32* %18
%72 = add nsw i32 %71, 1
store i32 %72, i32* %18
%73 = load i32, i32* %20
%74 = add nsw i32 %73, 1
store i32 %74, i32* %20
br label %96
75: ; preds = %61
%76 = load i8*, i8** %17
%77 = call i32 @strlen(i8* %76)
%78 = icmp sgt i32 %77, 2
br i1 %78, label %79, label %95
79: ; preds = %75
%80 = load i32, i32* %19
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [1092 x [8 x i8]], [1092 x [8 x i8]]* %12, i64 0, i64 %81
%83 = getelementptr inbounds [8 x i8], [8 x i8]* %82, i64 0, i64 0
%84 = load i8*, i8** %17
%85 = call i32 @strncpy(i8* %83, i8* %84, i32 7)
%86 = load i32, i32* %18
%87 = sub nsw i32 %86, 1
%88 = load i32, i32* %19
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [1092 x i32], [1092 x i32]* %13, i64 0, i64 %89
store i32 %87, i32* %90
%91 = load i32, i32* %19
%92 = add nsw i32 %91, 1
store i32 %92, i32* %19
%93 = load i32, i32* %20
%94 = add nsw i32 %93, 1
store i32 %94, i32* %20
br label %95
95: ; preds = %79, %75
br label %96
96: ; preds = %95, %64
%97 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i8* %97, i8** %17
br label %58
98: ; preds = %58
%99 = load i32, i32* %20
%100 = sub nsw i32 %99, 1
%101 = load i32, i32* %18
%102 = sub nsw i32 %101, 1
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds [14 x i32], [14 x i32]* %16, i64 0, i64 %103
store i32 %100, i32* %104
br label %50
105: ; preds = %50
store i32 0, i32* %9
br label %106
106: ; preds = %115, %105
%107 = load i32, i32* %9
%108 = icmp slt i32 %107, 15
br i1 %108, label %109, label %118
109: ; preds = %106
%110 = load i32*, i32** %7
%111 = getelementptr inbounds [30000 x i8], [30000 x i8]* %8, i64 0, i64 0
%112 = call i64 (i32*, i8*, ...) @fscanf(i32* %110, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %111)
%113 = getelementptr inbounds [30000 x i8], [30000 x i8]* %8, i64 0, i64 0
%114 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %113)
br label %115
115: ; preds = %109
%116 = load i32, i32* %9
%117 = add nsw i32 %116, 1
store i32 %117, i32* %9
br label %106
118: ; preds = %106
store i32 0, i32* %9
br label %119
119: ; preds = %146, %118
%120 = load i32, i32* %9
%121 = icmp slt i32 %120, 1092
br i1 %121, label %122, label %149
122: ; preds = %119
%123 = load i32*, i32** %7
%124 = getelementptr inbounds [20 x i8], [20 x i8]* %28, i64 0, i64 0
%125 = call i64 (i32*, i8*, ...) @fscanf(i32* %123, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %124)
store i32 0, i32* %10
br label %126
126: ; preds = %135, %122
%127 = getelementptr inbounds [20 x i8], [20 x i8]* %28, i64 0, i64 0
%128 = getelementptr inbounds i8, i8* %127, i64 4
%129 = load i32, i32* %10
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds [1092 x [8 x i8]], [1092 x [8 x i8]]* %12, i64 0, i64 %130
%132 = getelementptr inbounds [8 x i8], [8 x i8]* %131, i64 0, i64 0
%133 = call i64 @strcmp(i8* %128, i8* %132)
%134 = icmp ne i64 %133, 0
br i1 %134, label %135, label %138
135: ; preds = %126
%136 = load i32, i32* %10
%137 = add nsw i32 %136, 1
store i32 %137, i32* %10
br label %126
138: ; preds = %126
%139 = load i32, i32* %10
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds [1092 x i32], [1092 x i32]* %13, i64 0, i64 %140
%142 = load i32, i32* %141
%143 = load i32, i32* %9
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds [1092 x i32], [1092 x i32]* %14, i64 0, i64 %144
store i32 %142, i32* %145
br label %146
146: ; preds = %138
%147 = load i32, i32* %9
%148 = add nsw i32 %147, 1
store i32 %148, i32* %9
br label %119
149: ; preds = %119
%150 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0))
%151 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.5, i64 0, i64 0))
%152 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0))
%153 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.7, i64 0, i64 0))
store i32 0, i32* %9
br label %154
154: ; preds = %179, %149
%155 = load i32, i32* %9
%156 = icmp slt i32 %155, 14
br i1 %156, label %157, label %182
157: ; preds = %154
%158 = load i32, i32* %9
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds [14 x [4 x i8]], [14 x [4 x i8]]* %11, i64 0, i64 %159
%161 = getelementptr inbounds [4 x i8], [4 x i8]* %160, i64 0, i64 0
%162 = load i32, i32* %9
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds [14 x [4 x i8]], [14 x [4 x i8]]* %11, i64 0, i64 %163
%165 = getelementptr inbounds [4 x i8], [4 x i8]* %164, i64 0, i64 0
%166 = load i32, i32* %9
%167 = sext i32 %166 to i64
%168 = getelementptr inbounds [14 x [4 x i8]], [14 x [4 x i8]]* %11, i64 0, i64 %167
%169 = getelementptr inbounds [4 x i8], [4 x i8]* %168, i64 0, i64 0
%170 = load i32, i32* %9
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds [14 x [4 x i8]], [14 x [4 x i8]]* %11, i64 0, i64 %171
%173 = getelementptr inbounds [4 x i8], [4 x i8]* %172, i64 0, i64 0
%174 = load i32, i32* %9
%175 = sext i32 %174 to i64
%176 = getelementptr inbounds [14 x [4 x i8]], [14 x [4 x i8]]* %11, i64 0, i64 %175
%177 = getelementptr inbounds [4 x i8], [4 x i8]* %176, i64 0, i64 0
%178 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.8, i64 0, i64 0), i8* %161, i8* %165, i8* %169, i8* %173, i8* %177)
br label %179
179: ; preds = %157
%180 = load i32, i32* %9
%181 = add nsw i32 %180, 1
store i32 %181, i32* %9
br label %154
182: ; preds = %154
%183 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
store i32 0, i32* %20
br label %184
184: ; preds = %440, %182
%185 = load i32*, i32** %7
%186 = getelementptr inbounds [10 x i8], [10 x i8]* %26, i64 0, i64 0
%187 = call i64 (i32*, i8*, ...) @fscanf(i32* %185, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %186)
%188 = load i64, i64* @EOF
%189 = icmp ne i64 %187, %188
br i1 %189, label %190, label %443
190: ; preds = %184
%191 = load i32*, i32** %7
%192 = call i64 (i32*, i8*, ...) @fscanf(i32* %191, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i32* %27)
%193 = load i32*, i32** %7
%194 = getelementptr inbounds [20 x i8], [20 x i8]* %28, i64 0, i64 0
%195 = call i64 (i32*, i8*, ...) @fscanf(i32* %193, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %194)
%196 = load i32*, i32** %7
%197 = call i64 (i32*, i8*, ...) @fscanf(i32* %196, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i8* %29)
%198 = load i32*, i32** %7
%199 = call i64 (i32*, i8*, ...) @fscanf(i32* %198, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i8* %30)
%200 = load i32*, i32** %7
%201 = getelementptr inbounds [10 x i8], [10 x i8]* %31, i64 0, i64 0
%202 = call i64 (i32*, i8*, ...) @fscanf(i32* %200, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %201)
%203 = load i32*, i32** %7
%204 = call i64 (i32*, i8*, ...) @fscanf(i32* %203, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i32* %32)
%205 = load i32*, i32** %7
%206 = call i64 (i32*, i8*, ...) @fscanf(i32* %205, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i32* %33)
%207 = load i32*, i32** %7
%208 = call i64 (i32*, i8*, ...) @fscanf(i32* %207, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), float* %34)
%209 = load i32*, i32** %7
%210 = getelementptr inbounds [10 x i8], [10 x i8]* %35, i64 0, i64 0
%211 = call i64 (i32*, i8*, ...) @fscanf(i32* %209, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %210)
%212 = load i32*, i32** %7
%213 = getelementptr inbounds [10 x i8], [10 x i8]* %36, i64 0, i64 0
%214 = call i64 (i32*, i8*, ...) @fscanf(i32* %212, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %213)
%215 = load i32*, i32** %7
%216 = getelementptr inbounds [10 x i8], [10 x i8]* %37, i64 0, i64 0
%217 = call i64 (i32*, i8*, ...) @fscanf(i32* %215, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %216)
%218 = load i32*, i32** %7
%219 = getelementptr inbounds [10 x i8], [10 x i8]* %38, i64 0, i64 0
%220 = call i64 (i32*, i8*, ...) @fscanf(i32* %218, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %219)
%221 = load i32*, i32** %7
%222 = getelementptr inbounds [10 x i8], [10 x i8]* %39, i64 0, i64 0
%223 = call i64 (i32*, i8*, ...) @fscanf(i32* %221, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %222)
%224 = load i32*, i32** %7
%225 = getelementptr inbounds [10 x i8], [10 x i8]* %40, i64 0, i64 0
%226 = call i64 (i32*, i8*, ...) @fscanf(i32* %224, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %225)
%227 = getelementptr inbounds [10 x i8], [10 x i8]* %26, i64 0, i64 0
%228 = load i32, i32* %27
%229 = getelementptr inbounds [20 x i8], [20 x i8]* %28, i64 0, i64 0
%230 = load i8, i8* %29
%231 = sext i8 %230 to i32
%232 = load i8, i8* %30
%233 = sext i8 %232 to i32
%234 = getelementptr inbounds [10 x i8], [10 x i8]* %31, i64 0, i64 0
%235 = load i32, i32* %32
%236 = load i32, i32* %33
%237 = load float, float* %34
%238 = fpext float %237 to double
%239 = getelementptr inbounds [10 x i8], [10 x i8]* %35, i64 0, i64 0
%240 = getelementptr inbounds [10 x i8], [10 x i8]* %36, i64 0, i64 0
%241 = getelementptr inbounds [10 x i8], [10 x i8]* %37, i64 0, i64 0
%242 = getelementptr inbounds [10 x i8], [10 x i8]* %38, i64 0, i64 0
%243 = getelementptr inbounds [10 x i8], [10 x i8]* %39, i64 0, i64 0
%244 = getelementptr inbounds [10 x i8], [10 x i8]* %40, i64 0, i64 0
%245 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.13, i64 0, i64 0), i8* %227, i32 %228, i8* %229, i32 %231, i32 %233, i8* %234, i32 %235, i32 %236, double %238, i8* %239, i8* %240, i8* %241, i8* %242, i8* %243, i8* %244)
store i32 0, i32* %9
br label %246
246: ; preds = %307, %190
%247 = load i32, i32* %9
%248 = icmp slt i32 %247, 1092
br i1 %248, label %249, label %310
249: ; preds = %246
%250 = load i32*, i32** %7
%251 = getelementptr inbounds [3 x i8], [3 x i8]* %41, i64 0, i64 0
%252 = call i64 (i32*, i8*, ...) @fscanf(i32* %250, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %251)
%253 = getelementptr inbounds [3 x i8], [3 x i8]* %41, i64 0, i64 0
%254 = load i8, i8* %253
%255 = sext i8 %254 to i32
%256 = getelementptr inbounds [3 x i8], [3 x i8]* %41, i64 0, i64 1
%257 = load i8, i8* %256
%258 = sext i8 %257 to i32
%259 = icmp eq i32 %255, %258
br i1 %259, label %260, label %296
260: ; preds = %249
%261 = getelementptr inbounds [3 x i8], [3 x i8]* %41, i64 0, i64 0
%262 = load i8, i8* %261
%263 = sext i8 %262 to i32
%264 = load i8, i8* %29
%265 = sext i8 %264 to i32
%266 = icmp eq i32 %263, %265
br i1 %266, label %267, label %277
267: ; preds = %260
%268 = load i32, i32* %9
%269 = sext i32 %268 to i64
%270 = getelementptr inbounds [1092 x i32], [1092 x i32]* %14, i64 0, i64 %269
%271 = load i32, i32* %270
%272 = sext i32 %271 to i64
%273 = getelementptr inbounds [14 x [3 x i32]], [14 x [3 x i32]]* %15, i64 0, i64 %272
%274 = getelementptr inbounds [3 x i32], [3 x i32]* %273, i64 0, i64 0
%275 = load i32, i32* %274
%276 = add nsw i32 %275, 1
store i32 %276, i32* %274
br label %295
277: ; preds = %260
%278 = getelementptr inbounds [3 x i8], [3 x i8]* %41, i64 0, i64 0
%279 = load i8, i8* %278
%280 = sext i8 %279 to i32
%281 = load i8, i8* %30
%282 = sext i8 %281 to i32
%283 = icmp eq i32 %280, %282
br i1 %283, label %284, label %294
284: ; preds = %277
%285 = load i32, i32* %9
%286 = sext i32 %285 to i64
%287 = getelementptr inbounds [1092 x i32], [1092 x i32]* %14, i64 0, i64 %286
%288 = load i32, i32* %287
%289 = sext i32 %288 to i64
%290 = getelementptr inbounds [14 x [3 x i32]], [14 x [3 x i32]]* %15, i64 0, i64 %289
%291 = getelementptr inbounds [3 x i32], [3 x i32]* %290, i64 0, i64 2
%292 = load i32, i32* %291
%293 = add nsw i32 %292, 1
store i32 %293, i32* %291
br label %294
294: ; preds = %284, %277
br label %295
295: ; preds = %294, %267
br label %306
296: ; preds = %249
%297 = load i32, i32* %9
%298 = sext i32 %297 to i64
%299 = getelementptr inbounds [1092 x i32], [1092 x i32]* %14, i64 0, i64 %298
%300 = load i32, i32* %299
%301 = sext i32 %300 to i64
%302 = getelementptr inbounds [14 x [3 x i32]], [14 x [3 x i32]]* %15, i64 0, i64 %301
%303 = getelementptr inbounds [3 x i32], [3 x i32]* %302, i64 0, i64 1
%304 = load i32, i32* %303
%305 = add nsw i32 %304, 1
store i32 %305, i32* %303
br label %306
306: ; preds = %296, %295
br label %307
307: ; preds = %306
%308 = load i32, i32* %9
%309 = add nsw i32 %308, 1
store i32 %309, i32* %9
br label %246
310: ; preds = %246
%311 = getelementptr inbounds [14 x [3 x i32]], [14 x [3 x i32]]* %15, i64 0, i64 0
%312 = bitcast [3 x i32]* %311 to i32**
%313 = getelementptr inbounds [14 x i32], [14 x i32]* %16, i64 0, i64 0
%314 = call i32 @calculate_allele_information(i32 0, i32 2, i32** %312, i32* %313)
%315 = getelementptr inbounds [14 x [3 x i32]], [14 x [3 x i32]]* %15, i64 0, i64 0
%316 = bitcast [3 x i32]* %315 to i32**
%317 = getelementptr inbounds [14 x i32], [14 x i32]* %16, i64 0, i64 0
%318 = call i32 @calculate_allele_information(i32 3, i32 5, i32** %316, i32* %317)
%319 = getelementptr inbounds [14 x [3 x i32]], [14 x [3 x i32]]* %15, i64 0, i64 0
%320 = bitcast [3 x i32]* %319 to i32**
%321 = getelementptr inbounds [14 x i32], [14 x i32]* %16, i64 0, i64 0
%322 = call i32 @calculate_allele_information(i32 6, i32 8, i32** %320, i32* %321)
%323 = getelementptr inbounds [14 x [3 x i32]], [14 x [3 x i32]]* %15, i64 0, i64 0
%324 = bitcast [3 x i32]* %323 to i32**
%325 = getelementptr inbounds [14 x i32], [14 x i32]* %16, i64 0, i64 0
%326 = call i32 @calculate_allele_information(i32 9, i32 14, i32** %324, i32* %325)
store i32 0, i32* %21
store i32 0, i32* %9
br label %327
327: ; preds = %430, %310
%328 = load i32, i32* %9
%329 = icmp slt i32 %328, 14
br i1 %329, label %330, label %433
330: ; preds = %327
%331 = load i32, i32* %9
%332 = sext i32 %331 to i64
%333 = getelementptr inbounds [14 x [3 x i32]], [14 x [3 x i32]]* %15, i64 0, i64 %332
%334 = getelementptr inbounds [3 x i32], [3 x i32]* %333, i64 0, i64 1
%335 = load i32, i32* %334
%336 = load i32, i32* %9
%337 = sext i32 %336 to i64
%338 = getelementptr inbounds [14 x [3 x i32]], [14 x [3 x i32]]* %15, i64 0, i64 %337
%339 = getelementptr inbounds [3 x i32], [3 x i32]* %338, i64 0, i64 2
%340 = load i32, i32* %339
%341 = add nsw i32 %335, %340
%342 = load i32, i32* %9
%343 = sext i32 %342 to i64
%344 = getelementptr inbounds [14 x [3 x i32]], [14 x [3 x i32]]* %15, i64 0, i64 %343
%345 = getelementptr inbounds [3 x i32], [3 x i32]* %344, i64 0, i64 2
%346 = load i32, i32* %345
%347 = add nsw i32 %341, %346
store i32 %347, i32* %22
%348 = load i32, i32* %22
%349 = load i32, i32* %21
%350 = add nsw i32 %349, %348
store i32 %350, i32* %21
%351 = load i32, i32* %9
%352 = sext i32 %351 to i64
%353 = getelementptr inbounds [14 x [3 x i32]], [14 x [3 x i32]]* %15, i64 0, i64 %352
%354 = getelementptr inbounds [3 x i32], [3 x i32]* %353, i64 0, i64 0
%355 = load i32, i32* %354
%356 = sitofp i32 %355 to float
%357 = load i32, i32* %9
%358 = sext i32 %357 to i64
%359 = getelementptr inbounds [14 x i32], [14 x i32]* %16, i64 0, i64 %358
%360 = load i32, i32* %359
%361 = sitofp i32 %360 to float
%362 = fdiv float %356, %361
%363 = fpext float %362 to double
%364 = load i32, i32* %9
%365 = sext i32 %364 to i64
%366 = getelementptr inbounds [14 x [3 x i32]], [14 x [3 x i32]]* %15, i64 0, i64 %365
%367 = getelementptr inbounds [3 x i32], [3 x i32]* %366, i64 0, i64 1
%368 = load i32, i32* %367
%369 = sitofp i32 %368 to float
%370 = load i32, i32* %9
%371 = sext i32 %370 to i64
%372 = getelementptr inbounds [14 x i32], [14 x i32]* %16, i64 0, i64 %371
%373 = load i32, i32* %372
%374 = sitofp i32 %373 to float
%375 = fdiv float %369, %374
%376 = fpext float %375 to double
%377 = load i32, i32* %9
%378 = sext i32 %377 to i64
%379 = getelementptr inbounds [14 x [3 x i32]], [14 x [3 x i32]]* %15, i64 0, i64 %378
%380 = getelementptr inbounds [3 x i32], [3 x i32]* %379, i64 0, i64 2
%381 = load i32, i32* %380
%382 = sitofp i32 %381 to float
%383 = load i32, i32* %9
%384 = sext i32 %383 to i64
%385 = getelementptr inbounds [14 x i32], [14 x i32]* %16, i64 0, i64 %384
%386 = load i32, i32* %385
%387 = sitofp i32 %386 to float
%388 = fdiv float %382, %387
%389 = fpext float %388 to double
%390 = load i32, i32* %22
%391 = sitofp i32 %390 to float
%392 = load i32, i32* %9
%393 = sext i32 %392 to i64
%394 = getelementptr inbounds [14 x i32], [14 x i32]* %16, i64 0, i64 %393
%395 = load i32, i32* %394
%396 = mul nsw i32 %395, 2
%397 = sitofp i32 %396 to float
%398 = fdiv float %391, %397
%399 = fpext float %398 to double
%400 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.14, i64 0, i64 0), double %363, double %376, double %389, double %399)
%401 = load i32, i32* %9
%402 = sext i32 %401 to i64
%403 = getelementptr inbounds [14 x [3 x i32]], [14 x [3 x i32]]* %15, i64 0, i64 %402
%404 = getelementptr inbounds [3 x i32], [3 x i32]* %403, i64 0, i64 0
%405 = load i32, i32* %404
%406 = load i32, i32* %9
%407 = sext i32 %406 to i64
%408 = getelementptr inbounds [14 x [3 x i32]], [14 x [3 x i32]]* %15, i64 0, i64 %407
%409 = getelementptr inbounds [3 x i32], [3 x i32]* %408, i64 0, i64 1
%410 = load i32, i32* %409
%411 = load i32, i32* %9
%412 = sext i32 %411 to i64
%413 = getelementptr inbounds [14 x [3 x i32]], [14 x [3 x i32]]* %15, i64 0, i64 %412
%414 = getelementptr inbounds [3 x i32], [3 x i32]* %413, i64 0, i64 2
%415 = load i32, i32* %414
%416 = load i32, i32* %22
%417 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0), i32 %405, i32 %410, i32 %415, i32 %416)
%418 = load i32, i32* %9
%419 = sext i32 %418 to i64
%420 = getelementptr inbounds [14 x [3 x i32]], [14 x [3 x i32]]* %15, i64 0, i64 %419
%421 = getelementptr inbounds [3 x i32], [3 x i32]* %420, i64 0, i64 0
store i32 0, i32* %421
%422 = load i32, i32* %9
%423 = sext i32 %422 to i64
%424 = getelementptr inbounds [14 x [3 x i32]], [14 x [3 x i32]]* %15, i64 0, i64 %423
%425 = getelementptr inbounds [3 x i32], [3 x i32]* %424, i64 0, i64 1
store i32 0, i32* %425
%426 = load i32, i32* %9
%427 = sext i32 %426 to i64
%428 = getelementptr inbounds [14 x [3 x i32]], [14 x [3 x i32]]* %15, i64 0, i64 %427
%429 = getelementptr inbounds [3 x i32], [3 x i32]* %428, i64 0, i64 2
store i32 0, i32* %429
br label %430
430: ; preds = %330
%431 = load i32, i32* %9
%432 = add nsw i32 %431, 1
store i32 %432, i32* %9
br label %327
433: ; preds = %327
%434 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%435 = load i32, i32* %32
%436 = load i32, i32* %21
%437 = icmp ne i32 %435, %436
br i1 %437, label %438, label %440
438: ; preds = %433
%439 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.16, i64 0, i64 0))
store i32 -1, i32* %3
br label %448
440: ; preds = %433
%441 = load i32, i32* %20
%442 = add nsw i32 %441, 1
store i32 %442, i32* %20
br label %184
443: ; preds = %184
%444 = load i32*, i32** %6
%445 = call i32 @fclose(i32* %444)
%446 = load i32*, i32** %7
%447 = call i32 @fclose(i32* %446)
store i32 0, i32* %3
br label %448
448: ; preds = %443, %438
%449 = load i32, i32* %3
ret i32 %449
}

LLVM IR (-O2):
@.str = [2 x i8] c"r\00"
@.str.1 = [2 x i8] c",\00"
@.str.2 = [3 x i8] c"%s\00"
@.str.3 = [4 x i8] c"%s\09\00"
@.str.4 = [39 x i8] c"ASN_00\09ASN_01\09ASN_11\09ASN_AF\09ASN_COUNT\09\00"
@.str.5 = [39 x i8] c"AMR_00\09AMR_01\09AMR_11\09AMR_AF\09AMR_COUNT\09\00"
@.str.6 = [39 x i8] c"AFR_00\09AFR_01\09AFR_11\09AFR_AF\09AFR_COUNT\09\00"
@.str.7 = [39 x i8] c"EUR_00\09EUR_01\09EUR_11\09EUR_AF\09EUR_COUNT\09\00"
@.str.8 = [34 x i8] c"%s_00\09%s_01\09%s_11\09%s_AF\09%s_COUNT\09\00"
@EOF = global i64 0
@.str.10 = [3 x i8] c"%d\00"
@.str.11 = [4 x i8] c"\09%c\00"
@.str.12 = [3 x i8] c"%f\00"
@.str.13 = [45 x i8] c"%s\09%d\09%s\09%c\09%c\09%s\09%d\09%d\09%f\09%s\09%s\09%s\09%s\09%s\09%s\00"
@.str.14 = [21 x i8] c"\09%.5f\09%.5f\09%.5f\09%.5f\00"
@.str.15 = [13 x i8] c"\09%d,%d,%d,%d\00"
@str = [6 x i8] c"Error\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [30000 x i8]
%4 = alloca [14 x [4 x i8]]
%5 = alloca [1092 x [8 x i8]]
%6 = alloca [1092 x i32]
%7 = alloca [1092 x i32]
%8 = alloca [14 x [3 x i32]]
%9 = alloca [14 x i32]
%10 = alloca [10 x i8]
%11 = alloca i32
%12 = alloca [20 x i8]
%13 = alloca i8
%14 = alloca i8
%15 = alloca [10 x i8]
%16 = alloca i32
%17 = alloca i32
%18 = alloca float
%19 = alloca [10 x i8]
%20 = alloca [10 x i8]
%21 = alloca [10 x i8]
%22 = alloca [10 x i8]
%23 = alloca [10 x i8]
%24 = alloca [10 x i8]
%25 = alloca [3 x i8]
%26 = getelementptr inbounds [30000 x i8], [30000 x i8]* %3, i64 0, i64 0
%27 = getelementptr inbounds [14 x [4 x i8]], [14 x [4 x i8]]* %4, i64 0, i64 0, i64 0
%28 = getelementptr inbounds [1092 x [8 x i8]], [1092 x [8 x i8]]* %5, i64 0, i64 0, i64 0
%29 = bitcast [1092 x i32]* %6 to i8*
%30 = bitcast [1092 x i32]* %7 to i8*
%31 = bitcast [14 x [3 x i32]]* %8 to i8*
%32 = bitcast [14 x i32]* %9 to i8*
%33 = getelementptr inbounds [10 x i8], [10 x i8]* %10, i64 0, i64 0
%34 = bitcast i32* %11 to i8*
%35 = getelementptr inbounds [20 x i8], [20 x i8]* %12, i64 0, i64 0
%36 = getelementptr inbounds [10 x i8], [10 x i8]* %15, i64 0, i64 0
%37 = bitcast i32* %16 to i8*
%38 = bitcast i32* %17 to i8*
%39 = bitcast float* %18 to i8*
%40 = getelementptr inbounds [10 x i8], [10 x i8]* %19, i64 0, i64 0
%41 = getelementptr inbounds [10 x i8], [10 x i8]* %20, i64 0, i64 0
%42 = getelementptr inbounds [10 x i8], [10 x i8]* %21, i64 0, i64 0
%43 = getelementptr inbounds [10 x i8], [10 x i8]* %22, i64 0, i64 0
%44 = getelementptr inbounds [10 x i8], [10 x i8]* %23, i64 0, i64 0
%45 = getelementptr inbounds [10 x i8], [10 x i8]* %24, i64 0, i64 0
%46 = getelementptr inbounds [3 x i8], [3 x i8]* %25, i64 0, i64 0
%47 = getelementptr inbounds i8*, i8** %1, i64 1
%48 = load i8*, i8** %47
%49 = tail call i32* @fopen(i8* %48, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%50 = getelementptr inbounds i8*, i8** %1, i64 2
%51 = load i8*, i8** %50
%52 = tail call i32* @fopen(i8* %51, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%53 = call i32* @fgets(i8* %26, i32 30000, i32* %49)
%54 = icmp eq i32* %53, null
br i1 %54, label %55, label %87
55: ; preds = %120, %2
%56 = call i64 (i32*, i8*, ...) @fscanf(i32* %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %26)
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %26)
%58 = call i64 (i32*, i8*, ...) @fscanf(i32* %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %26)
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %26)
%60 = call i64 (i32*, i8*, ...) @fscanf(i32* %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %26)
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %26)
%62 = call i64 (i32*, i8*, ...) @fscanf(i32* %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %26)
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %26)
%64 = call i64 (i32*, i8*, ...) @fscanf(i32* %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %26)
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %26)
%66 = call i64 (i32*, i8*, ...) @fscanf(i32* %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %26)
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %26)
%68 = call i64 (i32*, i8*, ...) @fscanf(i32* %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %26)
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %26)
%70 = call i64 (i32*, i8*, ...) @fscanf(i32* %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %26)
%71 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %26)
%72 = call i64 (i32*, i8*, ...) @fscanf(i32* %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %26)
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %26)
%74 = call i64 (i32*, i8*, ...) @fscanf(i32* %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %26)
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %26)
%76 = call i64 (i32*, i8*, ...) @fscanf(i32* %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %26)
%77 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %26)
%78 = call i64 (i32*, i8*, ...) @fscanf(i32* %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %26)
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %26)
%80 = call i64 (i32*, i8*, ...) @fscanf(i32* %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %26)
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %26)
%82 = call i64 (i32*, i8*, ...) @fscanf(i32* %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %26)
%83 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %26)
%84 = call i64 (i32*, i8*, ...) @fscanf(i32* %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %26)
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %26)
%86 = getelementptr inbounds [20 x i8], [20 x i8]* %12, i64 0, i64 4
br label %130
87: ; preds = %2, %120
%88 = phi i32 [ %122, %120 ], [ 0, %2 ]
%89 = phi i32 [ %121, %120 ], [ 0, %2 ]
%90 = call i8* @strtok(i8* %26, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%91 = icmp eq i8* %90, null
br i1 %91, label %120, label %92
92: ; preds = %87, %114
%93 = phi i8* [ %118, %114 ], [ %90, %87 ]
%94 = phi i32 [ %117, %114 ], [ 0, %87 ]
%95 = phi i32 [ %116, %114 ], [ %88, %87 ]
%96 = phi i32 [ %115, %114 ], [ %89, %87 ]
%97 = icmp eq i32 %94, 0
br i1 %97, label %98, label %103
98: ; preds = %92
%99 = sext i32 %96 to i64
%100 = getelementptr inbounds [14 x [4 x i8]], [14 x [4 x i8]]* %4, i64 0, i64 %99, i64 0
%101 = call i32 @strncpy(i8* %100, i8* %93, i32 3)
%102 = add nsw i32 %96, 1
br label %114
103: ; preds = %92
%104 = call i32 @strlen(i8* %93)
%105 = icmp sgt i32 %104, 2
br i1 %105, label %106, label %114
106: ; preds = %103
%107 = sext i32 %95 to i64
%108 = getelementptr inbounds [1092 x [8 x i8]], [1092 x [8 x i8]]* %5, i64 0, i64 %107, i64 0
%109 = call i32 @strncpy(i8* %108, i8* %93, i32 7)
%110 = add nsw i32 %96, -1
%111 = getelementptr inbounds [1092 x i32], [1092 x i32]* %6, i64 0, i64 %107
store i32 %110, i32* %111
%112 = add nsw i32 %95, 1
%113 = add nsw i32 %94, 1
br label %114
114: ; preds = %103, %106, %98
%115 = phi i32 [ %102, %98 ], [ %96, %106 ], [ %96, %103 ]
%116 = phi i32 [ %95, %98 ], [ %112, %106 ], [ %95, %103 ]
%117 = phi i32 [ 1, %98 ], [ %113, %106 ], [ %94, %103 ]
%118 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%119 = icmp eq i8* %118, null
br i1 %119, label %120, label %92
120: ; preds = %114, %87
%121 = phi i32 [ %89, %87 ], [ %115, %114 ]
%122 = phi i32 [ %88, %87 ], [ %116, %114 ]
%123 = phi i32 [ 0, %87 ], [ %117, %114 ]
%124 = add nsw i32 %123, -1
%125 = add nsw i32 %121, -1
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds [14 x i32], [14 x i32]* %9, i64 0, i64 %126
store i32 %124, i32* %127
%128 = call i32* @fgets(i8* %26, i32 30000, i32* %49)
%129 = icmp eq i32* %128, null
br i1 %129, label %55, label %87
130: ; preds = %55, %139
%131 = phi i64 [ 0, %55 ], [ %144, %139 ]
%132 = call i64 (i32*, i8*, ...) @fscanf(i32* %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %35)
br label %133
133: ; preds = %133, %130
%134 = phi i64 [ %138, %133 ], [ 0, %130 ]
%135 = getelementptr inbounds [1092 x [8 x i8]], [1092 x [8 x i8]]* %5, i64 0, i64 %134, i64 0
%136 = call i64 @strcmp(i8* %86, i8* %135)
%137 = icmp eq i64 %136, 0
%138 = add nuw i64 %134, 1
br i1 %137, label %139, label %133
139: ; preds = %133
%140 = and i64 %134, 4294967295
%141 = getelementptr inbounds [1092 x i32], [1092 x i32]* %6, i64 0, i64 %140
%142 = load i32, i32* %141
%143 = getelementptr inbounds [1092 x i32], [1092 x i32]* %7, i64 0, i64 %131
store i32 %142, i32* %143
%144 = add nuw nsw i64 %131, 1
%145 = icmp eq i64 %144, 1092
br i1 %145, label %146, label %130
146: ; preds = %139
%147 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0))
%148 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.5, i64 0, i64 0))
%149 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0))
%150 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.7, i64 0, i64 0))
%151 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.8, i64 0, i64 0), i8* %27, i8* %27, i8* %27, i8* %27, i8* %27)
%152 = getelementptr inbounds [14 x [4 x i8]], [14 x [4 x i8]]* %4, i64 0, i64 1, i64 0
%153 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.8, i64 0, i64 0), i8* %152, i8* %152, i8* %152, i8* %152, i8* %152)
%154 = getelementptr inbounds [14 x [4 x i8]], [14 x [4 x i8]]* %4, i64 0, i64 2, i64 0
%155 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.8, i64 0, i64 0), i8* %154, i8* %154, i8* %154, i8* %154, i8* %154)
%156 = getelementptr inbounds [14 x [4 x i8]], [14 x [4 x i8]]* %4, i64 0, i64 3, i64 0
%157 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.8, i64 0, i64 0), i8* %156, i8* %156, i8* %156, i8* %156, i8* %156)
%158 = getelementptr inbounds [14 x [4 x i8]], [14 x [4 x i8]]* %4, i64 0, i64 4, i64 0
%159 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.8, i64 0, i64 0), i8* %158, i8* %158, i8* %158, i8* %158, i8* %158)
%160 = getelementptr inbounds [14 x [4 x i8]], [14 x [4 x i8]]* %4, i64 0, i64 5, i64 0
%161 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.8, i64 0, i64 0), i8* %160, i8* %160, i8* %160, i8* %160, i8* %160)
%162 = getelementptr inbounds [14 x [4 x i8]], [14 x [4 x i8]]* %4, i64 0, i64 6, i64 0
%163 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.8, i64 0, i64 0), i8* %162, i8* %162, i8* %162, i8* %162, i8* %162)
%164 = getelementptr inbounds [14 x [4 x i8]], [14 x [4 x i8]]* %4, i64 0, i64 7, i64 0
%165 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.8, i64 0, i64 0), i8* %164, i8* %164, i8* %164, i8* %164, i8* %164)
%166 = getelementptr inbounds [14 x [4 x i8]], [14 x [4 x i8]]* %4, i64 0, i64 8, i64 0
%167 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.8, i64 0, i64 0), i8* %166, i8* %166, i8* %166, i8* %166, i8* %166)
%168 = getelementptr inbounds [14 x [4 x i8]], [14 x [4 x i8]]* %4, i64 0, i64 9, i64 0
%169 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.8, i64 0, i64 0), i8* %168, i8* %168, i8* %168, i8* %168, i8* %168)
%170 = getelementptr inbounds [14 x [4 x i8]], [14 x [4 x i8]]* %4, i64 0, i64 10, i64 0
%171 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.8, i64 0, i64 0), i8* %170, i8* %170, i8* %170, i8* %170, i8* %170)
%172 = getelementptr inbounds [14 x [4 x i8]], [14 x [4 x i8]]* %4, i64 0, i64 11, i64 0
%173 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.8, i64 0, i64 0), i8* %172, i8* %172, i8* %172, i8* %172, i8* %172)
%174 = getelementptr inbounds [14 x [4 x i8]], [14 x [4 x i8]]* %4, i64 0, i64 12, i64 0
%175 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.8, i64 0, i64 0), i8* %174, i8* %174, i8* %174, i8* %174, i8* %174)
%176 = getelementptr inbounds [14 x [4 x i8]], [14 x [4 x i8]]* %4, i64 0, i64 13, i64 0
%177 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.8, i64 0, i64 0), i8* %176, i8* %176, i8* %176, i8* %176, i8* %176)
%178 = call i32 @putchar(i32 10)
%179 = getelementptr inbounds [3 x i8], [3 x i8]* %25, i64 0, i64 1
%180 = bitcast [14 x [3 x i32]]* %8 to i32**
%181 = getelementptr inbounds [14 x i32], [14 x i32]* %9, i64 0, i64 0
br label %182
182: ; preds = %275, %146
%183 = call i64 (i32*, i8*, ...) @fscanf(i32* %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %33)
%184 = load i64, i64* @EOF
%185 = icmp eq i64 %183, %184
br i1 %185, label %281, label %186
186: ; preds = %182
%187 = call i64 (i32*, i8*, ...) @fscanf(i32* %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i32* %11)
%188 = call i64 (i32*, i8*, ...) @fscanf(i32* %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %35)
%189 = call i64 (i32*, i8*, ...) @fscanf(i32* %52, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i8* %13)
%190 = call i64 (i32*, i8*, ...) @fscanf(i32* %52, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i8* %14)
%191 = call i64 (i32*, i8*, ...) @fscanf(i32* %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %36)
%192 = call i64 (i32*, i8*, ...) @fscanf(i32* %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i32* %16)
%193 = call i64 (i32*, i8*, ...) @fscanf(i32* %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i32* %17)
%194 = call i64 (i32*, i8*, ...) @fscanf(i32* %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), float* %18)
%195 = call i64 (i32*, i8*, ...) @fscanf(i32* %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %40)
%196 = call i64 (i32*, i8*, ...) @fscanf(i32* %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %41)
%197 = call i64 (i32*, i8*, ...) @fscanf(i32* %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %42)
%198 = call i64 (i32*, i8*, ...) @fscanf(i32* %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %43)
%199 = call i64 (i32*, i8*, ...) @fscanf(i32* %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %44)
%200 = call i64 (i32*, i8*, ...) @fscanf(i32* %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %45)
%201 = load i32, i32* %11
%202 = load i8, i8* %13
%203 = sext i8 %202 to i32
%204 = load i8, i8* %14
%205 = sext i8 %204 to i32
%206 = load i32, i32* %16
%207 = load i32, i32* %17
%208 = load float, float* %18
%209 = fpext float %208 to double
%210 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.13, i64 0, i64 0), i8* %33, i32 %201, i8* %35, i32 %203, i32 %205, i8* %36, i32 %206, i32 %207, double %209, i8* %40, i8* %41, i8* %42, i8* %43, i8* %44, i8* %45)
br label %211
211: ; preds = %186, %231
%212 = phi i64 [ 0, %186 ], [ %232, %231 ]
%213 = call i64 (i32*, i8*, ...) @fscanf(i32* %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %46)
%214 = load i8, i8* %46
%215 = load i8, i8* %179
%216 = icmp eq i8 %214, %215
br i1 %216, label %217, label %223
217: ; preds = %211
%218 = load i8, i8* %13
%219 = icmp eq i8 %214, %218
br i1 %219, label %223, label %220
220: ; preds = %217
%221 = load i8, i8* %14
%222 = icmp eq i8 %214, %221
br i1 %222, label %223, label %231
223: ; preds = %211, %220, %217
%224 = phi i64 [ 0, %217 ], [ 2, %220 ], [ 1, %211 ]
%225 = getelementptr inbounds [1092 x i32], [1092 x i32]* %7, i64 0, i64 %212
%226 = load i32, i32* %225
%227 = sext i32 %226 to i64
%228 = getelementptr inbounds [14 x [3 x i32]], [14 x [3 x i32]]* %8, i64 0, i64 %227, i64 %224
%229 = load i32, i32* %228
%230 = add nsw i32 %229, 1
store i32 %230, i32* %228
br label %231
231: ; preds = %223, %220
%232 = add nuw nsw i64 %212, 1
%233 = icmp eq i64 %232, 1092
br i1 %233, label %234, label %211
234: ; preds = %231
%235 = call i32 @calculate_allele_information(i32 0, i32 2, i32** %180, i32* %181)
%236 = call i32 @calculate_allele_information(i32 3, i32 5, i32** %180, i32* %181)
%237 = call i32 @calculate_allele_information(i32 6, i32 8, i32** %180, i32* %181)
%238 = call i32 @calculate_allele_information(i32 9, i32 14, i32** %180, i32* %181)
br label %239
239: ; preds = %234, %239
%240 = phi i64 [ 0, %234 ], [ %273, %239 ]
%241 = phi i32 [ 0, %234 ], [ %248, %239 ]
%242 = getelementptr inbounds [14 x [3 x i32]], [14 x [3 x i32]]* %8, i64 0, i64 %240, i64 1
%243 = load i32, i32* %242
%244 = getelementptr inbounds [14 x [3 x i32]], [14 x [3 x i32]]* %8, i64 0, i64 %240, i64 2
%245 = load i32, i32* %244
%246 = shl i32 %245, 1
%247 = add i32 %246, %243
%248 = add nsw i32 %247, %241
%249 = getelementptr inbounds [14 x [3 x i32]], [14 x [3 x i32]]* %8, i64 0, i64 %240, i64 0
%250 = load i32, i32* %249
%251 = sitofp i32 %250 to float
%252 = getelementptr inbounds [14 x i32], [14 x i32]* %9, i64 0, i64 %240
%253 = load i32, i32* %252
%254 = sitofp i32 %253 to float
%255 = fdiv float %251, %254
%256 = fpext float %255 to double
%257 = sitofp i32 %243 to float
%258 = fdiv float %257, %254
%259 = fpext float %258 to double
%260 = sitofp i32 %245 to float
%261 = fdiv float %260, %254
%262 = fpext float %261 to double
%263 = sitofp i32 %247 to float
%264 = shl nsw i32 %253, 1
%265 = sitofp i32 %264 to float
%266 = fdiv float %263, %265
%267 = fpext float %266 to double
%268 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.14, i64 0, i64 0), double %256, double %259, double %262, double %267)
%269 = load i32, i32* %249
%270 = load i32, i32* %242
%271 = load i32, i32* %244
%272 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0), i32 %269, i32 %270, i32 %271, i32 %247)
store i32 0, i32* %249
store i32 0, i32* %242
store i32 0, i32* %244
%273 = add nuw nsw i64 %240, 1
%274 = icmp eq i64 %273, 14
br i1 %274, label %275, label %239
275: ; preds = %239
%276 = call i32 @putchar(i32 10)
%277 = load i32, i32* %16
%278 = icmp eq i32 %277, %248
br i1 %278, label %182, label %279
279: ; preds = %275
%280 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str, i64 0, i64 0))
br label %284
281: ; preds = %182
%282 = call i32 @fclose(i32* %49)
%283 = call i32 @fclose(i32* %52)
br label %284
284: ; preds = %281, %279
%285 = phi i32 [ -1, %279 ], [ 0, %281 ]
ret i32 %285
}