#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 *, char *, int, int,
                           char *);
int /*<<< orphan*/ free(char *);
scalar_t__ malloc(int);
int /*<<< orphan*/ sscanf(char *, char *, char *, ...);
int /*<<< orphan*/ strcmp(char *, char *);
scalar_t__ strncmp(char *, char *, int);
main() {
  int i = 0, j = 0, line_length = 1000, res_atom_number = 0;
  float coordx, coordy, coordz, numb1, numb2, numb3, numb4;
  char buffer[line_length], word[15], *name[400000];
  for (j = 0; j < 400000; j++)
    name[j] = (char *)malloc(15);
  FILE *protein, *numb_inact, *fopen();
  protein = fopen("protein.ammp", "r");
  numb_inact = fopen("inactive.ammp", "w");
  while (strncmp(word, "bond", 4)) {
    fgets(buffer, line_length, protein);
    sscanf(buffer, "%s", word);
    if (!strncmp(word, "mompar", 6)) {
      fgets(buffer, line_length, protein);
      sscanf(buffer, "%s", word);
    }
    if (!strncmp(word, "atom", 4)) {
      sscanf(buffer, "%s %f %f %f %i %s %f %f %f %f", word, &coordx, &coordy,
             &coordz, &res_atom_number, name[i], &numb1, &numb2, &numb3,
             &numb4);
      if (!strcmp(&name[i][4], "n") && !strcmp(&name[i][5], "")) {
        fprintf(numb_inact, "%s %i %i%s\n", "inactive", res_atom_number,
                res_atom_number, ";");
        continue;
      }
      if (!strcmp(&name[i][4], "ca") && !strcmp(&name[i][6], "")) {
        fprintf(numb_inact, "%s %i %i%s\n", "inactive", res_atom_number,
                res_atom_number, ";");
        continue;
      }
      if (!strcmp(&name[i][4], "c") && !strcmp(&name[i][5], "")) {
        fprintf(numb_inact, "%s %i %i%s\n", "inactive", res_atom_number,
                res_atom_number, ";");
        continue;
      }
      if (!strcmp(&name[i][4], "o") && !strcmp(&name[i][5], "")) {
        fprintf(numb_inact, "%s %i %i%s\n", "inactive", res_atom_number,
                res_atom_number, ";");
        continue;
      }
      if (!strcmp(&name[i][4], "h") && !strcmp(&name[i][5], "")) {
        fprintf(numb_inact, "%s %i %i%s\n", "inactive", res_atom_number,
                res_atom_number, ";");
        continue;
      }
      if (!strcmp(&name[i][4], "ha") && !strcmp(&name[i][6], "")) {
        fprintf(numb_inact, "%s %i %i%s\n", "inactive", res_atom_number,
                res_atom_number, ";");
        continue;
      }
      if (!strcmp(&name[i][4], "1ha") && !strcmp(&name[i][7], "")) {
        fprintf(numb_inact, "%s %i %i%s\n", "inactive", res_atom_number,
                res_atom_number, ";");
        continue;
      }
      if (!strcmp(&name[i][4], "2ha") && !strcmp(&name[i][7], "")) {
        fprintf(numb_inact, "%s %i %i%s\n", "inactive", res_atom_number,
                res_atom_number, ";");
        continue;
      }
    }
  }
  for (i = 0; i < 400000; ++i)
    free(name[i]);
  fclose(protein);
  fclose(numb_inact);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %rbx
sub    $0x30d478,%rsp
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x3e8,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x28(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x50(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x30d488(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x58(%rbp)
movl   $0x0,-0x24(%rbp)
cmpl   $0x61a80,-0x24(%rbp)
jge    1227 <main+0x97>
mov    $0xf,%edi
call   1090 <malloc@plt>
mov    %rax,%rcx
movslq -0x24(%rbp),%rax
mov    %rcx,-0x30d470(%rbp,%rax,8)
ff
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11f3 <main+0x63>
lea    0xdd2(%rip),%rdi
lea    0xdf5(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0x30d478(%rbp)
lea    0xdc5(%rip),%rdi
lea    0xdcc(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0x30d480(%rbp)
lea    -0x67(%rbp),%rdi
lea    0xdb7(%rip),%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
je     1742 <main+0x5b2>
mov    -0x30d488(%rbp),%rdi
mov    -0x28(%rbp),%esi
mov    -0x30d478(%rbp),%rdx
call   1060 <fgets@plt>
mov    -0x30d488(%rbp),%rdi
lea    -0x67(%rbp),%rdx
lea    0xd80(%rip),%rsi
mov    $0x0,%al
call   10a0 <sscanf@plt>
lea    -0x67(%rbp),%rdi
lea    0xd71(%rip),%rsi
mov    $0x6,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    12f7 <main+0x167>
mov    -0x30d488(%rbp),%rdi
mov    -0x28(%rbp),%esi
mov    -0x30d478(%rbp),%rdx
call   1060 <fgets@plt>
mov    -0x30d488(%rbp),%rdi
lea    -0x67(%rbp),%rdx
lea    0xd32(%rip),%rsi
mov    $0x0,%al
call   10a0 <sscanf@plt>
lea    -0x67(%rbp),%rdi
lea    0xd2a(%rip),%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%rax
jne    173d <main+0x5ad>
mov    -0x30d488(%rbp),%rdi
lea    -0x67(%rbp),%rdx
movslq -0x20(%rbp),%rax
mov    -0x30d470(%rbp,%rax,8),%r14
ff
lea    0xcfd(%rip),%rsi
lea    -0x30(%rbp),%rcx
lea    -0x34(%rbp),%r8
lea    -0x38(%rbp),%r9
lea    -0x2c(%rbp),%r15
lea    -0x3c(%rbp),%rbx
lea    -0x40(%rbp),%r11
lea    -0x44(%rbp),%r10
lea    -0x48(%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   10a0 <sscanf@plt>
add    $0x30,%rsp
movslq -0x20(%rbp),%rax
mov    -0x30d470(%rbp,%rax,8),%rdi
ff
add    $0x4,%rdi
lea    0xcb8(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    13f7 <main+0x267>
movslq -0x20(%rbp),%rax
mov    -0x30d470(%rbp,%rax,8),%rdi
ff
add    $0x5,%rdi
lea    0xca0(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    13f7 <main+0x267>
mov    -0x30d480(%rbp),%rdi
mov    -0x2c(%rbp),%ecx
mov    -0x2c(%rbp),%r8d
lea    0xc72(%rip),%rsi
lea    0xc77(%rip),%rdx
lea    0xc79(%rip),%r9
call   1080 <fprintf@plt>
jmp    125b <main+0xcb>
movslq -0x20(%rbp),%rax
mov    -0x30d470(%rbp,%rax,8),%rdi
ff
add    $0x4,%rdi
lea    0xc5a(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    146e <main+0x2de>
movslq -0x20(%rbp),%rax
mov    -0x30d470(%rbp,%rax,8),%rdi
ff
add    $0x6,%rdi
lea    0xc29(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    146e <main+0x2de>
mov    -0x30d480(%rbp),%rdi
mov    -0x2c(%rbp),%ecx
mov    -0x2c(%rbp),%r8d
lea    0xbfb(%rip),%rsi
lea    0xc00(%rip),%rdx
lea    0xc02(%rip),%r9
call   1080 <fprintf@plt>
jmp    125b <main+0xcb>
movslq -0x20(%rbp),%rax
mov    -0x30d470(%rbp,%rax,8),%rdi
ff
add    $0x4,%rdi
lea    0xbe6(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    14e5 <main+0x355>
movslq -0x20(%rbp),%rax
mov    -0x30d470(%rbp,%rax,8),%rdi
ff
add    $0x5,%rdi
lea    0xbb2(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    14e5 <main+0x355>
mov    -0x30d480(%rbp),%rdi
mov    -0x2c(%rbp),%ecx
mov    -0x2c(%rbp),%r8d
lea    0xb84(%rip),%rsi
lea    0xb89(%rip),%rdx
lea    0xb8b(%rip),%r9
call   1080 <fprintf@plt>
jmp    125b <main+0xcb>
movslq -0x20(%rbp),%rax
mov    -0x30d470(%rbp,%rax,8),%rdi
ff
add    $0x4,%rdi
lea    0xb71(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    155c <main+0x3cc>
movslq -0x20(%rbp),%rax
mov    -0x30d470(%rbp,%rax,8),%rdi
ff
add    $0x5,%rdi
lea    0xb3b(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    155c <main+0x3cc>
mov    -0x30d480(%rbp),%rdi
mov    -0x2c(%rbp),%ecx
mov    -0x2c(%rbp),%r8d
lea    0xb0d(%rip),%rsi
lea    0xb12(%rip),%rdx
lea    0xb14(%rip),%r9
call   1080 <fprintf@plt>
jmp    125b <main+0xcb>
movslq -0x20(%rbp),%rax
mov    -0x30d470(%rbp,%rax,8),%rdi
ff
add    $0x4,%rdi
lea    0xafc(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    15d3 <main+0x443>
movslq -0x20(%rbp),%rax
mov    -0x30d470(%rbp,%rax,8),%rdi
ff
add    $0x5,%rdi
lea    0xac4(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    15d3 <main+0x443>
mov    -0x30d480(%rbp),%rdi
mov    -0x2c(%rbp),%ecx
mov    -0x2c(%rbp),%r8d
lea    0xa96(%rip),%rsi
lea    0xa9b(%rip),%rdx
lea    0xa9d(%rip),%r9
call   1080 <fprintf@plt>
jmp    125b <main+0xcb>
movslq -0x20(%rbp),%rax
mov    -0x30d470(%rbp,%rax,8),%rdi
ff
add    $0x4,%rdi
lea    0xa88(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    164a <main+0x4ba>
movslq -0x20(%rbp),%rax
mov    -0x30d470(%rbp,%rax,8),%rdi
ff
add    $0x6,%rdi
lea    0xa4d(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    164a <main+0x4ba>
mov    -0x30d480(%rbp),%rdi
mov    -0x2c(%rbp),%ecx
mov    -0x2c(%rbp),%r8d
lea    0xa1f(%rip),%rsi
lea    0xa24(%rip),%rdx
lea    0xa26(%rip),%r9
call   1080 <fprintf@plt>
jmp    125b <main+0xcb>
movslq -0x20(%rbp),%rax
mov    -0x30d470(%rbp,%rax,8),%rdi
ff
add    $0x4,%rdi
lea    0xa10(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    16c1 <main+0x531>
movslq -0x20(%rbp),%rax
mov    -0x30d470(%rbp,%rax,8),%rdi
ff
add    $0x7,%rdi
lea    0x9d6(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    16c1 <main+0x531>
mov    -0x30d480(%rbp),%rdi
mov    -0x2c(%rbp),%ecx
mov    -0x2c(%rbp),%r8d
lea    0x9a8(%rip),%rsi
lea    0x9ad(%rip),%rdx
lea    0x9af(%rip),%r9
call   1080 <fprintf@plt>
jmp    125b <main+0xcb>
movslq -0x20(%rbp),%rax
mov    -0x30d470(%rbp,%rax,8),%rdi
ff
add    $0x4,%rdi
lea    0x99d(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    1738 <main+0x5a8>
movslq -0x20(%rbp),%rax
mov    -0x30d470(%rbp,%rax,8),%rdi
ff
add    $0x7,%rdi
lea    0x95f(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    1738 <main+0x5a8>
mov    -0x30d480(%rbp),%rdi
mov    -0x2c(%rbp),%ecx
mov    -0x2c(%rbp),%r8d
lea    0x931(%rip),%rsi
lea    0x936(%rip),%rdx
lea    0x938(%rip),%r9
call   1080 <fprintf@plt>
jmp    125b <main+0xcb>
jmp    173d <main+0x5ad>
jmp    125b <main+0xcb>
movl   $0x0,-0x20(%rbp)
cmpl   $0x61a80,-0x20(%rbp)
jge    1775 <main+0x5e5>
movslq -0x20(%rbp),%rax
mov    -0x30d470(%rbp,%rax,8),%rdi
ff
call   1030 <free@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1749 <main+0x5b9>
mov    -0x30d478(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x30d480(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x50(%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    $0x30d858,%rsp
mov    %rsp,0x20(%rsp)
movl   $0x0,0x4(%rsp)
xor    %ebx,%ebx
mov    $0xf,%edi
call   1090 <malloc@plt>
mov    %rax,0x450(%rsp,%rbx,8)
add    $0x1,%rbx
cmp    $0x61a80,%rbx
jne    11b0 <main+0x20>
lea    0xe2a(%rip),%rdi
lea    0xe4d(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,%r14
lea    0xe21(%rip),%rdi
lea    0xe28(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,0x8(%rsp)
lea    0xe19(%rip),%rsi
lea    0x51(%rsp),%rdi
mov    $0x4,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     14d4 <main+0x344>
mov    0x450(%rsp),%rax
mov    %rax,0x10(%rsp)
add    $0x4,%rax
mov    %rax,0x28(%rsp)
lea    0x60(%rsp),%rbx
lea    0xde4(%rip),%r13
lea    0x51(%rsp),%r15
lea    0xdd3(%rip),%r12
mov    %r14,0x18(%rsp)
mov    0x28(%rsp),%rbp
jmp    12a9 <main+0x119>
mov    0x4(%rsp),%ecx
mov    0x8(%rsp),%rdi
lea    0xdeb(%rip),%rsi
lea    0xdf0(%rip),%rdx
mov    %ecx,%r8d
lea    0xdef(%rip),%r9
call   1080 <fprintf@plt>
mov    0x18(%rsp),%r14
lea    0x60(%rsp),%rbx
cs nopw 0x0(%rax,%rax,1)
mov    %r15,%rdi
mov    %r12,%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
je     14d4 <main+0x344>
mov    %rbx,%rdi
mov    $0x3e8,%esi
mov    %r14,%rdx
call   1060 <fgets@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   10a0 <sscanf@plt>
mov    %r15,%rdi
lea    0xd52(%rip),%rsi
mov    $0x6,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
jne    1302 <main+0x172>
mov    %rbx,%rdi
mov    $0x3e8,%esi
mov    %r14,%rdx
call   1060 <fgets@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   10a0 <sscanf@plt>
mov    %r15,%rdi
lea    0xd20(%rip),%rsi
mov    $0x4,%edx
call   1040 <strncmp@plt>
test   %rax,%rax
jne    1290 <main+0x100>
mov    %rbx,%rdi
lea    0xd08(%rip),%rsi
mov    %r15,%rdx
lea    0x4c(%rsp),%rcx
lea    0x48(%rsp),%r8
lea    0x44(%rsp),%r9
xor    %eax,%eax
lea    0x34(%rsp),%rbx
push   %rbx
lea    0x40(%rsp),%rbx
push   %rbx
lea    0x4c(%rsp),%rbx
push   %rbx
lea    0x58(%rsp),%rbx
push   %rbx
push   0x30(%rsp)
lea    0x2c(%rsp),%rbx
push   %rbx
call   10a0 <sscanf@plt>
add    $0x30,%rsp
mov    %rbp,%rdi
lea    0xcdd(%rip),%rsi
call   1070 <strcmp@plt>
test   %eax,%eax
jne    138a <main+0x1fa>
mov    0x10(%rsp),%rax
cmpb   $0x0,0x5(%rax)
je     1256 <main+0xc6>
mov    %rbp,%rdi
lea    0xcd4(%rip),%rsi
call   1070 <strcmp@plt>
test   %eax,%eax
jne    13ac <main+0x21c>
mov    0x10(%rsp),%rax
cmpb   $0x0,0x6(%rax)
je     1256 <main+0xc6>
mov    %rbp,%rdi
lea    0xcb5(%rip),%rsi
call   1070 <strcmp@plt>
test   %eax,%eax
jne    13ce <main+0x23e>
mov    0x10(%rsp),%rax
cmpb   $0x0,0x5(%rax)
je     1256 <main+0xc6>
mov    %rbp,%rdi
lea    0xc95(%rip),%rsi
call   1070 <strcmp@plt>
test   %eax,%eax
mov    0x18(%rsp),%r14
jne    13f5 <main+0x265>
mov    0x10(%rsp),%rax
cmpb   $0x0,0x5(%rax)
je     14a9 <main+0x319>
mov    %rbp,%rdi
lea    0xc70(%rip),%rsi
call   1070 <strcmp@plt>
test   %eax,%eax
jne    1417 <main+0x287>
mov    0x10(%rsp),%rax
cmpb   $0x0,0x5(%rax)
je     14a9 <main+0x319>
mov    %rbp,%rdi
lea    0xc51(%rip),%rsi
call   1070 <strcmp@plt>
test   %eax,%eax
lea    0x60(%rsp),%rbx
jne    143a <main+0x2aa>
mov    0x10(%rsp),%rax
cmpb   $0x0,0x6(%rax)
je     147e <main+0x2ee>
mov    %rbp,%rdi
lea    0xc2d(%rip),%rsi
call   1070 <strcmp@plt>
test   %eax,%eax
jne    1458 <main+0x2c8>
mov    0x10(%rsp),%rax
cmpb   $0x0,0x7(%rax)
je     147e <main+0x2ee>
mov    %rbp,%rdi
lea    0xc13(%rip),%rsi
call   1070 <strcmp@plt>
test   %eax,%eax
jne    1290 <main+0x100>
mov    0x10(%rsp),%rax
cmpb   $0x0,0x7(%rax)
jne    1290 <main+0x100>
mov    0x4(%rsp),%ecx
mov    0x8(%rsp),%rdi
lea    0xbc3(%rip),%rsi
lea    0xbc8(%rip),%rdx
mov    %ecx,%r8d
lea    0xbc7(%rip),%r9
call   1080 <fprintf@plt>
jmp    1290 <main+0x100>
mov    0x4(%rsp),%ecx
mov    0x8(%rsp),%rdi
lea    0xb98(%rip),%rsi
lea    0xb9d(%rip),%rdx
mov    %ecx,%r8d
lea    0xb9c(%rip),%r9
call   1080 <fprintf@plt>
jmp    1281 <main+0xf1>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
mov    0x450(%rsp,%rbx,8),%rdi
call   1030 <free@plt>
add    $0x1,%rbx
cmp    $0x61a80,%rbx
jne    14e0 <main+0x350>
mov    %r14,%rdi
call   1050 <fclose@plt>
mov    0x8(%rsp),%rdi
call   1050 <fclose@plt>
mov    0x20(%rsp),%rsp
xor    %eax,%eax
add    $0x30d858,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [13 x i8] c"protein.ammp\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [14 x i8] c"inactive.ammp\00"
@.str.3 = [2 x i8] c"w\00"
@.str.4 = [5 x i8] c"bond\00"
@.str.5 = [3 x i8] c"%s\00"
@.str.6 = [7 x i8] c"mompar\00"
@.str.7 = [5 x i8] c"atom\00"
@.str.8 = [30 x i8] c"%s %f %f %f %i %s %f %f %f %f\00"
@.str.9 = [2 x i8] c"n\00"
@.str.11 = [12 x i8] c"%s %i %i%s\0A\00"
@.str.12 = [9 x i8] c"inactive\00"
@.str.13 = [2 x i8] c";\00"
@.str.14 = [3 x i8] c"ca\00"
@.str.15 = [2 x i8] c"c\00"
@.str.16 = [2 x i8] c"o\00"
@.str.17 = [2 x i8] c"h\00"
@.str.18 = [3 x i8] c"ha\00"
@.str.19 = [4 x i8] c"1ha\00"
@.str.20 = [4 x i8] c"2ha\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 [15 x i8]
%10 = alloca [400000 x i8*]
%11 = bitcast i32* %1 to i8*
store i32 0, i32* %1
%12 = bitcast float* %2 to i8*
%13 = bitcast float* %3 to i8*
%14 = bitcast float* %4 to i8*
%15 = bitcast float* %5 to i8*
%16 = bitcast float* %6 to i8*
%17 = bitcast float* %7 to i8*
%18 = bitcast float* %8 to i8*
%19 = tail call i8* @llvm.stacksave()
%20 = alloca [1000 x i8]
%21 = getelementptr inbounds [15 x i8], [15 x i8]* %9, i64 0, i64 0
%22 = bitcast [400000 x i8*]* %10 to i8*
br label %23
23: ; preds = %0, %23
%24 = phi i64 [ 0, %0 ], [ %28, %23 ]
%25 = tail call i64 @malloc(i32 15)
%26 = inttoptr i64 %25 to i8*
%27 = getelementptr inbounds [400000 x i8*], [400000 x i8*]* %10, i64 0, i64 %24
store i8* %26, i8** %27
%28 = add nuw nsw i64 %24, 1
%29 = icmp eq i64 %28, 400000
br i1 %29, label %30, label %23
30: ; preds = %23
%31 = getelementptr inbounds [1000 x i8], [1000 x i8]* %20, i64 0, i64 0
%32 = tail call i32* @fopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%33 = 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.3, i64 0, i64 0))
%34 = call i64 @strncmp(i8* %21, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 4)
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %37
36: ; preds = %65, %30
br label %131
37: ; preds = %30
%38 = getelementptr inbounds [400000 x i8*], [400000 x i8*]* %10, i64 0, i64 0
%39 = load i8*, i8** %38
%40 = getelementptr inbounds i8, i8* %39, i64 4
%41 = getelementptr inbounds i8, i8* %39, i64 5
%42 = getelementptr inbounds i8, i8* %39, i64 6
%43 = getelementptr inbounds i8, i8* %39, i64 7
br label %44
44: ; preds = %37, %65
%45 = call i32 @fgets(i8* %31, i32 1000, i32* %32)
%46 = call i32 (i8*, i8*, i8*, ...) @sscanf(i8* %31, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %21)
%47 = call i64 @strncmp(i8* %21, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i32 6)
%48 = icmp eq i64 %47, 0
br i1 %48, label %49, label %52
49: ; preds = %44
%50 = call i32 @fgets(i8* %31, i32 1000, i32* %32)
%51 = call i32 (i8*, i8*, i8*, ...) @sscanf(i8* %31, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %21)
br label %52
52: ; preds = %49, %44
%53 = call i64 @strncmp(i8* %21, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 4)
%54 = icmp eq i64 %53, 0
br i1 %54, label %55, label %65
55: ; preds = %52
%56 = call i32 (i8*, i8*, i8*, ...) @sscanf(i8* %31, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.8, i64 0, i64 0), i8* %21, float* %2, float* %3, float* %4, i32* %1, i8* %39, float* %5, float* %6, float* %7, float* %8)
%57 = call i32 @strcmp(i8* %40, i8* dereferenceable(2) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%58 = icmp eq i32 %57, 0
br i1 %58, label %59, label %68
59: ; preds = %55
%60 = load i8, i8* %41
%61 = icmp eq i8 %60, 0
br i1 %61, label %62, label %68
62: ; preds = %59
%63 = load i32, i32* %1
%64 = call i32 @fprintf(i32* %33, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0), i32 %63, i32 %63, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
br label %65
65: ; preds = %52, %125, %122, %62, %74, %83, %92, %101, %110, %119, %128
%66 = call i64 @strncmp(i8* %21, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 4)
%67 = icmp eq i64 %66, 0
br i1 %67, label %36, label %44
68: ; preds = %59, %55
%69 = call i32 @strcmp(i8* %40, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0))
%70 = icmp eq i32 %69, 0
br i1 %70, label %71, label %77
71: ; preds = %68
%72 = load i8, i8* %42
%73 = icmp eq i8 %72, 0
br i1 %73, label %74, label %77
74: ; preds = %71
%75 = load i32, i32* %1
%76 = call i32 @fprintf(i32* %33, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0), i32 %75, i32 %75, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
br label %65
77: ; preds = %71, %68
%78 = call i32 @strcmp(i8* %40, i8* dereferenceable(2) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
%79 = icmp eq i32 %78, 0
br i1 %79, label %80, label %86
80: ; preds = %77
%81 = load i8, i8* %41
%82 = icmp eq i8 %81, 0
br i1 %82, label %83, label %86
83: ; preds = %80
%84 = load i32, i32* %1
%85 = call i32 @fprintf(i32* %33, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0), i32 %84, i32 %84, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
br label %65
86: ; preds = %80, %77
%87 = call i32 @strcmp(i8* %40, i8* dereferenceable(2) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
%88 = icmp eq i32 %87, 0
br i1 %88, label %89, label %95
89: ; preds = %86
%90 = load i8, i8* %41
%91 = icmp eq i8 %90, 0
br i1 %91, label %92, label %95
92: ; preds = %89
%93 = load i32, i32* %1
%94 = call i32 @fprintf(i32* %33, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0), i32 %93, i32 %93, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
br label %65
95: ; preds = %89, %86
%96 = call i32 @strcmp(i8* %40, i8* dereferenceable(2) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i64 0, i64 0))
%97 = icmp eq i32 %96, 0
br i1 %97, label %98, label %104
98: ; preds = %95
%99 = load i8, i8* %41
%100 = icmp eq i8 %99, 0
br i1 %100, label %101, label %104
101: ; preds = %98
%102 = load i32, i32* %1
%103 = call i32 @fprintf(i32* %33, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0), i32 %102, i32 %102, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
br label %65
104: ; preds = %98, %95
%105 = call i32 @strcmp(i8* %40, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0))
%106 = icmp eq i32 %105, 0
br i1 %106, label %107, label %113
107: ; preds = %104
%108 = load i8, i8* %42
%109 = icmp eq i8 %108, 0
br i1 %109, label %110, label %113
110: ; preds = %107
%111 = load i32, i32* %1
%112 = call i32 @fprintf(i32* %33, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0), i32 %111, i32 %111, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
br label %65
113: ; preds = %107, %104
%114 = call i32 @strcmp(i8* %40, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.19, i64 0, i64 0))
%115 = icmp eq i32 %114, 0
br i1 %115, label %116, label %122
116: ; preds = %113
%117 = load i8, i8* %43
%118 = icmp eq i8 %117, 0
br i1 %118, label %119, label %122
119: ; preds = %116
%120 = load i32, i32* %1
%121 = call i32 @fprintf(i32* %33, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0), i32 %120, i32 %120, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
br label %65
122: ; preds = %116, %113
%123 = call i32 @strcmp(i8* %40, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.20, i64 0, i64 0))
%124 = icmp eq i32 %123, 0
br i1 %124, label %125, label %65
125: ; preds = %122
%126 = load i8, i8* %43
%127 = icmp eq i8 %126, 0
br i1 %127, label %128, label %65
128: ; preds = %125
%129 = load i32, i32* %1
%130 = call i32 @fprintf(i32* %33, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0), i32 %129, i32 %129, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
br label %65
131: ; preds = %36, %131
%132 = phi i64 [ %136, %131 ], [ 0, %36 ]
%133 = getelementptr inbounds [400000 x i8*], [400000 x i8*]* %10, i64 0, i64 %132
%134 = load i8*, i8** %133
%135 = call i32 @free(i8* %134)
%136 = add nuw nsw i64 %132, 1
%137 = icmp eq i64 %136, 400000
br i1 %137, label %138, label %131
138: ; preds = %131
%139 = call i32 @fclose(i32* %32)
%140 = call i32 @fclose(i32* %33)
ret i32 0
}