#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*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, float, char *, float,
                           char *, float, char *, float, char *, float, char *,
                           float);
int /*<<< orphan*/ free(char *);
scalar_t__ malloc(int);
int /*<<< orphan*/ sscanf(char *, char *, char *, char *, ...);
scalar_t__ strncmp(char *, char *, int);
main() {
  int i = 0, j = 0, k = 0, line_length = 1000, atom_numb;
  float numb_1, numb_2, numb_3, bef_int, bef_ext, bef_total, aft_int, aft_ext,
      aft_total;
  char buffer[line_length], *word_1[1000], *word_2[1000], *word_3[1000],
      *word_4[1000], *word_5[1000], *word_6[1000];
  for (i = 0; i < 1000; i++) {
    word_1[i] = (char *)malloc(line_length);
    word_2[i] = (char *)malloc(line_length);
    word_3[i] = (char *)malloc(line_length);
    word_4[i] = (char *)malloc(line_length);
    word_5[i] = (char *)malloc(line_length);
    word_6[i] = (char *)malloc(line_length);
  }
  FILE *before, *after, *final, *fopen();
  before = fopen("before_opt.txt", "r");
  after = fopen("after_opt.txt", "r");
  final = fopen("energy.txt", "w");
  for (j = 0; j < 1000; j++) {
    fgets(buffer, line_length, before);
    sscanf(buffer, "%s %s %s %i %s %f %s %f %s %f", word_1[j], word_2[j],
           word_3[j], &atom_numb, word_4[j], &numb_1, word_5[j], &numb_2,
           word_6[j], &numb_3);
    if (strncmp(word_3[j], "internal", 8) == 0)
      break;
    else
      continue;
  }
  sscanf(buffer, "%s %s %s %f", word_1[j], word_2[j], word_3[j], &bef_int);
  fgets(buffer, line_length, before);
  sscanf(buffer, "%s %s %s %f", word_1[j], word_2[j], word_3[j], &bef_ext);
  fgets(buffer, line_length, before);
  sscanf(buffer, "%s %s %f", word_1[j], word_2[j], &bef_total);
  for (j = 0; j < 1000; j++) {
    fgets(buffer, line_length, after);
    sscanf(buffer, "%s %s %s %i %s %f %s %f %s %f", word_1[j], word_2[j],
           word_3[j], &atom_numb, word_4[j], &numb_1, word_5[j], &numb_2,
           word_6[j], &numb_3);
    if (strncmp(word_3[j], "internal", 8) == 0)
      break;
    else
      continue;
  }
  sscanf(buffer, "%s %s %s %f", word_1[j], word_2[j], word_3[j], &aft_int);
  fgets(buffer, line_length, after);
  sscanf(buffer, "%s %s %s %f", word_1[j], word_2[j], word_3[j], &aft_ext);
  fgets(buffer, line_length, after);
  sscanf(buffer, "%s %s %f", word_1[j], word_2[j], &aft_total);
  fprintf(final, " %f %s %f %s %f %s %f %s %f %s %f", bef_ext, ":", aft_ext,
          ":", bef_int, ":", aft_int, ":", bef_total, ":", aft_total);
  for (i = 0; i < 1000; ++i) {
    free(word_1[i]);
    free(word_2[i]);
    free(word_3[i]);
    free(word_4[i]);
    free(word_5[i]);
    free(word_6[i]);
  }
  fclose(before);
  fclose(after);
  fclose(final);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %rbx
sub    $0xbbf8,%rsp
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
movl   $0x3e8,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x60(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0xbc10(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x68(%rbp)
movl   $0x0,-0x20(%rbp)
cmpl   $0x3e8,-0x20(%rbp)
jge    1288 <main+0x108>
mov    -0x2c(%rbp),%edi
call   1080 <malloc@plt>
mov    %rax,%rcx
movslq -0x20(%rbp),%rax
mov    %rcx,-0x1fb0(%rbp,%rax,8)
ff
mov    -0x2c(%rbp),%edi
call   1080 <malloc@plt>
mov    %rax,%rcx
movslq -0x20(%rbp),%rax
mov    %rcx,-0x3ef0(%rbp,%rax,8)
ff
mov    -0x2c(%rbp),%edi
call   1080 <malloc@plt>
mov    %rax,%rcx
movslq -0x20(%rbp),%rax
mov    %rcx,-0x5e30(%rbp,%rax,8)
ff
mov    -0x2c(%rbp),%edi
call   1080 <malloc@plt>
mov    %rax,%rcx
movslq -0x20(%rbp),%rax
mov    %rcx,-0x7d70(%rbp,%rax,8)
ff
mov    -0x2c(%rbp),%edi
call   1080 <malloc@plt>
mov    %rax,%rcx
movslq -0x20(%rbp),%rax
mov    %rcx,-0x9cb0(%rbp,%rax,8)
ff
mov    -0x2c(%rbp),%edi
call   1080 <malloc@plt>
mov    %rax,%rcx
movslq -0x20(%rbp),%rax
mov    %rcx,-0xbbf0(%rbp,%rax,8)
ff
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    11e3 <main+0x63>
lea    0xd71(%rip),%rdi
lea    0xd79(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0xbbf8(%rbp)
lea    0xd68(%rip),%rdi
lea    0xd5f(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0xbc00(%rbp)
lea    0xd5c(%rip),%rdi
lea    0xd60(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0xbc08(%rbp)
movl   $0x0,-0x24(%rbp)
cmpl   $0x3e8,-0x24(%rbp)
jge    13d1 <main+0x251>
mov    -0xbc10(%rbp),%rdi
mov    -0x2c(%rbp),%esi
mov    -0xbbf8(%rbp),%rdx
call   1060 <fgets@plt>
mov    -0xbc10(%rbp),%rdi
movslq -0x24(%rbp),%rax
mov    -0x1fb0(%rbp,%rax,8),%rdx
ff
movslq -0x24(%rbp),%rax
mov    -0x3ef0(%rbp,%rax,8),%rcx
ff
movslq -0x24(%rbp),%rax
mov    -0x5e30(%rbp,%rax,8),%r8
ff
movslq -0x24(%rbp),%rax
mov    -0x7d70(%rbp,%rax,8),%r15
ff
movslq -0x24(%rbp),%rax
mov    -0x9cb0(%rbp,%rax,8),%rbx
ff
movslq -0x24(%rbp),%rax
mov    -0xbbf0(%rbp,%rax,8),%r10
ff
lea    0xcd6(%rip),%rsi
lea    -0x30(%rbp),%r9
lea    -0x34(%rbp),%r14
lea    -0x38(%rbp),%r11
lea    -0x3c(%rbp),%rax
sub    $0x30,%rsp
mov    %r15,(%rsp)
mov    %r14,0x8(%rsp)
mov    %rbx,0x10(%rsp)
mov    %r11,0x18(%rsp)
mov    %r10,0x20(%rsp)
mov    %rax,0x28(%rsp)
mov    $0x0,%al
call   1090 <sscanf@plt>
add    $0x30,%rsp
movslq -0x24(%rbp),%rax
mov    -0x5e30(%rbp,%rax,8),%rdi
ff
lea    0xca5(%rip),%rsi
mov    $0x8,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    13be <main+0x23e>
jmp    13d1 <main+0x251>
jmp    13c3 <main+0x243>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    12dd <main+0x15d>
mov    -0xbc10(%rbp),%rdi
movslq -0x24(%rbp),%rax
mov    -0x1fb0(%rbp,%rax,8),%rdx
ff
movslq -0x24(%rbp),%rax
mov    -0x3ef0(%rbp,%rax,8),%rcx
ff
movslq -0x24(%rbp),%rax
mov    -0x5e30(%rbp,%rax,8),%r8
ff
lea    0xc50(%rip),%rsi
lea    -0x40(%rbp),%r9
mov    $0x0,%al
call   1090 <sscanf@plt>
mov    -0xbc10(%rbp),%rdi
mov    -0x2c(%rbp),%esi
mov    -0xbbf8(%rbp),%rdx
call   1060 <fgets@plt>
mov    -0xbc10(%rbp),%rdi
movslq -0x24(%rbp),%rax
mov    -0x1fb0(%rbp,%rax,8),%rdx
ff
movslq -0x24(%rbp),%rax
mov    -0x3ef0(%rbp,%rax,8),%rcx
ff
movslq -0x24(%rbp),%rax
mov    -0x5e30(%rbp,%rax,8),%r8
ff
lea    0xbfd(%rip),%rsi
lea    -0x44(%rbp),%r9
mov    $0x0,%al
call   1090 <sscanf@plt>
mov    -0xbc10(%rbp),%rdi
mov    -0x2c(%rbp),%esi
mov    -0xbbf8(%rbp),%rdx
call   1060 <fgets@plt>
mov    -0xbc10(%rbp),%rdi
movslq -0x24(%rbp),%rax
mov    -0x1fb0(%rbp,%rax,8),%rdx
ff
movslq -0x24(%rbp),%rax
mov    -0x3ef0(%rbp,%rax,8),%rcx
ff
lea    0xbb9(%rip),%rsi
lea    -0x48(%rbp),%r8
mov    $0x0,%al
call   1090 <sscanf@plt>
movl   $0x0,-0x24(%rbp)
cmpl   $0x3e8,-0x24(%rbp)
jge    15a3 <main+0x423>
mov    -0xbc10(%rbp),%rdi
mov    -0x2c(%rbp),%esi
mov    -0xbc00(%rbp),%rdx
call   1060 <fgets@plt>
mov    -0xbc10(%rbp),%rdi
movslq -0x24(%rbp),%rax
mov    -0x1fb0(%rbp,%rax,8),%rdx
ff
movslq -0x24(%rbp),%rax
mov    -0x3ef0(%rbp,%rax,8),%rcx
ff
movslq -0x24(%rbp),%rax
mov    -0x5e30(%rbp,%rax,8),%r8
ff
movslq -0x24(%rbp),%rax
mov    -0x7d70(%rbp,%rax,8),%r15
ff
movslq -0x24(%rbp),%rax
mov    -0x9cb0(%rbp,%rax,8),%rbx
ff
movslq -0x24(%rbp),%rax
mov    -0xbbf0(%rbp,%rax,8),%r10
ff
lea    0xb04(%rip),%rsi
lea    -0x30(%rbp),%r9
lea    -0x34(%rbp),%r14
lea    -0x38(%rbp),%r11
lea    -0x3c(%rbp),%rax
sub    $0x30,%rsp
mov    %r15,(%rsp)
mov    %r14,0x8(%rsp)
mov    %rbx,0x10(%rsp)
mov    %r11,0x18(%rsp)
mov    %r10,0x20(%rsp)
mov    %rax,0x28(%rsp)
mov    $0x0,%al
call   1090 <sscanf@plt>
add    $0x30,%rsp
movslq -0x24(%rbp),%rax
mov    -0x5e30(%rbp,%rax,8),%rdi
ff
lea    0xad3(%rip),%rsi
mov    $0x8,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    1590 <main+0x410>
jmp    15a3 <main+0x423>
jmp    1595 <main+0x415>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    14af <main+0x32f>
mov    -0xbc10(%rbp),%rdi
movslq -0x24(%rbp),%rax
mov    -0x1fb0(%rbp,%rax,8),%rdx
ff
movslq -0x24(%rbp),%rax
mov    -0x3ef0(%rbp,%rax,8),%rcx
ff
movslq -0x24(%rbp),%rax
mov    -0x5e30(%rbp,%rax,8),%r8
ff
lea    0xa7e(%rip),%rsi
lea    -0x4c(%rbp),%r9
mov    $0x0,%al
call   1090 <sscanf@plt>
mov    -0xbc10(%rbp),%rdi
mov    -0x2c(%rbp),%esi
mov    -0xbc00(%rbp),%rdx
call   1060 <fgets@plt>
mov    -0xbc10(%rbp),%rdi
movslq -0x24(%rbp),%rax
mov    -0x1fb0(%rbp,%rax,8),%rdx
ff
movslq -0x24(%rbp),%rax
mov    -0x3ef0(%rbp,%rax,8),%rcx
ff
movslq -0x24(%rbp),%rax
mov    -0x5e30(%rbp,%rax,8),%r8
ff
lea    0xa2b(%rip),%rsi
lea    -0x50(%rbp),%r9
mov    $0x0,%al
call   1090 <sscanf@plt>
mov    -0xbc10(%rbp),%rdi
mov    -0x2c(%rbp),%esi
mov    -0xbc00(%rbp),%rdx
call   1060 <fgets@plt>
mov    -0xbc10(%rbp),%rdi
movslq -0x24(%rbp),%rax
mov    -0x1fb0(%rbp,%rax,8),%rdx
ff
movslq -0x24(%rbp),%rax
mov    -0x3ef0(%rbp,%rax,8),%rcx
ff
lea    0x9e7(%rip),%rsi
lea    -0x54(%rbp),%r8
mov    $0x0,%al
call   1090 <sscanf@plt>
mov    -0xbc08(%rbp),%rdi
movss  -0x44(%rbp),%xmm0
movss  -0x50(%rbp),%xmm1
movss  -0x40(%rbp),%xmm2
movss  -0x4c(%rbp),%xmm3
movss  -0x48(%rbp),%xmm4
movss  -0x54(%rbp),%xmm5
lea    0x9b9(%rip),%rsi
lea    0x9d4(%rip),%rax
sub    $0x10,%rsp
mov    %rax,%rdx
mov    %rax,%rcx
mov    %rax,%r8
mov    %rax,%r9
mov    %rax,(%rsp)
call   1070 <fprintf@plt>
add    $0x10,%rsp
movl   $0x0,-0x20(%rbp)
cmpl   $0x3e8,-0x20(%rbp)
jge    1752 <main+0x5d2>
movslq -0x20(%rbp),%rax
mov    -0x1fb0(%rbp,%rax,8),%rdi
ff
call   1030 <free@plt>
movslq -0x20(%rbp),%rax
mov    -0x3ef0(%rbp,%rax,8),%rdi
ff
call   1030 <free@plt>
movslq -0x20(%rbp),%rax
mov    -0x5e30(%rbp,%rax,8),%rdi
ff
call   1030 <free@plt>
movslq -0x20(%rbp),%rax
mov    -0x7d70(%rbp,%rax,8),%rdi
ff
call   1030 <free@plt>
movslq -0x20(%rbp),%rax
mov    -0x9cb0(%rbp,%rax,8),%rdi
ff
call   1030 <free@plt>
movslq -0x20(%rbp),%rax
mov    -0xbbf0(%rbp,%rax,8),%rdi
ff
call   1030 <free@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    16d1 <main+0x551>
mov    -0xbbf8(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0xbc00(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0xbc08(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x60(%rbp),%rax
mov    %rax,%rsp
mov    -0x1c(%rbp),%eax
lea    -0x18(%rbp),%rsp
pop    %rbx
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    $0xbfc8,%rsp
mov    %rsp,0x48(%rsp)
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
mov    $0x3e8,%edi
call   1080 <malloc@plt>
mov    %rax,0x42c0(%rsp,%rbx,1)
mov    $0x3e8,%edi
call   1080 <malloc@plt>
mov    %rax,0x2380(%rsp,%rbx,1)
mov    $0x3e8,%edi
call   1080 <malloc@plt>
mov    %rax,0x440(%rsp,%rbx,1)
mov    $0x3e8,%edi
call   1080 <malloc@plt>
mov    %rax,0xa080(%rsp,%rbx,1)
mov    $0x3e8,%edi
call   1080 <malloc@plt>
mov    %rax,0x8140(%rsp,%rbx,1)
mov    $0x3e8,%edi
call   1080 <malloc@plt>
mov    %rax,0x6200(%rsp,%rbx,1)
add    $0x8,%rbx
cmp    $0x1f40,%rbx
jne    11a0 <main+0x20>
lea    0xde0(%rip),%rdi
lea    0xde8(%rip),%rbx
mov    %rbx,%rsi
call   10a0 <fopen@plt>
mov    %rax,0x10(%rsp)
lea    0xdd6(%rip),%rdi
mov    %rbx,%rsi
call   10a0 <fopen@plt>
mov    %rax,0x8(%rsp)
lea    0xdd0(%rip),%rdi
lea    0xdd4(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,0x40(%rsp)
lea    0x50(%rsp),%rbx
lea    0x3c(%rsp),%r13
lea    0xdd9(%rip),%r15
xor    %r12d,%r12d
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %rbx,%rdi
mov    $0x3e8,%esi
mov    0x10(%rsp),%rdx
call   1060 <fgets@plt>
mov    0x42c0(%rsp,%r12,8),%rdx
mov    0x2380(%rsp,%r12,8),%rcx
mov    0x440(%rsp,%r12,8),%r14
mov    %rbx,%rdi
lea    0xd78(%rip),%rsi
mov    %r14,%r8
mov    %r13,%r9
xor    %eax,%eax
lea    0x30(%rsp),%rbp
push   %rbp
push   0x6208(%rsp,%r12,8)
lea    0x44(%rsp),%rbp
push   %rbp
push   0x8158(%rsp,%r12,8)
lea    0x58(%rsp),%rbp
push   %rbp
push   0xa0a8(%rsp,%r12,8)
call   1090 <sscanf@plt>
add    $0x30,%rsp
mov    %r14,%rdi
mov    %r15,%rsi
mov    $0x8,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     131b <main+0x19b>
add    $0x1,%r12
cmp    $0x3e8,%r12
jne    1280 <main+0x100>
mov    $0x3e8,%r12d
mov    %r12d,%eax
shl    $0x3,%rax
mov    0x42c0(%rsp,%rax,1),%rbp
mov    0x2380(%rsp,%rax,1),%r15
mov    0x440(%rsp,%rax,1),%r14
lea    0xd12(%rip),%r13
lea    0x50(%rsp),%r12
lea    0x2c(%rsp),%r9
mov    %r12,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
mov    %r15,%rcx
mov    %r14,%r8
xor    %eax,%eax
call   1090 <sscanf@plt>
mov    %r12,%rdi
mov    $0x3e8,%esi
mov    0x10(%rsp),%rbx
mov    %rbx,%rdx
call   1060 <fgets@plt>
lea    0x28(%rsp),%r9
mov    %r12,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
mov    %r15,%rcx
mov    %r14,%r8
xor    %eax,%eax
call   1090 <sscanf@plt>
mov    %r12,%rdi
mov    $0x3e8,%esi
mov    %rbx,%rdx
call   1060 <fgets@plt>
lea    0xcae(%rip),%rsi
lea    0x24(%rsp),%r8
mov    %r12,%rdi
mov    %rbp,%rdx
mov    %r15,%rcx
xor    %eax,%eax
call   1090 <sscanf@plt>
lea    0x3c(%rsp),%r15
lea    0xc81(%rip),%r14
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
mov    %r12,%rdi
mov    $0x3e8,%esi
mov    0x8(%rsp),%rdx
call   1060 <fgets@plt>
mov    0x42c0(%rsp,%rbx,8),%rdx
mov    0x2380(%rsp,%rbx,8),%rcx
mov    0x440(%rsp,%rbx,8),%r13
mov    %r12,%rdi
lea    0xc28(%rip),%rsi
mov    %r13,%r8
mov    %r15,%r9
xor    %eax,%eax
lea    0x30(%rsp),%rbp
push   %rbp
push   0x6208(%rsp,%rbx,8)
lea    0x44(%rsp),%rbp
push   %rbp
push   0x8158(%rsp,%rbx,8)
lea    0x58(%rsp),%rbp
push   %rbp
push   0xa0a8(%rsp,%rbx,8)
call   1090 <sscanf@plt>
add    $0x30,%rsp
mov    %r13,%rdi
mov    %r14,%rsi
mov    $0x8,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     1467 <main+0x2e7>
add    $0x1,%rbx
cmp    $0x3e8,%rbx
jne    13d0 <main+0x250>
mov    $0x3e8,%ebx
mov    %ebx,%eax
shl    $0x3,%rax
mov    0x42c0(%rsp,%rax,1),%r12
mov    0x2380(%rsp,%rax,1),%rbp
mov    0x440(%rsp,%rax,1),%r14
lea    0xbc7(%rip),%rsi
xor    %ebx,%ebx
lea    0x50(%rsp),%r15
lea    0x20(%rsp),%r9
mov    %r15,%rdi
mov    %r12,%rdx
mov    %rbp,%rcx
mov    %r14,%r8
xor    %eax,%eax
call   1090 <sscanf@plt>
mov    %r15,%rdi
mov    $0x3e8,%esi
mov    0x8(%rsp),%r13
mov    %r13,%rdx
call   1060 <fgets@plt>
lea    0x1c(%rsp),%r9
mov    %r15,%rdi
lea    0xb84(%rip),%rsi
mov    %r12,%rdx
mov    %rbp,%rcx
mov    %r14,%r8
xor    %eax,%eax
call   1090 <sscanf@plt>
mov    %r15,%rdi
mov    $0x3e8,%esi
mov    %r13,%rdx
call   1060 <fgets@plt>
lea    0xb60(%rip),%rsi
lea    0x18(%rsp),%r8
mov    %r15,%rdi
mov    %r12,%rdx
mov    %rbp,%rcx
xor    %eax,%eax
call   1090 <sscanf@plt>
movss  0x28(%rsp),%xmm0
movss  0x1c(%rsp),%xmm1
movss  0x2c(%rsp),%xmm2
movss  0x20(%rsp),%xmm3
movss  0x24(%rsp),%xmm4
movss  0x18(%rsp),%xmm5
sub    $0x8,%rsp
lea    0xb47(%rip),%rcx
lea    0xb1e(%rip),%rsi
mov    0x48(%rsp),%rbp
mov    %rbp,%rdi
mov    %rcx,%rdx
mov    %rcx,%r8
mov    %rcx,%r9
push   %rcx
call   1070 <fprintf@plt>
add    $0x10,%rsp
nopl   0x0(%rax)
mov    0x42c0(%rsp,%rbx,1),%rdi
call   1030 <free@plt>
mov    0x2380(%rsp,%rbx,1),%rdi
call   1030 <free@plt>
mov    0x440(%rsp,%rbx,1),%rdi
call   1030 <free@plt>
mov    0xa080(%rsp,%rbx,1),%rdi
call   1030 <free@plt>
mov    0x8140(%rsp,%rbx,1),%rdi
call   1030 <free@plt>
mov    0x6200(%rsp,%rbx,1),%rdi
call   1030 <free@plt>
add    $0x8,%rbx
cmp    $0x1f40,%rbx
jne    1560 <main+0x3e0>
mov    0x10(%rsp),%rdi
call   1050 <fclose@plt>
mov    0x8(%rsp),%rdi
call   1050 <fclose@plt>
mov    %rbp,%rdi
call   1050 <fclose@plt>
mov    0x48(%rsp),%rsp
xor    %eax,%eax
add    $0xbfc8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [15 x i8] c"before_opt.txt\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [14 x i8] c"after_opt.txt\00"
@.str.3 = [11 x i8] c"energy.txt\00"
@.str.4 = [2 x i8] c"w\00"
@.str.5 = [30 x i8] c"%s %s %s %i %s %f %s %f %s %f\00"
@.str.6 = [9 x i8] c"internal\00"
@.str.7 = [12 x i8] c"%s %s %s %f\00"
@.str.8 = [9 x i8] c"%s %s %f\00"
@.str.9 = [34 x i8] c" %f %s %f %s %f %s %f %s %f %s %f\00"
@.str.10 = [2 x i8] c":\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
%12 = alloca float
%13 = alloca float
%14 = alloca float
%15 = alloca float
%16 = alloca i8*
%17 = alloca i64
%18 = alloca [1000 x i8*]
%19 = alloca [1000 x i8*]
%20 = alloca [1000 x i8*]
%21 = alloca [1000 x i8*]
%22 = alloca [1000 x i8*]
%23 = alloca [1000 x i8*]
%24 = alloca i32*
%25 = alloca i32*
%26 = alloca i32*
store i32 0, i32* %1
store i32 0, i32* %2
store i32 0, i32* %3
store i32 0, i32* %4
store i32 1000, i32* %5
%27 = load i32, i32* %5
%28 = zext i32 %27 to i64
%29 = call i8* @llvm.stacksave()
store i8* %29, i8** %16
%30 = alloca i8, i64 %28
store i64 %28, i64* %17
store i32 0, i32* %2
br label %31
31: ; preds = %71, %0
%32 = load i32, i32* %2
%33 = icmp slt i32 %32, 1000
br i1 %33, label %34, label %74
34: ; preds = %31
%35 = load i32, i32* %5
%36 = call i64 @malloc(i32 %35)
%37 = inttoptr i64 %36 to i8*
%38 = load i32, i32* %2
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %18, i64 0, i64 %39
store i8* %37, i8** %40
%41 = load i32, i32* %5
%42 = call i64 @malloc(i32 %41)
%43 = inttoptr i64 %42 to i8*
%44 = load i32, i32* %2
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %19, i64 0, i64 %45
store i8* %43, i8** %46
%47 = load i32, i32* %5
%48 = call i64 @malloc(i32 %47)
%49 = inttoptr i64 %48 to i8*
%50 = load i32, i32* %2
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %20, i64 0, i64 %51
store i8* %49, i8** %52
%53 = load i32, i32* %5
%54 = call i64 @malloc(i32 %53)
%55 = inttoptr i64 %54 to i8*
%56 = load i32, i32* %2
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %21, i64 0, i64 %57
store i8* %55, i8** %58
%59 = load i32, i32* %5
%60 = call i64 @malloc(i32 %59)
%61 = inttoptr i64 %60 to i8*
%62 = load i32, i32* %2
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %22, i64 0, i64 %63
store i8* %61, i8** %64
%65 = load i32, i32* %5
%66 = call i64 @malloc(i32 %65)
%67 = inttoptr i64 %66 to i8*
%68 = load i32, i32* %2
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %23, i64 0, i64 %69
store i8* %67, i8** %70
br label %71
71: ; preds = %34
%72 = load i32, i32* %2
%73 = add nsw i32 %72, 1
store i32 %73, i32* %2
br label %31
74: ; preds = %31
%75 = call i32* @fopen(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %75, i32** %24
%76 = call i32* @fopen(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %76, i32** %25
%77 = call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i32* %77, i32** %26
store i32 0, i32* %3
br label %78
78: ; preds = %118, %74
%79 = load i32, i32* %3
%80 = icmp slt i32 %79, 1000
br i1 %80, label %81, label %121
81: ; preds = %78
%82 = load i32, i32* %5
%83 = load i32*, i32** %24
%84 = call i32 @fgets(i8* %30, i32 %82, i32* %83)
%85 = load i32, i32* %3
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %18, i64 0, i64 %86
%88 = load i8*, i8** %87
%89 = load i32, i32* %3
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %19, i64 0, i64 %90
%92 = load i8*, i8** %91
%93 = load i32, i32* %3
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %20, i64 0, i64 %94
%96 = load i8*, i8** %95
%97 = load i32, i32* %3
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %21, i64 0, i64 %98
%100 = load i8*, i8** %99
%101 = load i32, i32* %3
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %22, i64 0, i64 %102
%104 = load i8*, i8** %103
%105 = load i32, i32* %3
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %23, i64 0, i64 %106
%108 = load i8*, i8** %107
%109 = call i32 (i8*, i8*, i8*, i8*, ...) @sscanf(i8* %30, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i8* %88, i8* %92, i8* %96, i32* %6, i8* %100, float* %7, i8* %104, float* %8, i8* %108, float* %9)
%110 = load i32, i32* %3
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %20, i64 0, i64 %111
%113 = load i8*, i8** %112
%114 = call i64 @strncmp(i8* %113, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i32 8)
%115 = icmp eq i64 %114, 0
br i1 %115, label %116, label %117
116: ; preds = %81
br label %121
117: ; preds = %81
br label %118
118: ; preds = %117
%119 = load i32, i32* %3
%120 = add nsw i32 %119, 1
store i32 %120, i32* %3
br label %78
121: ; preds = %116, %78
%122 = load i32, i32* %3
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %18, i64 0, i64 %123
%125 = load i8*, i8** %124
%126 = load i32, i32* %3
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %19, i64 0, i64 %127
%129 = load i8*, i8** %128
%130 = load i32, i32* %3
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %20, i64 0, i64 %131
%133 = load i8*, i8** %132
%134 = call i32 (i8*, i8*, i8*, i8*, ...) @sscanf(i8* %30, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i8* %125, i8* %129, i8* %133, float* %10)
%135 = load i32, i32* %5
%136 = load i32*, i32** %24
%137 = call i32 @fgets(i8* %30, i32 %135, i32* %136)
%138 = load i32, i32* %3
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %18, i64 0, i64 %139
%141 = load i8*, i8** %140
%142 = load i32, i32* %3
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %19, i64 0, i64 %143
%145 = load i8*, i8** %144
%146 = load i32, i32* %3
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %20, i64 0, i64 %147
%149 = load i8*, i8** %148
%150 = call i32 (i8*, i8*, i8*, i8*, ...) @sscanf(i8* %30, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i8* %141, i8* %145, i8* %149, float* %11)
%151 = load i32, i32* %5
%152 = load i32*, i32** %24
%153 = call i32 @fgets(i8* %30, i32 %151, i32* %152)
%154 = load i32, i32* %3
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %18, i64 0, i64 %155
%157 = load i8*, i8** %156
%158 = load i32, i32* %3
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %19, i64 0, i64 %159
%161 = load i8*, i8** %160
%162 = call i32 (i8*, i8*, i8*, i8*, ...) @sscanf(i8* %30, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i8* %157, i8* %161, float* %12)
store i32 0, i32* %3
br label %163
163: ; preds = %203, %121
%164 = load i32, i32* %3
%165 = icmp slt i32 %164, 1000
br i1 %165, label %166, label %206
166: ; preds = %163
%167 = load i32, i32* %5
%168 = load i32*, i32** %25
%169 = call i32 @fgets(i8* %30, i32 %167, i32* %168)
%170 = load i32, i32* %3
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %18, i64 0, i64 %171
%173 = load i8*, i8** %172
%174 = load i32, i32* %3
%175 = sext i32 %174 to i64
%176 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %19, i64 0, i64 %175
%177 = load i8*, i8** %176
%178 = load i32, i32* %3
%179 = sext i32 %178 to i64
%180 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %20, i64 0, i64 %179
%181 = load i8*, i8** %180
%182 = load i32, i32* %3
%183 = sext i32 %182 to i64
%184 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %21, i64 0, i64 %183
%185 = load i8*, i8** %184
%186 = load i32, i32* %3
%187 = sext i32 %186 to i64
%188 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %22, i64 0, i64 %187
%189 = load i8*, i8** %188
%190 = load i32, i32* %3
%191 = sext i32 %190 to i64
%192 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %23, i64 0, i64 %191
%193 = load i8*, i8** %192
%194 = call i32 (i8*, i8*, i8*, i8*, ...) @sscanf(i8* %30, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i8* %173, i8* %177, i8* %181, i32* %6, i8* %185, float* %7, i8* %189, float* %8, i8* %193, float* %9)
%195 = load i32, i32* %3
%196 = sext i32 %195 to i64
%197 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %20, i64 0, i64 %196
%198 = load i8*, i8** %197
%199 = call i64 @strncmp(i8* %198, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i32 8)
%200 = icmp eq i64 %199, 0
br i1 %200, label %201, label %202
201: ; preds = %166
br label %206
202: ; preds = %166
br label %203
203: ; preds = %202
%204 = load i32, i32* %3
%205 = add nsw i32 %204, 1
store i32 %205, i32* %3
br label %163
206: ; preds = %201, %163
%207 = load i32, i32* %3
%208 = sext i32 %207 to i64
%209 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %18, i64 0, i64 %208
%210 = load i8*, i8** %209
%211 = load i32, i32* %3
%212 = sext i32 %211 to i64
%213 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %19, i64 0, i64 %212
%214 = load i8*, i8** %213
%215 = load i32, i32* %3
%216 = sext i32 %215 to i64
%217 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %20, i64 0, i64 %216
%218 = load i8*, i8** %217
%219 = call i32 (i8*, i8*, i8*, i8*, ...) @sscanf(i8* %30, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i8* %210, i8* %214, i8* %218, float* %13)
%220 = load i32, i32* %5
%221 = load i32*, i32** %25
%222 = call i32 @fgets(i8* %30, i32 %220, i32* %221)
%223 = load i32, i32* %3
%224 = sext i32 %223 to i64
%225 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %18, i64 0, i64 %224
%226 = load i8*, i8** %225
%227 = load i32, i32* %3
%228 = sext i32 %227 to i64
%229 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %19, i64 0, i64 %228
%230 = load i8*, i8** %229
%231 = load i32, i32* %3
%232 = sext i32 %231 to i64
%233 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %20, i64 0, i64 %232
%234 = load i8*, i8** %233
%235 = call i32 (i8*, i8*, i8*, i8*, ...) @sscanf(i8* %30, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i8* %226, i8* %230, i8* %234, float* %14)
%236 = load i32, i32* %5
%237 = load i32*, i32** %25
%238 = call i32 @fgets(i8* %30, i32 %236, i32* %237)
%239 = load i32, i32* %3
%240 = sext i32 %239 to i64
%241 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %18, i64 0, i64 %240
%242 = load i8*, i8** %241
%243 = load i32, i32* %3
%244 = sext i32 %243 to i64
%245 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %19, i64 0, i64 %244
%246 = load i8*, i8** %245
%247 = call i32 (i8*, i8*, i8*, i8*, ...) @sscanf(i8* %30, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i8* %242, i8* %246, float* %15)
%248 = load i32*, i32** %26
%249 = load float, float* %11
%250 = load float, float* %14
%251 = load float, float* %10
%252 = load float, float* %13
%253 = load float, float* %12
%254 = load float, float* %15
%255 = call i32 @fprintf(i32* %248, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.9, i64 0, i64 0), float %249, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0), float %250, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0), float %251, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0), float %252, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0), float %253, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0), float %254)
store i32 0, i32* %2
br label %256
256: ; preds = %290, %206
%257 = load i32, i32* %2
%258 = icmp slt i32 %257, 1000
br i1 %258, label %259, label %293
259: ; preds = %256
%260 = load i32, i32* %2
%261 = sext i32 %260 to i64
%262 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %18, i64 0, i64 %261
%263 = load i8*, i8** %262
%264 = call i32 @free(i8* %263)
%265 = load i32, i32* %2
%266 = sext i32 %265 to i64
%267 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %19, i64 0, i64 %266
%268 = load i8*, i8** %267
%269 = call i32 @free(i8* %268)
%270 = load i32, i32* %2
%271 = sext i32 %270 to i64
%272 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %20, i64 0, i64 %271
%273 = load i8*, i8** %272
%274 = call i32 @free(i8* %273)
%275 = load i32, i32* %2
%276 = sext i32 %275 to i64
%277 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %21, i64 0, i64 %276
%278 = load i8*, i8** %277
%279 = call i32 @free(i8* %278)
%280 = load i32, i32* %2
%281 = sext i32 %280 to i64
%282 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %22, i64 0, i64 %281
%283 = load i8*, i8** %282
%284 = call i32 @free(i8* %283)
%285 = load i32, i32* %2
%286 = sext i32 %285 to i64
%287 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %23, i64 0, i64 %286
%288 = load i8*, i8** %287
%289 = call i32 @free(i8* %288)
br label %290
290: ; preds = %259
%291 = load i32, i32* %2
%292 = add nsw i32 %291, 1
store i32 %292, i32* %2
br label %256
293: ; preds = %256
%294 = load i32*, i32** %24
%295 = call i32 @fclose(i32* %294)
%296 = load i32*, i32** %25
%297 = call i32 @fclose(i32* %296)
%298 = load i32*, i32** %26
%299 = call i32 @fclose(i32* %298)
%300 = load i8*, i8** %16
%301 = load i32, i32* %1
ret i32 %301
}

LLVM IR (-O2):
@.str = [15 x i8] c"before_opt.txt\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [14 x i8] c"after_opt.txt\00"
@.str.3 = [11 x i8] c"energy.txt\00"
@.str.4 = [2 x i8] c"w\00"
@.str.5 = [30 x i8] c"%s %s %s %i %s %f %s %f %s %f\00"
@.str.6 = [9 x i8] c"internal\00"
@.str.7 = [12 x i8] c"%s %s %s %f\00"
@.str.8 = [9 x i8] c"%s %s %f\00"
@.str.9 = [34 x i8] c" %f %s %f %s %f %s %f %s %f %s %f\00"
@.str.10 = [2 x i8] c":\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca [1000 x i8*]
%12 = alloca [1000 x i8*]
%13 = alloca [1000 x i8*]
%14 = alloca [1000 x i8*]
%15 = alloca [1000 x i8*]
%16 = alloca [1000 x i8*]
%17 = bitcast i32* %1 to i8*
%18 = bitcast float* %2 to i8*
%19 = bitcast float* %3 to i8*
%20 = bitcast float* %4 to i8*
%21 = bitcast float* %5 to i8*
%22 = bitcast float* %6 to i8*
%23 = bitcast float* %7 to i8*
%24 = bitcast float* %8 to i8*
%25 = bitcast float* %9 to i8*
%26 = bitcast float* %10 to i8*
%27 = tail call i8* @llvm.stacksave()
%28 = alloca [1000 x i8]
%29 = bitcast [1000 x i8*]* %11 to i8*
%30 = bitcast [1000 x i8*]* %12 to i8*
%31 = bitcast [1000 x i8*]* %13 to i8*
%32 = bitcast [1000 x i8*]* %14 to i8*
%33 = bitcast [1000 x i8*]* %15 to i8*
%34 = bitcast [1000 x i8*]* %16 to i8*
br label %35
35: ; preds = %0, %35
%36 = phi i64 [ 0, %0 ], [ %55, %35 ]
%37 = tail call i64 @malloc(i32 1000)
%38 = inttoptr i64 %37 to i8*
%39 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %11, i64 0, i64 %36
store i8* %38, i8** %39
%40 = tail call i64 @malloc(i32 1000)
%41 = inttoptr i64 %40 to i8*
%42 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %12, i64 0, i64 %36
store i8* %41, i8** %42
%43 = tail call i64 @malloc(i32 1000)
%44 = inttoptr i64 %43 to i8*
%45 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %13, i64 0, i64 %36
store i8* %44, i8** %45
%46 = tail call i64 @malloc(i32 1000)
%47 = inttoptr i64 %46 to i8*
%48 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %14, i64 0, i64 %36
store i8* %47, i8** %48
%49 = tail call i64 @malloc(i32 1000)
%50 = inttoptr i64 %49 to i8*
%51 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %15, i64 0, i64 %36
store i8* %50, i8** %51
%52 = tail call i64 @malloc(i32 1000)
%53 = inttoptr i64 %52 to i8*
%54 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %16, i64 0, i64 %36
store i8* %53, i8** %54
%55 = add nuw nsw i64 %36, 1
%56 = icmp eq i64 %55, 1000
br i1 %56, label %57, label %35
57: ; preds = %35
%58 = getelementptr inbounds [1000 x i8], [1000 x i8]* %28, i64 0, i64 0
%59 = tail call i32* @fopen(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%60 = tail call i32* @fopen(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%61 = tail call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %62
62: ; preds = %57, %80
%63 = phi i64 [ 0, %57 ], [ %81, %80 ]
%64 = call i32 @fgets(i8* %58, i32 1000, i32* %59)
%65 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %11, i64 0, i64 %63
%66 = load i8*, i8** %65
%67 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %12, i64 0, i64 %63
%68 = load i8*, i8** %67
%69 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %13, i64 0, i64 %63
%70 = load i8*, i8** %69
%71 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %14, i64 0, i64 %63
%72 = load i8*, i8** %71
%73 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %15, i64 0, i64 %63
%74 = load i8*, i8** %73
%75 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %16, i64 0, i64 %63
%76 = load i8*, i8** %75
%77 = call i32 (i8*, i8*, i8*, i8*, ...) @sscanf(i8* %58, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i8* %66, i8* %68, i8* %70, i32* %1, i8* %72, float* %2, i8* %74, float* %3, i8* %76, float* %4)
%78 = call i64 @strncmp(i8* %70, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i32 8)
%79 = icmp eq i64 %78, 0
br i1 %79, label %83, label %80
80: ; preds = %62
%81 = add nuw nsw i64 %63, 1
%82 = icmp eq i64 %81, 1000
br i1 %82, label %83, label %62
83: ; preds = %62, %80
%84 = phi i64 [ %63, %62 ], [ 1000, %80 ]
%85 = and i64 %84, 4294967295
%86 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %11, i64 0, i64 %85
%87 = load i8*, i8** %86
%88 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %12, i64 0, i64 %85
%89 = load i8*, i8** %88
%90 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %13, i64 0, i64 %85
%91 = load i8*, i8** %90
%92 = call i32 (i8*, i8*, i8*, i8*, ...) @sscanf(i8* %58, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i8* %87, i8* %89, i8* %91, float* %5)
%93 = call i32 @fgets(i8* %58, i32 1000, i32* %59)
%94 = call i32 (i8*, i8*, i8*, i8*, ...) @sscanf(i8* %58, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i8* %87, i8* %89, i8* %91, float* %6)
%95 = call i32 @fgets(i8* %58, i32 1000, i32* %59)
%96 = call i32 (i8*, i8*, i8*, i8*, ...) @sscanf(i8* %58, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i8* %87, i8* %89, float* %7)
br label %97
97: ; preds = %83, %115
%98 = phi i64 [ 0, %83 ], [ %116, %115 ]
%99 = call i32 @fgets(i8* %58, i32 1000, i32* %60)
%100 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %11, i64 0, i64 %98
%101 = load i8*, i8** %100
%102 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %12, i64 0, i64 %98
%103 = load i8*, i8** %102
%104 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %13, i64 0, i64 %98
%105 = load i8*, i8** %104
%106 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %14, i64 0, i64 %98
%107 = load i8*, i8** %106
%108 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %15, i64 0, i64 %98
%109 = load i8*, i8** %108
%110 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %16, i64 0, i64 %98
%111 = load i8*, i8** %110
%112 = call i32 (i8*, i8*, i8*, i8*, ...) @sscanf(i8* %58, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i8* %101, i8* %103, i8* %105, i32* %1, i8* %107, float* %2, i8* %109, float* %3, i8* %111, float* %4)
%113 = call i64 @strncmp(i8* %105, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i32 8)
%114 = icmp eq i64 %113, 0
br i1 %114, label %118, label %115
115: ; preds = %97
%116 = add nuw nsw i64 %98, 1
%117 = icmp eq i64 %116, 1000
br i1 %117, label %118, label %97
118: ; preds = %97, %115
%119 = phi i64 [ %98, %97 ], [ 1000, %115 ]
%120 = and i64 %119, 4294967295
%121 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %11, i64 0, i64 %120
%122 = load i8*, i8** %121
%123 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %12, i64 0, i64 %120
%124 = load i8*, i8** %123
%125 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %13, i64 0, i64 %120
%126 = load i8*, i8** %125
%127 = call i32 (i8*, i8*, i8*, i8*, ...) @sscanf(i8* %58, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i8* %122, i8* %124, i8* %126, float* %8)
%128 = call i32 @fgets(i8* %58, i32 1000, i32* %60)
%129 = call i32 (i8*, i8*, i8*, i8*, ...) @sscanf(i8* %58, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i8* %122, i8* %124, i8* %126, float* %9)
%130 = call i32 @fgets(i8* %58, i32 1000, i32* %60)
%131 = call i32 (i8*, i8*, i8*, i8*, ...) @sscanf(i8* %58, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i8* %122, i8* %124, float* %10)
%132 = load float, float* %6
%133 = load float, float* %9
%134 = load float, float* %5
%135 = load float, float* %8
%136 = load float, float* %7
%137 = load float, float* %10
%138 = call i32 @fprintf(i32* %61, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.9, i64 0, i64 0), float %132, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0), float %133, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0), float %134, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0), float %135, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0), float %136, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0), float %137)
br label %139
139: ; preds = %118, %139
%140 = phi i64 [ 0, %118 ], [ %159, %139 ]
%141 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %11, i64 0, i64 %140
%142 = load i8*, i8** %141
%143 = call i32 @free(i8* %142)
%144 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %12, i64 0, i64 %140
%145 = load i8*, i8** %144
%146 = call i32 @free(i8* %145)
%147 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %13, i64 0, i64 %140
%148 = load i8*, i8** %147
%149 = call i32 @free(i8* %148)
%150 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %14, i64 0, i64 %140
%151 = load i8*, i8** %150
%152 = call i32 @free(i8* %151)
%153 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %15, i64 0, i64 %140
%154 = load i8*, i8** %153
%155 = call i32 @free(i8* %154)
%156 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %16, i64 0, i64 %140
%157 = load i8*, i8** %156
%158 = call i32 @free(i8* %157)
%159 = add nuw nsw i64 %140, 1
%160 = icmp eq i64 %159, 1000
br i1 %160, label %161, label %139
161: ; preds = %139
%162 = call i32 @fclose(i32* %59)
%163 = call i32 @fclose(i32* %60)
%164 = call i32 @fclose(i32* %61)
ret i32 0
}