#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 */
double atof(char *);
int atoi(char *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
double pow(int, int);
int /*<<< orphan*/ printf(char *);
char *strstr(char *, char *);
int parse_gamess_out(const int nmodes, const int npairs,
                     double harmonic[nmodes], double xrange[nmodes],
                     double deltax[nmodes], double fdiag[nmodes][4],
                     double foffdiag[npairs][6]) {
  char line[82], *pos;
  FILE *fp;
  int ex;
  int freq_line_count, freq_line_max;
  int harmonic_count = 0, i, j;
  freq_line_count = freq_line_max = (nmodes + 6) / 5 + 1;
  if ((fp = fopen("output", "r")) != NULL) {
    while (fgets(line, 80, fp) != NULL) {
      if ((pos = strstr(line, "FREQUENCY:")) != NULL) {
        if (freq_line_count == freq_line_max) {
          freq_line_count--;
        } else if (freq_line_count == (freq_line_max - 1)) {
          for (i = 1; i < 5; i++)
            if (harmonic_count < nmodes) {
              harmonic[harmonic_count] = atof(&line[18 + 12 * i]);
              harmonic_count++;
            }
          freq_line_count--;
        } else if (freq_line_count > 0) {
          for (i = 0; i < 5; i++)
            if (harmonic_count < nmodes) {
              harmonic[harmonic_count] = atof(&line[18 + 12 * i]);
              harmonic_count++;
            }
          freq_line_count--;
        }
      }
      if (strstr(line, "MODE # 1   QRANGE=") != NULL) {
        xrange[0] = atof(&line[20]);
        deltax[0] = atof(&line[43]);
        for (i = 1; i < nmodes; i++) {
          if (fgets(line, 80, fp) != NULL) {
            xrange[i] = atof(&line[20]);
            deltax[i] = atof(&line[43]);
          }
        }
      }
      if (strstr(line, "QFF>  MODE=") != NULL) {
        for (i = 0; i < nmodes; i++) {
          if (fgets(line, 80, fp) != NULL) {
            fdiag[i][0] = atof(&line[15]);
            ex = atoi(&line[28]);
            fdiag[i][0] *= pow(10, ex);
          }
          if (fgets(line, 80, fp) != NULL) {
            fdiag[i][1] = atof(&line[15]);
            ex = atoi(&line[28]);
            fdiag[i][1] *= pow(10, ex);
          }
          if (fgets(line, 80, fp) != NULL) {
            fdiag[i][2] = atof(&line[15]);
            ex = atoi(&line[28]);
            fdiag[i][2] *= pow(10, ex);
          }
          for (j = 0; j < 15; j++)
            if (fgets(line, 80, fp) != NULL)
              ;
        }
      }
      if (strstr(line, "QFF>  MODE (I,J)") != NULL) {
        for (i = 0; i < npairs; i++) {
          if (fgets(line, 80, fp) != NULL) {
            foffdiag[i][0] = atof(&line[15]);
            ex = atoi(&line[28]);
            foffdiag[i][0] *= pow(10, ex);
          }
          if (fgets(line, 80, fp) != NULL) {
            foffdiag[i][1] = atof(&line[15]);
            ex = atoi(&line[28]);
            foffdiag[i][1] *= pow(10, ex);
          }
          if (fgets(line, 80, fp) != NULL) {
            foffdiag[i][2] = atof(&line[15]);
            ex = atoi(&line[28]);
            foffdiag[i][2] *= pow(10, ex);
          }
          if (fgets(line, 80, fp) != NULL) {
            foffdiag[i][3] = atof(&line[15]);
            ex = atoi(&line[28]);
            foffdiag[i][3] *= pow(10, ex);
          }
          if (fgets(line, 80, fp) != NULL) {
            foffdiag[i][4] = atof(&line[15]);
            ex = atoi(&line[28]);
            foffdiag[i][4] *= pow(10, ex);
          }
          if (fgets(line, 80, fp) != NULL)
            if (fgets(line, 80, fp) != NULL)
              ;
        }
      }
    }
    fclose(fp);
  } else {
    printf("Can not open \'output\' GAMESS output file, data should be "
           "provided in the input file \n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<parse_gamess_out>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
movl   $0x0,-0xa0(%rbp)
mov    -0x4(%rbp),%eax
add    $0x6,%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
add    $0x1,%eax
mov    %eax,-0x9c(%rbp)
mov    %eax,-0x98(%rbp)
lea    0xe2d(%rip),%rdi
lea    0xe2d(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x90(%rbp)
cmp    $0x0,%rax
je     19cf <parse_gamess_out+0x84f>
jmp    11f5 <parse_gamess_out+0x75>
lea    -0x80(%rbp),%rdi
mov    -0x90(%rbp),%rdx
mov    $0x50,%esi
call   1060 <fgets@plt>
cmp    $0x0,%rax
je     19be <parse_gamess_out+0x83e>
lea    -0x80(%rbp),%rdi
lea    0xdea(%rip),%rsi
call   10a0 <strstr@plt>
mov    %rax,-0x88(%rbp)
cmp    $0x0,%rax
je     139d <parse_gamess_out+0x21d>
mov    -0x98(%rbp),%eax
cmp    -0x9c(%rbp),%eax
jne    125b <parse_gamess_out+0xdb>
mov    -0x98(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x98(%rbp)
jmp    1398 <parse_gamess_out+0x218>
mov    -0x98(%rbp),%eax
mov    -0x9c(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jne    12fc <parse_gamess_out+0x17c>
movl   $0x1,-0xa4(%rbp)
cmpl   $0x5,-0xa4(%rbp)
jge    12e8 <parse_gamess_out+0x168>
mov    -0xa0(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    12cf <parse_gamess_out+0x14f>
imul   $0xc,-0xa4(%rbp),%eax
add    $0x12,%eax
cltq
lea    -0x80(%rbp),%rdi
add    %rax,%rdi
call   1030 <atof@plt>
mov    -0x10(%rbp),%rax
movslq -0xa0(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0xa0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa0(%rbp)
jmp    12d4 <parse_gamess_out+0x154>
mov    -0xa4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa4(%rbp)
jmp    127c <parse_gamess_out+0xfc>
mov    -0x98(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x98(%rbp)
jmp    1393 <parse_gamess_out+0x213>
cmpl   $0x0,-0x98(%rbp)
jle    138e <parse_gamess_out+0x20e>
movl   $0x0,-0xa4(%rbp)
cmpl   $0x5,-0xa4(%rbp)
jge    137f <parse_gamess_out+0x1ff>
mov    -0xa0(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1366 <parse_gamess_out+0x1e6>
imul   $0xc,-0xa4(%rbp),%eax
add    $0x12,%eax
cltq
lea    -0x80(%rbp),%rdi
add    %rax,%rdi
call   1030 <atof@plt>
mov    -0x10(%rbp),%rax
movslq -0xa0(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0xa0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa0(%rbp)
jmp    136b <parse_gamess_out+0x1eb>
mov    -0xa4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa4(%rbp)
jmp    1313 <parse_gamess_out+0x193>
mov    -0x98(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x98(%rbp)
jmp    1393 <parse_gamess_out+0x213>
jmp    1398 <parse_gamess_out+0x218>
jmp    139d <parse_gamess_out+0x21d>
lea    -0x80(%rbp),%rdi
lea    0xc6c(%rip),%rsi
call   10a0 <strstr@plt>
cmp    $0x0,%rax
je     1471 <parse_gamess_out+0x2f1>
lea    -0x80(%rbp),%rdi
add    $0x14,%rdi
call   1030 <atof@plt>
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
lea    -0x80(%rbp),%rdi
add    $0x2b,%rdi
call   1030 <atof@plt>
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movl   $0x1,-0xa4(%rbp)
mov    -0xa4(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    146c <parse_gamess_out+0x2ec>
lea    -0x80(%rbp),%rdi
mov    -0x90(%rbp),%rdx
mov    $0x50,%esi
call   1060 <fgets@plt>
cmp    $0x0,%rax
je     1453 <parse_gamess_out+0x2d3>
lea    -0x80(%rbp),%rdi
add    $0x14,%rdi
call   1030 <atof@plt>
mov    -0x18(%rbp),%rax
movslq -0xa4(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
lea    -0x80(%rbp),%rdi
add    $0x2b,%rdi
call   1030 <atof@plt>
mov    -0x20(%rbp),%rax
movslq -0xa4(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    1458 <parse_gamess_out+0x2d8>
mov    -0xa4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa4(%rbp)
jmp    13eb <parse_gamess_out+0x26b>
jmp    1471 <parse_gamess_out+0x2f1>
lea    -0x80(%rbp),%rdi
lea    0xbab(%rip),%rsi
call   10a0 <strstr@plt>
cmp    $0x0,%rax
je     1699 <parse_gamess_out+0x519>
movl   $0x0,-0xa4(%rbp)
mov    -0xa4(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1694 <parse_gamess_out+0x514>
lea    -0x80(%rbp),%rdi
mov    -0x90(%rbp),%rdx
mov    $0x50,%esi
call   1060 <fgets@plt>
cmp    $0x0,%rax
je     1523 <parse_gamess_out+0x3a3>
lea    -0x80(%rbp),%rdi
add    $0xf,%rdi
call   1030 <atof@plt>
mov    -0x28(%rbp),%rax
movslq -0xa4(%rbp),%rcx
shl    $0x5,%rcx
add    %rcx,%rax
movsd  %xmm0,(%rax)
lea    -0x80(%rbp),%rdi
add    $0x1c,%rdi
call   1090 <atoi@plt>
mov    %eax,-0x94(%rbp)
mov    -0x94(%rbp),%esi
mov    $0xa,%edi
call   1080 <pow@plt>
mov    -0x28(%rbp),%rax
movslq -0xa4(%rbp),%rcx
shl    $0x5,%rcx
add    %rcx,%rax
mulsd  (%rax),%xmm0
movsd  %xmm0,(%rax)
lea    -0x80(%rbp),%rdi
mov    -0x90(%rbp),%rdx
mov    $0x50,%esi
call   1060 <fgets@plt>
cmp    $0x0,%rax
je     15a5 <parse_gamess_out+0x425>
lea    -0x80(%rbp),%rdi
add    $0xf,%rdi
call   1030 <atof@plt>
mov    -0x28(%rbp),%rax
movslq -0xa4(%rbp),%rcx
shl    $0x5,%rcx
add    %rcx,%rax
movsd  %xmm0,0x8(%rax)
lea    -0x80(%rbp),%rdi
add    $0x1c,%rdi
call   1090 <atoi@plt>
mov    %eax,-0x94(%rbp)
mov    -0x94(%rbp),%esi
mov    $0xa,%edi
call   1080 <pow@plt>
mov    -0x28(%rbp),%rax
movslq -0xa4(%rbp),%rcx
shl    $0x5,%rcx
add    %rcx,%rax
mulsd  0x8(%rax),%xmm0
movsd  %xmm0,0x8(%rax)
lea    -0x80(%rbp),%rdi
mov    -0x90(%rbp),%rdx
mov    $0x50,%esi
call   1060 <fgets@plt>
cmp    $0x0,%rax
je     1627 <parse_gamess_out+0x4a7>
lea    -0x80(%rbp),%rdi
add    $0xf,%rdi
call   1030 <atof@plt>
mov    -0x28(%rbp),%rax
movslq -0xa4(%rbp),%rcx
shl    $0x5,%rcx
add    %rcx,%rax
movsd  %xmm0,0x10(%rax)
lea    -0x80(%rbp),%rdi
add    $0x1c,%rdi
call   1090 <atoi@plt>
mov    %eax,-0x94(%rbp)
mov    -0x94(%rbp),%esi
mov    $0xa,%edi
call   1080 <pow@plt>
mov    -0x28(%rbp),%rax
movslq -0xa4(%rbp),%rcx
shl    $0x5,%rcx
add    %rcx,%rax
mulsd  0x10(%rax),%xmm0
movsd  %xmm0,0x10(%rax)
movl   $0x0,-0xa8(%rbp)
cmpl   $0xf,-0xa8(%rbp)
jge    167b <parse_gamess_out+0x4fb>
lea    -0x80(%rbp),%rdi
mov    -0x90(%rbp),%rdx
mov    $0x50,%esi
call   1060 <fgets@plt>
cmp    $0x0,%rax
je     1662 <parse_gamess_out+0x4e2>
jmp    1662 <parse_gamess_out+0x4e2>
jmp    1667 <parse_gamess_out+0x4e7>
mov    -0xa8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa8(%rbp)
jmp    1631 <parse_gamess_out+0x4b1>
jmp    1680 <parse_gamess_out+0x500>
mov    -0xa4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa4(%rbp)
jmp    1495 <parse_gamess_out+0x315>
jmp    1699 <parse_gamess_out+0x519>
lea    -0x80(%rbp),%rdi
lea    0x98f(%rip),%rsi
call   10a0 <strstr@plt>
cmp    $0x0,%rax
je     19b9 <parse_gamess_out+0x839>
movl   $0x0,-0xa4(%rbp)
mov    -0xa4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    19b4 <parse_gamess_out+0x834>
lea    -0x80(%rbp),%rdi
mov    -0x90(%rbp),%rdx
mov    $0x50,%esi
call   1060 <fgets@plt>
cmp    $0x0,%rax
je     174b <parse_gamess_out+0x5cb>
lea    -0x80(%rbp),%rdi
add    $0xf,%rdi
call   1030 <atof@plt>
mov    0x10(%rbp),%rax
movslq -0xa4(%rbp),%rcx
imul   $0x30,%rcx,%rcx
add    %rcx,%rax
movsd  %xmm0,(%rax)
lea    -0x80(%rbp),%rdi
add    $0x1c,%rdi
call   1090 <atoi@plt>
mov    %eax,-0x94(%rbp)
mov    -0x94(%rbp),%esi
mov    $0xa,%edi
call   1080 <pow@plt>
mov    0x10(%rbp),%rax
movslq -0xa4(%rbp),%rcx
imul   $0x30,%rcx,%rcx
add    %rcx,%rax
mulsd  (%rax),%xmm0
movsd  %xmm0,(%rax)
lea    -0x80(%rbp),%rdi
mov    -0x90(%rbp),%rdx
mov    $0x50,%esi
call   1060 <fgets@plt>
cmp    $0x0,%rax
je     17cd <parse_gamess_out+0x64d>
lea    -0x80(%rbp),%rdi
add    $0xf,%rdi
call   1030 <atof@plt>
mov    0x10(%rbp),%rax
movslq -0xa4(%rbp),%rcx
imul   $0x30,%rcx,%rcx
add    %rcx,%rax
movsd  %xmm0,0x8(%rax)
lea    -0x80(%rbp),%rdi
add    $0x1c,%rdi
call   1090 <atoi@plt>
mov    %eax,-0x94(%rbp)
mov    -0x94(%rbp),%esi
mov    $0xa,%edi
call   1080 <pow@plt>
mov    0x10(%rbp),%rax
movslq -0xa4(%rbp),%rcx
imul   $0x30,%rcx,%rcx
add    %rcx,%rax
mulsd  0x8(%rax),%xmm0
movsd  %xmm0,0x8(%rax)
lea    -0x80(%rbp),%rdi
mov    -0x90(%rbp),%rdx
mov    $0x50,%esi
call   1060 <fgets@plt>
cmp    $0x0,%rax
je     184f <parse_gamess_out+0x6cf>
lea    -0x80(%rbp),%rdi
add    $0xf,%rdi
call   1030 <atof@plt>
mov    0x10(%rbp),%rax
movslq -0xa4(%rbp),%rcx
imul   $0x30,%rcx,%rcx
add    %rcx,%rax
movsd  %xmm0,0x10(%rax)
lea    -0x80(%rbp),%rdi
add    $0x1c,%rdi
call   1090 <atoi@plt>
mov    %eax,-0x94(%rbp)
mov    -0x94(%rbp),%esi
mov    $0xa,%edi
call   1080 <pow@plt>
mov    0x10(%rbp),%rax
movslq -0xa4(%rbp),%rcx
imul   $0x30,%rcx,%rcx
add    %rcx,%rax
mulsd  0x10(%rax),%xmm0
movsd  %xmm0,0x10(%rax)
lea    -0x80(%rbp),%rdi
mov    -0x90(%rbp),%rdx
mov    $0x50,%esi
call   1060 <fgets@plt>
cmp    $0x0,%rax
je     18d1 <parse_gamess_out+0x751>
lea    -0x80(%rbp),%rdi
add    $0xf,%rdi
call   1030 <atof@plt>
mov    0x10(%rbp),%rax
movslq -0xa4(%rbp),%rcx
imul   $0x30,%rcx,%rcx
add    %rcx,%rax
movsd  %xmm0,0x18(%rax)
lea    -0x80(%rbp),%rdi
add    $0x1c,%rdi
call   1090 <atoi@plt>
mov    %eax,-0x94(%rbp)
mov    -0x94(%rbp),%esi
mov    $0xa,%edi
call   1080 <pow@plt>
mov    0x10(%rbp),%rax
movslq -0xa4(%rbp),%rcx
imul   $0x30,%rcx,%rcx
add    %rcx,%rax
mulsd  0x18(%rax),%xmm0
movsd  %xmm0,0x18(%rax)
lea    -0x80(%rbp),%rdi
mov    -0x90(%rbp),%rdx
mov    $0x50,%esi
call   1060 <fgets@plt>
cmp    $0x0,%rax
je     1953 <parse_gamess_out+0x7d3>
lea    -0x80(%rbp),%rdi
add    $0xf,%rdi
call   1030 <atof@plt>
mov    0x10(%rbp),%rax
movslq -0xa4(%rbp),%rcx
imul   $0x30,%rcx,%rcx
add    %rcx,%rax
movsd  %xmm0,0x20(%rax)
lea    -0x80(%rbp),%rdi
add    $0x1c,%rdi
call   1090 <atoi@plt>
mov    %eax,-0x94(%rbp)
mov    -0x94(%rbp),%esi
mov    $0xa,%edi
call   1080 <pow@plt>
mov    0x10(%rbp),%rax
movslq -0xa4(%rbp),%rcx
imul   $0x30,%rcx,%rcx
add    %rcx,%rax
mulsd  0x20(%rax),%xmm0
movsd  %xmm0,0x20(%rax)
lea    -0x80(%rbp),%rdi
mov    -0x90(%rbp),%rdx
mov    $0x50,%esi
call   1060 <fgets@plt>
cmp    $0x0,%rax
je     199b <parse_gamess_out+0x81b>
lea    -0x80(%rbp),%rdi
mov    -0x90(%rbp),%rdx
mov    $0x50,%esi
call   1060 <fgets@plt>
cmp    $0x0,%rax
je     1996 <parse_gamess_out+0x816>
jmp    1996 <parse_gamess_out+0x816>
jmp    199b <parse_gamess_out+0x81b>
jmp    19a0 <parse_gamess_out+0x820>
mov    -0xa4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa4(%rbp)
jmp    16bd <parse_gamess_out+0x53d>
jmp    19b9 <parse_gamess_out+0x839>
jmp    11f5 <parse_gamess_out+0x75>
mov    -0x90(%rbp),%rdi
call   1040 <fclose@plt>
jmp    19db <parse_gamess_out+0x85b>
lea    0x66e(%rip),%rdi
call   1050 <printf@plt>
xor    %eax,%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parse_gamess_out>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xb8,%rsp
mov    %r9,%r15
mov    %r8,%r13
mov    %rcx,0x38(%rsp)
mov    %rdx,0x10(%rsp)
mov    %esi,0x28(%rsp)
mov    %rdi,0x8(%rsp)
lea    0xe4f(%rip),%rdi
lea    0xe4f(%rip),%rsi
call   1070 <fopen@plt>
test   %rax,%rax
je     1980 <parse_gamess_out+0x800>
mov    %rax,%r12
lea    0x40(%rsp),%rdi
mov    $0x50,%esi
mov    %rax,%rdx
call   1060 <fgets@plt>
test   %rax,%rax
je     1976 <parse_gamess_out+0x7f6>
mov    0x8(%rsp),%rdx
lea    0x6(%rdx),%eax
cltq
imul   $0x66666667,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x21,%rax
lea    (%rax,%rcx,1),%esi
add    %eax,%ecx
add    $0x1,%ecx
mov    %edx,%ebx
mov    0x28(%rsp),%eax
mov    %rbx,%rdx
shl    $0x5,%rdx
mov    %rdx,0x98(%rsp)
shl    $0x4,%rax
lea    (%rax,%rax,2),%rax
mov    %rax,0xb0(%rsp)
mov    %rsi,0x30(%rsp)
lea    -0x1(%rsi),%eax
mov    %eax,0x24(%rsp)
xor    %eax,%eax
mov    %rax,0x18(%rsp)
lea    0x40(%rsp),%r14
mov    %ecx,0x2c(%rsp)
mov    %ecx,0x4(%rsp)
mov    %r13,0xa8(%rsp)
mov    %rbx,0xa0(%rsp)
jmp    1289 <parse_gamess_out+0x109>
nop
mov    %r14,%rdi
mov    $0x50,%esi
mov    %r12,%rdx
call   1060 <fgets@plt>
test   %rax,%rax
mov    0xa8(%rsp),%r13
mov    0xa0(%rsp),%rbx
je     1976 <parse_gamess_out+0x7f6>
mov    %r14,%rdi
lea    0xd76(%rip),%rsi
call   10a0 <strstr@plt>
test   %rax,%rax
je     14d4 <parse_gamess_out+0x354>
mov    0x4(%rsp),%eax
cmp    0x2c(%rsp),%eax
jne    12c0 <parse_gamess_out+0x140>
mov    0x30(%rsp),%rax
jmp    14d0 <parse_gamess_out+0x350>
cs nopw 0x0(%rax,%rax,1)
nop
cmp    0x30(%rsp),%eax
mov    0x18(%rsp),%rdx
jne    1321 <parse_gamess_out+0x1a1>
cmp    0x8(%rsp),%edx
jl     1385 <parse_gamess_out+0x205>
cmp    0x8(%rsp),%edx
jl     13ae <parse_gamess_out+0x22e>
cmp    0x8(%rsp),%edx
jl     13d8 <parse_gamess_out+0x258>
cmp    0x8(%rsp),%edx
jge    1402 <parse_gamess_out+0x282>
lea    0x82(%rsp),%rdi
mov    %rdx,%rbp
call   1040 <atof@plt>
movslq %ebp,%rax
mov    0x10(%rsp),%rcx
movsd  %xmm0,(%rcx,%rax,8)
add    $0x1,%ebp
mov    %rbp,0x18(%rsp)
mov    0x24(%rsp),%eax
jmp    14d0 <parse_gamess_out+0x350>
test   %eax,%eax
jle    14d4 <parse_gamess_out+0x354>
cmp    0x8(%rsp),%edx
jl     1410 <parse_gamess_out+0x290>
cmp    0x8(%rsp),%edx
jl     1439 <parse_gamess_out+0x2b9>
cmp    0x8(%rsp),%edx
jl     1463 <parse_gamess_out+0x2e3>
cmp    0x8(%rsp),%edx
jl     148d <parse_gamess_out+0x30d>
cmp    0x8(%rsp),%edx
jge    14b7 <parse_gamess_out+0x337>
lea    0x82(%rsp),%rdi
mov    %rdx,%rbp
call   1040 <atof@plt>
movslq %ebp,%rax
mov    0x10(%rsp),%rcx
movsd  %xmm0,(%rcx,%rax,8)
add    $0x1,%ebp
mov    %rbp,0x18(%rsp)
jmp    14bc <parse_gamess_out+0x33c>
lea    0x5e(%rsp),%rdi
call   1040 <atof@plt>
mov    0x18(%rsp),%rdx
movslq %edx,%rax
mov    0x10(%rsp),%rcx
movsd  %xmm0,(%rcx,%rax,8)
add    $0x1,%edx
cmp    0x8(%rsp),%edx
jge    12df <parse_gamess_out+0x15f>
lea    0x6a(%rsp),%rdi
mov    %rdx,%rbp
call   1040 <atof@plt>
mov    %rbp,%rdx
movslq %edx,%rax
mov    0x10(%rsp),%rcx
movsd  %xmm0,(%rcx,%rax,8)
add    $0x1,%edx
cmp    0x8(%rsp),%edx
jge    12e9 <parse_gamess_out+0x169>
lea    0x76(%rsp),%rdi
mov    %rdx,%rbp
call   1040 <atof@plt>
mov    %rbp,%rdx
movslq %edx,%rax
mov    0x10(%rsp),%rcx
movsd  %xmm0,(%rcx,%rax,8)
add    $0x1,%edx
cmp    0x8(%rsp),%edx
jl     12f3 <parse_gamess_out+0x173>
mov    %rdx,0x18(%rsp)
mov    0x24(%rsp),%eax
jmp    14d0 <parse_gamess_out+0x350>
lea    0x52(%rsp),%rdi
call   1040 <atof@plt>
mov    0x18(%rsp),%rdx
movslq %edx,%rax
mov    0x10(%rsp),%rcx
movsd  %xmm0,(%rcx,%rax,8)
add    $0x1,%edx
cmp    0x8(%rsp),%edx
jge    133d <parse_gamess_out+0x1bd>
lea    0x5e(%rsp),%rdi
mov    %rdx,%rbp
call   1040 <atof@plt>
mov    %rbp,%rdx
movslq %edx,%rax
mov    0x10(%rsp),%rcx
movsd  %xmm0,(%rcx,%rax,8)
add    $0x1,%edx
cmp    0x8(%rsp),%edx
jge    1347 <parse_gamess_out+0x1c7>
lea    0x6a(%rsp),%rdi
mov    %rdx,%rbp
call   1040 <atof@plt>
mov    %rbp,%rdx
movslq %edx,%rax
mov    0x10(%rsp),%rcx
movsd  %xmm0,(%rcx,%rax,8)
add    $0x1,%edx
cmp    0x8(%rsp),%edx
jge    1351 <parse_gamess_out+0x1d1>
lea    0x76(%rsp),%rdi
mov    %rdx,%rbp
call   1040 <atof@plt>
mov    %rbp,%rdx
movslq %edx,%rax
mov    0x10(%rsp),%rcx
movsd  %xmm0,(%rcx,%rax,8)
add    $0x1,%edx
cmp    0x8(%rsp),%edx
jl     135b <parse_gamess_out+0x1db>
mov    %rdx,0x18(%rsp)
mov    0x4(%rsp),%eax
add    $0xffffffff,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %eax,0x4(%rsp)
mov    %r14,%rdi
lea    0xb36(%rip),%rsi
call   10a0 <strstr@plt>
test   %rax,%rax
je     1570 <parse_gamess_out+0x3f0>
lea    0x54(%rsp),%rdi
call   1040 <atof@plt>
mov    0x38(%rsp),%rax
movsd  %xmm0,(%rax)
lea    0x6b(%rsp),%rdi
call   1040 <atof@plt>
movsd  %xmm0,0x0(%r13)
cmpl   $0x2,0x8(%rsp)
jl     1570 <parse_gamess_out+0x3f0>
mov    $0x1,%ebp
jmp    1529 <parse_gamess_out+0x3a9>
nopl   (%rax)
add    $0x1,%rbp
cmp    %rbp,%rbx
je     1570 <parse_gamess_out+0x3f0>
mov    %r14,%rdi
mov    $0x50,%esi
mov    %r12,%rdx
call   1060 <fgets@plt>
test   %rax,%rax
je     1520 <parse_gamess_out+0x3a0>
lea    0x54(%rsp),%rdi
call   1040 <atof@plt>
mov    0x38(%rsp),%rax
movsd  %xmm0,(%rax,%rbp,8)
lea    0x6b(%rsp),%rdi
call   1040 <atof@plt>
movsd  %xmm0,0x0(%r13,%rbp,8)
jmp    1520 <parse_gamess_out+0x3a0>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r14,%rdi
lea    0xaad(%rip),%rsi
call   10a0 <strstr@plt>
test   %rax,%rax
mov    0x98(%rsp),%rbp
je     17a0 <parse_gamess_out+0x620>
cmpl   $0x0,0x8(%rsp)
jle    17a0 <parse_gamess_out+0x620>
xor    %r13d,%r13d
jmp    16ad <parse_gamess_out+0x52d>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r14,%rdi
mov    $0x50,%esi
mov    %r12,%rdx
call   1060 <fgets@plt>
mov    %r14,%rdi
mov    $0x50,%esi
mov    %r12,%rdx
call   1060 <fgets@plt>
mov    %r14,%rdi
mov    $0x50,%esi
mov    %r12,%rdx
call   1060 <fgets@plt>
mov    %r14,%rdi
mov    $0x50,%esi
mov    %r12,%rdx
call   1060 <fgets@plt>
mov    %r14,%rdi
mov    $0x50,%esi
mov    %r12,%rdx
call   1060 <fgets@plt>
mov    %r14,%rdi
mov    $0x50,%esi
mov    %r12,%rdx
call   1060 <fgets@plt>
mov    %r14,%rdi
mov    $0x50,%esi
mov    %r12,%rdx
call   1060 <fgets@plt>
mov    %r14,%rdi
mov    $0x50,%esi
mov    %r12,%rdx
call   1060 <fgets@plt>
mov    %r14,%rdi
mov    $0x50,%esi
mov    %r12,%rdx
call   1060 <fgets@plt>
mov    %r14,%rdi
mov    $0x50,%esi
mov    %r12,%rdx
call   1060 <fgets@plt>
mov    %r14,%rdi
mov    $0x50,%esi
mov    %r12,%rdx
call   1060 <fgets@plt>
mov    %r14,%rdi
mov    $0x50,%esi
mov    %r12,%rdx
call   1060 <fgets@plt>
mov    %r14,%rdi
mov    $0x50,%esi
mov    %r12,%rdx
call   1060 <fgets@plt>
mov    %r14,%rdi
mov    $0x50,%esi
mov    %r12,%rdx
call   1060 <fgets@plt>
mov    %r14,%rdi
mov    $0x50,%esi
mov    %r12,%rdx
call   1060 <fgets@plt>
add    $0x20,%r13
cmp    %r13,%rbp
je     17a0 <parse_gamess_out+0x620>
mov    %r14,%rdi
mov    $0x50,%esi
mov    %r12,%rdx
call   1060 <fgets@plt>
test   %rax,%rax
je     16f4 <parse_gamess_out+0x574>
lea    0x4f(%rsp),%rdi
call   1040 <atof@plt>
movsd  %xmm0,(%r15,%r13,1)
lea    0x5c(%rsp),%rdi
call   1090 <atoi@plt>
mov    $0xa,%edi
mov    %eax,%esi
call   1080 <pow@plt>
mulsd  (%r15,%r13,1),%xmm0
movsd  %xmm0,(%r15,%r13,1)
mov    %r14,%rdi
mov    $0x50,%esi
mov    %r12,%rdx
call   1060 <fgets@plt>
test   %rax,%rax
je     173e <parse_gamess_out+0x5be>
lea    0x4f(%rsp),%rdi
call   1040 <atof@plt>
movsd  %xmm0,0x8(%r15,%r13,1)
lea    0x5c(%rsp),%rdi
call   1090 <atoi@plt>
mov    $0xa,%edi
mov    %eax,%esi
call   1080 <pow@plt>
mulsd  0x8(%r15,%r13,1),%xmm0
movsd  %xmm0,0x8(%r15,%r13,1)
mov    %r14,%rdi
mov    $0x50,%esi
mov    %r12,%rdx
call   1060 <fgets@plt>
test   %rax,%rax
je     15b0 <parse_gamess_out+0x430>
lea    0x4f(%rsp),%rdi
call   1040 <atof@plt>
movsd  %xmm0,0x10(%r15,%r13,1)
lea    0x5c(%rsp),%rdi
call   1090 <atoi@plt>
mov    $0xa,%edi
mov    %eax,%esi
call   1080 <pow@plt>
mulsd  0x10(%r15,%r13,1),%xmm0
movsd  %xmm0,0x10(%r15,%r13,1)
jmp    15b0 <parse_gamess_out+0x430>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
lea    0x889(%rip),%rsi
call   10a0 <strstr@plt>
test   %rax,%rax
lea    0x4f(%rsp),%r13
mov    0xf0(%rsp),%rbx
je     1260 <parse_gamess_out+0xe0>
cmpl   $0x0,0x28(%rsp)
jle    1260 <parse_gamess_out+0xe0>
xor    %ebp,%ebp
jmp    17f2 <parse_gamess_out+0x672>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x30,%rbp
cmp    %rbp,0xb0(%rsp)
je     1260 <parse_gamess_out+0xe0>
mov    %r14,%rdi
mov    $0x50,%esi
mov    %r12,%rdx
call   1060 <fgets@plt>
test   %rax,%rax
je     1834 <parse_gamess_out+0x6b4>
mov    %r13,%rdi
call   1040 <atof@plt>
movsd  %xmm0,(%rbx,%rbp,1)
lea    0x5c(%rsp),%rdi
call   1090 <atoi@plt>
mov    $0xa,%edi
mov    %eax,%esi
call   1080 <pow@plt>
mulsd  (%rbx,%rbp,1),%xmm0
movsd  %xmm0,(%rbx,%rbp,1)
mov    %r14,%rdi
mov    $0x50,%esi
mov    %r12,%rdx
call   1060 <fgets@plt>
test   %rax,%rax
je     1879 <parse_gamess_out+0x6f9>
mov    %r13,%rdi
call   1040 <atof@plt>
movsd  %xmm0,0x8(%rbx,%rbp,1)
lea    0x5c(%rsp),%rdi
call   1090 <atoi@plt>
mov    $0xa,%edi
mov    %eax,%esi
call   1080 <pow@plt>
mulsd  0x8(%rbx,%rbp,1),%xmm0
movsd  %xmm0,0x8(%rbx,%rbp,1)
mov    %r14,%rdi
mov    $0x50,%esi
mov    %r12,%rdx
call   1060 <fgets@plt>
test   %rax,%rax
je     18be <parse_gamess_out+0x73e>
mov    %r13,%rdi
call   1040 <atof@plt>
movsd  %xmm0,0x10(%rbx,%rbp,1)
lea    0x5c(%rsp),%rdi
call   1090 <atoi@plt>
mov    $0xa,%edi
mov    %eax,%esi
call   1080 <pow@plt>
mulsd  0x10(%rbx,%rbp,1),%xmm0
movsd  %xmm0,0x10(%rbx,%rbp,1)
mov    %r14,%rdi
mov    $0x50,%esi
mov    %r12,%rdx
call   1060 <fgets@plt>
test   %rax,%rax
je     1903 <parse_gamess_out+0x783>
mov    %r13,%rdi
call   1040 <atof@plt>
movsd  %xmm0,0x18(%rbx,%rbp,1)
lea    0x5c(%rsp),%rdi
call   1090 <atoi@plt>
mov    $0xa,%edi
mov    %eax,%esi
call   1080 <pow@plt>
mulsd  0x18(%rbx,%rbp,1),%xmm0
movsd  %xmm0,0x18(%rbx,%rbp,1)
mov    %r14,%rdi
mov    $0x50,%esi
mov    %r12,%rdx
call   1060 <fgets@plt>
test   %rax,%rax
je     1948 <parse_gamess_out+0x7c8>
mov    %r13,%rdi
call   1040 <atof@plt>
movsd  %xmm0,0x20(%rbx,%rbp,1)
lea    0x5c(%rsp),%rdi
call   1090 <atoi@plt>
mov    $0xa,%edi
mov    %eax,%esi
call   1080 <pow@plt>
mulsd  0x20(%rbx,%rbp,1),%xmm0
movsd  %xmm0,0x20(%rbx,%rbp,1)
mov    %r14,%rdi
mov    $0x50,%esi
mov    %r12,%rdx
call   1060 <fgets@plt>
test   %rax,%rax
je     17e0 <parse_gamess_out+0x660>
mov    %r14,%rdi
mov    $0x50,%esi
mov    %r12,%rdx
call   1060 <fgets@plt>
jmp    17e0 <parse_gamess_out+0x660>
mov    %r12,%rdi
call   1050 <fclose@plt>
jmp    198c <parse_gamess_out+0x80c>
lea    0x6bd(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0xb8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [7 x i8] c"output\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [11 x i8] c"FREQUENCY:\00"
@.str.3 = [19 x i8] c"MODE # 1 QRANGE=\00"
@.str.4 = [12 x i8] c"QFF> MODE=\00"
@.str.5 = [17 x i8] c"QFF> MODE (I,J)\00"
@str = [85 x i8] c"Can not open 'output' GAMESS output file, data should be provided in the input file \00"
define i32 @parse_gamess_out(i32 %0, i32 %1, double* nocapture writeonly %2, double* nocapture writeonly %3, double* nocapture writeonly %4, [4 x double]* nocapture %5, [6 x double]* nocapture %6) {
%8 = alloca [82 x i8]
%9 = getelementptr inbounds [82 x i8], [82 x i8]* %8, i64 0, i64 0
%10 = add nsw i32 %0, 6
%11 = sdiv i32 %10, 5
%12 = add nsw i32 %11, 1
%13 = tail call i32* @fopen(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%14 = icmp eq i32* %13, null
br i1 %14, label %264, label %15
15: ; preds = %7
%16 = call i32* @fgets(i8* %9, i32 80, i32* %13)
%17 = icmp eq i32* %16, null
br i1 %17, label %262, label %18
18: ; preds = %15
%19 = getelementptr inbounds [82 x i8], [82 x i8]* %8, i64 0, i64 20
%20 = getelementptr inbounds [82 x i8], [82 x i8]* %8, i64 0, i64 43
%21 = icmp sgt i32 %0, 1
%22 = icmp slt i32 %0, 1
%23 = getelementptr inbounds [82 x i8], [82 x i8]* %8, i64 0, i64 15
%24 = getelementptr inbounds [82 x i8], [82 x i8]* %8, i64 0, i64 28
%25 = icmp slt i32 %1, 1
%26 = getelementptr inbounds [82 x i8], [82 x i8]* %8, i64 0, i64 18
%27 = getelementptr inbounds [82 x i8], [82 x i8]* %8, i64 0, i64 30
%28 = getelementptr inbounds [82 x i8], [82 x i8]* %8, i64 0, i64 42
%29 = getelementptr inbounds [82 x i8], [82 x i8]* %8, i64 0, i64 54
%30 = getelementptr inbounds [82 x i8], [82 x i8]* %8, i64 0, i64 66
%31 = getelementptr inbounds [82 x i8], [82 x i8]* %8, i64 0, i64 30
%32 = getelementptr inbounds [82 x i8], [82 x i8]* %8, i64 0, i64 42
%33 = getelementptr inbounds [82 x i8], [82 x i8]* %8, i64 0, i64 54
%34 = getelementptr inbounds [82 x i8], [82 x i8]* %8, i64 0, i64 66
%35 = add nsw i32 %11, -1
%36 = zext i32 %0 to i64
%37 = zext i32 %0 to i64
%38 = zext i32 %1 to i64
br label %39
39: ; preds = %18, %259
%40 = phi i32 [ 0, %18 ], [ %125, %259 ]
%41 = phi i32 [ %12, %18 ], [ %124, %259 ]
%42 = call i8* @strstr(i8* %9, i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%43 = icmp eq i8* %42, null
br i1 %43, label %123, label %44
44: ; preds = %39
%45 = icmp eq i32 %41, %12
br i1 %45, label %123, label %46
46: ; preds = %44
%47 = icmp eq i32 %41, %11
br i1 %47, label %48, label %79
48: ; preds = %46
%49 = icmp slt i32 %40, %0
br i1 %49, label %50, label %55
50: ; preds = %48
%51 = call double @atof(i8* %31)
%52 = sext i32 %40 to i64
%53 = getelementptr inbounds double, double* %2, i64 %52
store double %51, double* %53
%54 = add nsw i32 %40, 1
br label %55
55: ; preds = %48, %50
%56 = phi i32 [ %54, %50 ], [ %40, %48 ]
%57 = icmp slt i32 %56, %0
br i1 %57, label %58, label %63
58: ; preds = %55
%59 = call double @atof(i8* %32)
%60 = sext i32 %56 to i64
%61 = getelementptr inbounds double, double* %2, i64 %60
store double %59, double* %61
%62 = add nsw i32 %56, 1
br label %63
63: ; preds = %58, %55
%64 = phi i32 [ %62, %58 ], [ %56, %55 ]
%65 = icmp slt i32 %64, %0
br i1 %65, label %66, label %71
66: ; preds = %63
%67 = call double @atof(i8* %33)
%68 = sext i32 %64 to i64
%69 = getelementptr inbounds double, double* %2, i64 %68
store double %67, double* %69
%70 = add nsw i32 %64, 1
br label %71
71: ; preds = %66, %63
%72 = phi i32 [ %70, %66 ], [ %64, %63 ]
%73 = icmp slt i32 %72, %0
br i1 %73, label %74, label %123
74: ; preds = %71
%75 = call double @atof(i8* %34)
%76 = sext i32 %72 to i64
%77 = getelementptr inbounds double, double* %2, i64 %76
store double %75, double* %77
%78 = add nsw i32 %72, 1
br label %123
79: ; preds = %46
%80 = icmp sgt i32 %41, 0
br i1 %80, label %81, label %123
81: ; preds = %79
%82 = icmp slt i32 %40, %0
br i1 %82, label %83, label %88
83: ; preds = %81
%84 = call double @atof(i8* %26)
%85 = sext i32 %40 to i64
%86 = getelementptr inbounds double, double* %2, i64 %85
store double %84, double* %86
%87 = add nsw i32 %40, 1
br label %88
88: ; preds = %81, %83
%89 = phi i32 [ %87, %83 ], [ %40, %81 ]
%90 = icmp slt i32 %89, %0
br i1 %90, label %91, label %96
91: ; preds = %88
%92 = call double @atof(i8* %27)
%93 = sext i32 %89 to i64
%94 = getelementptr inbounds double, double* %2, i64 %93
store double %92, double* %94
%95 = add nsw i32 %89, 1
br label %96
96: ; preds = %91, %88
%97 = phi i32 [ %95, %91 ], [ %89, %88 ]
%98 = icmp slt i32 %97, %0
br i1 %98, label %99, label %104
99: ; preds = %96
%100 = call double @atof(i8* %28)
%101 = sext i32 %97 to i64
%102 = getelementptr inbounds double, double* %2, i64 %101
store double %100, double* %102
%103 = add nsw i32 %97, 1
br label %104
104: ; preds = %99, %96
%105 = phi i32 [ %103, %99 ], [ %97, %96 ]
%106 = icmp slt i32 %105, %0
br i1 %106, label %107, label %112
107: ; preds = %104
%108 = call double @atof(i8* %29)
%109 = sext i32 %105 to i64
%110 = getelementptr inbounds double, double* %2, i64 %109
store double %108, double* %110
%111 = add nsw i32 %105, 1
br label %112
112: ; preds = %107, %104
%113 = phi i32 [ %111, %107 ], [ %105, %104 ]
%114 = icmp slt i32 %113, %0
br i1 %114, label %115, label %120
115: ; preds = %112
%116 = call double @atof(i8* %30)
%117 = sext i32 %113 to i64
%118 = getelementptr inbounds double, double* %2, i64 %117
store double %116, double* %118
%119 = add nsw i32 %113, 1
br label %120
120: ; preds = %115, %112
%121 = phi i32 [ %119, %115 ], [ %113, %112 ]
%122 = add nsw i32 %41, -1
br label %123
123: ; preds = %71, %74, %44, %79, %120, %39
%124 = phi i32 [ %122, %120 ], [ %41, %79 ], [ %41, %39 ], [ %11, %44 ], [ %35, %74 ], [ %35, %71 ]
%125 = phi i32 [ %121, %120 ], [ %40, %79 ], [ %40, %39 ], [ %40, %44 ], [ %78, %74 ], [ %72, %71 ]
%126 = call i8* @strstr(i8* %9, i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
%127 = icmp eq i8* %126, null
br i1 %127, label %143, label %128
128: ; preds = %123
%129 = call double @atof(i8* %19)
store double %129, double* %3
%130 = call double @atof(i8* %20)
store double %130, double* %4
br i1 %21, label %131, label %143
131: ; preds = %128, %140
%132 = phi i64 [ %141, %140 ], [ 1, %128 ]
%133 = call i32* @fgets(i8* %9, i32 80, i32* %13)
%134 = icmp eq i32* %133, null
br i1 %134, label %140, label %135
135: ; preds = %131
%136 = call double @atof(i8* %19)
%137 = getelementptr inbounds double, double* %3, i64 %132
store double %136, double* %137
%138 = call double @atof(i8* %20)
%139 = getelementptr inbounds double, double* %4, i64 %132
store double %138, double* %139
br label %140
140: ; preds = %131, %135
%141 = add nuw nsw i64 %132, 1
%142 = icmp eq i64 %141, %36
br i1 %142, label %143, label %131
143: ; preds = %140, %128, %123
%144 = call i8* @strstr(i8* %9, i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
%145 = icmp eq i8* %144, null
%146 = or i1 %145, %22
br i1 %146, label %196, label %147
147: ; preds = %143, %178
%148 = phi i64 [ %194, %178 ], [ 0, %143 ]
%149 = call i32* @fgets(i8* %9, i32 80, i32* %13)
%150 = icmp eq i32* %149, null
br i1 %150, label %158, label %151
151: ; preds = %147
%152 = call double @atof(i8* %23)
%153 = getelementptr inbounds [4 x double], [4 x double]* %5, i64 %148, i64 0
store double %152, double* %153
%154 = call i32 @atoi(i8* %24)
%155 = call double @pow(i32 10, i32 %154)
%156 = load double, double* %153
%157 = fmul double %155, %156
store double %157, double* %153
br label %158
158: ; preds = %151, %147
%159 = call i32* @fgets(i8* %9, i32 80, i32* %13)
%160 = icmp eq i32* %159, null
br i1 %160, label %168, label %161
161: ; preds = %158
%162 = call double @atof(i8* %23)
%163 = getelementptr inbounds [4 x double], [4 x double]* %5, i64 %148, i64 1
store double %162, double* %163
%164 = call i32 @atoi(i8* %24)
%165 = call double @pow(i32 10, i32 %164)
%166 = load double, double* %163
%167 = fmul double %165, %166
store double %167, double* %163
br label %168
168: ; preds = %161, %158
%169 = call i32* @fgets(i8* %9, i32 80, i32* %13)
%170 = icmp eq i32* %169, null
br i1 %170, label %178, label %171
171: ; preds = %168
%172 = call double @atof(i8* %23)
%173 = getelementptr inbounds [4 x double], [4 x double]* %5, i64 %148, i64 2
store double %172, double* %173
%174 = call i32 @atoi(i8* %24)
%175 = call double @pow(i32 10, i32 %174)
%176 = load double, double* %173
%177 = fmul double %175, %176
store double %177, double* %173
br label %178
178: ; preds = %171, %168
%179 = call i32* @fgets(i8* %9, i32 80, i32* %13)
%180 = call i32* @fgets(i8* %9, i32 80, i32* %13)
%181 = call i32* @fgets(i8* %9, i32 80, i32* %13)
%182 = call i32* @fgets(i8* %9, i32 80, i32* %13)
%183 = call i32* @fgets(i8* %9, i32 80, i32* %13)
%184 = call i32* @fgets(i8* %9, i32 80, i32* %13)
%185 = call i32* @fgets(i8* %9, i32 80, i32* %13)
%186 = call i32* @fgets(i8* %9, i32 80, i32* %13)
%187 = call i32* @fgets(i8* %9, i32 80, i32* %13)
%188 = call i32* @fgets(i8* %9, i32 80, i32* %13)
%189 = call i32* @fgets(i8* %9, i32 80, i32* %13)
%190 = call i32* @fgets(i8* %9, i32 80, i32* %13)
%191 = call i32* @fgets(i8* %9, i32 80, i32* %13)
%192 = call i32* @fgets(i8* %9, i32 80, i32* %13)
%193 = call i32* @fgets(i8* %9, i32 80, i32* %13)
%194 = add nuw nsw i64 %148, 1
%195 = icmp eq i64 %194, %37
br i1 %195, label %196, label %147
196: ; preds = %178, %143
%197 = call i8* @strstr(i8* %9, i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0))
%198 = icmp eq i8* %197, null
%199 = or i1 %198, %25
br i1 %199, label %259, label %200
200: ; preds = %196, %256
%201 = phi i64 [ %257, %256 ], [ 0, %196 ]
%202 = call i32* @fgets(i8* %9, i32 80, i32* %13)
%203 = icmp eq i32* %202, null
br i1 %203, label %211, label %204
204: ; preds = %200
%205 = call double @atof(i8* %23)
%206 = getelementptr inbounds [6 x double], [6 x double]* %6, i64 %201, i64 0
store double %205, double* %206
%207 = call i32 @atoi(i8* %24)
%208 = call double @pow(i32 10, i32 %207)
%209 = load double, double* %206
%210 = fmul double %208, %209
store double %210, double* %206
br label %211
211: ; preds = %204, %200
%212 = call i32* @fgets(i8* %9, i32 80, i32* %13)
%213 = icmp eq i32* %212, null
br i1 %213, label %221, label %214
214: ; preds = %211
%215 = call double @atof(i8* %23)
%216 = getelementptr inbounds [6 x double], [6 x double]* %6, i64 %201, i64 1
store double %215, double* %216
%217 = call i32 @atoi(i8* %24)
%218 = call double @pow(i32 10, i32 %217)
%219 = load double, double* %216
%220 = fmul double %218, %219
store double %220, double* %216
br label %221
221: ; preds = %214, %211
%222 = call i32* @fgets(i8* %9, i32 80, i32* %13)
%223 = icmp eq i32* %222, null
br i1 %223, label %231, label %224
224: ; preds = %221
%225 = call double @atof(i8* %23)
%226 = getelementptr inbounds [6 x double], [6 x double]* %6, i64 %201, i64 2
store double %225, double* %226
%227 = call i32 @atoi(i8* %24)
%228 = call double @pow(i32 10, i32 %227)
%229 = load double, double* %226
%230 = fmul double %228, %229
store double %230, double* %226
br label %231
231: ; preds = %224, %221
%232 = call i32* @fgets(i8* %9, i32 80, i32* %13)
%233 = icmp eq i32* %232, null
br i1 %233, label %241, label %234
234: ; preds = %231
%235 = call double @atof(i8* %23)
%236 = getelementptr inbounds [6 x double], [6 x double]* %6, i64 %201, i64 3
store double %235, double* %236
%237 = call i32 @atoi(i8* %24)
%238 = call double @pow(i32 10, i32 %237)
%239 = load double, double* %236
%240 = fmul double %238, %239
store double %240, double* %236
br label %241
241: ; preds = %234, %231
%242 = call i32* @fgets(i8* %9, i32 80, i32* %13)
%243 = icmp eq i32* %242, null
br i1 %243, label %251, label %244
244: ; preds = %241
%245 = call double @atof(i8* %23)
%246 = getelementptr inbounds [6 x double], [6 x double]* %6, i64 %201, i64 4
store double %245, double* %246
%247 = call i32 @atoi(i8* %24)
%248 = call double @pow(i32 10, i32 %247)
%249 = load double, double* %246
%250 = fmul double %248, %249
store double %250, double* %246
br label %251
251: ; preds = %244, %241
%252 = call i32* @fgets(i8* %9, i32 80, i32* %13)
%253 = icmp eq i32* %252, null
br i1 %253, label %256, label %254
254: ; preds = %251
%255 = call i32* @fgets(i8* %9, i32 80, i32* %13)
br label %256
256: ; preds = %251, %254
%257 = add nuw nsw i64 %201, 1
%258 = icmp eq i64 %257, %38
br i1 %258, label %259, label %200
259: ; preds = %256, %196
%260 = call i32* @fgets(i8* %9, i32 80, i32* %13)
%261 = icmp eq i32* %260, null
br i1 %261, label %262, label %39
262: ; preds = %259, %15
%263 = call i32 @fclose(i32* %13)
br label %266
264: ; preds = %7
%265 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([85 x i8], [85 x i8]* @str, i64 0, i64 0))
br label %266
266: ; preds = %264, %262
ret i32 0
}