#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 EOF;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int fscanf(int /*<<< orphan*/ *, char *, double *);
int /*<<< orphan*/ *myfopen(char *, char *);
int /*<<< orphan*/ printf(char *, ...);
void parseProteinModel(double *externalAAMatrix, char *fileName) {
  FILE *f = myfopen(fileName, "rb");
  int doublesRead = 0, result = 0, i, j;
  double acc = 0.0;
  printf("\nParsing user-defined protein model from file %s\n", fileName);
  while (doublesRead < 420) {
    result = fscanf(f, "%lf", &(externalAAMatrix[doublesRead++]));
    if (result == EOF) {
      printf("Error protein model file must consist of exactly 420 entries \n");
      printf("The first 400 entries are for the rates of the AA matrix, while "
             "the\n");
      printf("last 20 should contain the empirical base frequencies\n");
      printf("Reached End of File after %d entries\n", (doublesRead - 1));
      exit(-1);
    }
  }
  fclose(f);
  for (i = 0; i < 20; i++)
    for (j = 0; j < 20; j++) {
      if (i != j) {
        if (externalAAMatrix[i * 20 + j] != externalAAMatrix[j * 20 + i]) {
          printf("Error user-defined Protein model matrix must be symmetric\n");
          printf("Entry P[%d][%d]=%f at position %d is not equal to "
                 "P[%d][%d]=%f at position %d\n",
                 i, j, externalAAMatrix[i * 20 + j], (i * 20 + j), j, i,
                 externalAAMatrix[j * 20 + i], (j * 20 + i));
          exit(-1);
        }
      }
    }
  acc = 0.0;
  for (i = 400; i < 420; i++)
    acc += externalAAMatrix[i];
  if ((acc > 1.0 + 1.0E-6) || (acc < 1.0 - 1.0E-6)) {
    printf("Base frequencies in user-defined AA substitution matrix do not sum "
           "to 1.0\n");
    printf("the sum is %1.80f\n", acc);
    exit(-1);
  }
}


x86 assembly (clang, -O0):
<parseProteinModel>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xea5(%rip),%rsi
call   1030 <myfopen@plt>
mov    %rax,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xe7e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x1a4,-0x1c(%rbp)
jge    1233 <parseProteinModel+0xe3>
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%rdx
mov    -0x1c(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x1c(%rbp)
cltq
shl    $0x3,%rax
add    %rax,%rdx
lea    0xe79(%rip),%rsi
call   1060 <fscanf@plt>
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
mov    0x2e0a(%rip),%rcx
cmp    (%rcx),%eax
jne    122e <parseProteinModel+0xde>
lea    0xe5c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe8d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xec4(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x1c(%rbp),%esi
sub    $0x1,%esi
lea    0xee7(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xffffffff,%edi
call   1070 <exit@plt>
jmp    119c <parseProteinModel+0x4c>
mov    -0x18(%rbp),%rdi
call   1040 <fclose@plt>
movl   $0x0,-0x24(%rbp)
cmpl   $0x14,-0x24(%rbp)
jge    1337 <parseProteinModel+0x1e7>
movl   $0x0,-0x28(%rbp)
cmpl   $0x14,-0x28(%rbp)
jge    1324 <parseProteinModel+0x1d4>
mov    -0x24(%rbp),%eax
cmp    -0x28(%rbp),%eax
je     1311 <parseProteinModel+0x1c1>
mov    -0x8(%rbp),%rax
imul   $0x14,-0x24(%rbp),%ecx
add    -0x28(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
imul   $0x14,-0x28(%rbp),%ecx
add    -0x24(%rbp),%ecx
movslq %ecx,%rcx
ucomisd (%rax,%rcx,8),%xmm0
jne    12a1 <parseProteinModel+0x151>
jp     12a1 <parseProteinModel+0x151>
jmp    130c <parseProteinModel+0x1bc>
lea    0xe82(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x24(%rbp),%esi
mov    -0x28(%rbp),%edx
mov    -0x8(%rbp),%rax
imul   $0x14,-0x24(%rbp),%ecx
add    -0x28(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
imul   $0x14,-0x24(%rbp),%ecx
add    -0x28(%rbp),%ecx
mov    -0x28(%rbp),%r8d
mov    -0x24(%rbp),%r9d
mov    -0x8(%rbp),%rax
imul   $0x14,-0x28(%rbp),%edi
add    -0x24(%rbp),%edi
movslq %edi,%rdi
movsd  (%rax,%rdi,8),%xmm1
imul   $0x14,-0x28(%rbp),%eax
add    -0x24(%rbp),%eax
lea    0xe6d(%rip),%rdi
mov    %eax,(%rsp)
mov    $0x2,%al
call   1050 <printf@plt>
mov    $0xffffffff,%edi
call   1070 <exit@plt>
jmp    1311 <parseProteinModel+0x1c1>
jmp    1316 <parseProteinModel+0x1c6>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1254 <parseProteinModel+0x104>
jmp    1329 <parseProteinModel+0x1d9>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1243 <parseProteinModel+0xf3>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
movl   $0x190,-0x24(%rbp)
cmpl   $0x1a4,-0x24(%rbp)
jge    1378 <parseProteinModel+0x228>
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1346 <parseProteinModel+0x1f6>
movsd  -0x30(%rbp),%xmm0
movsd  0xc7b(%rip),%xmm1
ucomisd %xmm1,%xmm0
ja     13a2 <parseProteinModel+0x252>
movsd  0xc71(%rip),%xmm0
ucomisd -0x30(%rbp),%xmm0
jbe    13cd <parseProteinModel+0x27d>
lea    0xe0b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movsd  -0x30(%rbp),%xmm0
lea    0xe43(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0xffffffff,%edi
call   1070 <exit@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parseProteinModel>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%rbx
mov    %rdi,%r15
lea    0xe95(%rip),%rsi
mov    %rbx,%rdi
call   1030 <myfopen@plt>
mov    %rax,%r14
lea    0xe86(%rip),%rdi
xor    %r13d,%r13d
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xea4(%rip),%r12
mov    0x2e40(%rip),%rbp
mov    %r15,%rbx
nopl   0x0(%rax,%rax,1)
cmp    $0xfffffffffffffe5c,%r13
je     1216 <parseProteinModel+0xb6>
mov    %r14,%rdi
mov    %r12,%rsi
mov    %rbx,%rdx
call   1070 <fscanf@plt>
add    $0xffffffffffffffff,%r13
add    $0x8,%rbx
cmp    0x0(%rbp),%eax
jne    11b0 <parseProteinModel+0x50>
not    %r13d
lea    0xf77(%rip),%rdi
call   1040 <puts@plt>
lea    0xfa9(%rip),%rdi
call   1040 <puts@plt>
lea    0xfe1(%rip),%rdi
call   1040 <puts@plt>
lea    0xe47(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xffffffff,%edi
call   1080 <exit@plt>
mov    %r14,%rdi
call   1050 <fclose@plt>
mov    $0x14,%eax
xor    %ecx,%ecx
xor    %r14d,%r14d
mov    %r15,%rdx
xor    %r12d,%r12d
jmp    124d <parseProteinModel+0xed>
add    $0x1,%r12
add    $0xa0,%rdx
add    $0x14,%r14
add    $0x1,%rax
add    $0xffffffffffffffff,%rcx
cmp    $0x14,%r12
je     12b0 <parseProteinModel+0x150>
mov    $0x1,%ebx
mov    %rax,%r13
jmp    126e <parseProteinModel+0x10e>
nopw   0x0(%rax,%rax,1)
add    $0x2,%rbx
add    $0x28,%r13
cmp    $0x15,%rbx
je     1230 <parseProteinModel+0xd0>
lea    (%rcx,%rbx,1),%rsi
cmp    $0x1,%rsi
je     1294 <parseProteinModel+0x134>
movsd  -0x8(%rdx,%rbx,8),%xmm0
ucomisd -0xa0(%r15,%r13,8),%xmm0
ff ff ff
jne    138f <parseProteinModel+0x22f>
jp     138f <parseProteinModel+0x22f>
cmp    %rbx,%r12
je     1260 <parseProteinModel+0x100>
movsd  (%rdx,%rbx,8),%xmm0
ucomisd (%r15,%r13,8),%xmm0
jne    12a8 <parseProteinModel+0x148>
jnp    1260 <parseProteinModel+0x100>
add    %rbx,%r14
jmp    139e <parseProteinModel+0x23e>
xorpd  %xmm1,%xmm1
addsd  0xc80(%r15),%xmm1
addsd  0xc88(%r15),%xmm1
addsd  0xc90(%r15),%xmm1
addsd  0xc98(%r15),%xmm1
addsd  0xca0(%r15),%xmm1
addsd  0xca8(%r15),%xmm1
addsd  0xcb0(%r15),%xmm1
addsd  0xcb8(%r15),%xmm1
addsd  0xcc0(%r15),%xmm1
addsd  0xcc8(%r15),%xmm1
addsd  0xcd0(%r15),%xmm1
addsd  0xcd8(%r15),%xmm1
addsd  0xce0(%r15),%xmm1
addsd  0xce8(%r15),%xmm1
addsd  0xcf0(%r15),%xmm1
addsd  0xcf8(%r15),%xmm1
addsd  0xd00(%r15),%xmm1
addsd  0xd08(%r15),%xmm1
addsd  0xd10(%r15),%xmm1
addsd  0xd18(%r15),%xmm1
ucomisd 0xc90(%rip),%xmm1
ja     13f0 <parseProteinModel+0x290>
movsd  0xc8e(%rip),%xmm0
ucomisd %xmm1,%xmm0
ja     13f0 <parseProteinModel+0x290>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
add    $0xffffffffffffffec,%r13
add    %rbx,%r14
add    $0xffffffffffffffff,%r14
add    $0xffffffffffffffff,%rbx
mov    %r14d,%eax
mov    %rax,0x10(%rsp)
mov    %r13d,%ebp
lea    0xd6b(%rip),%rdi
call   1040 <puts@plt>
mov    0x10(%rsp),%rax
movsd  (%r15,%rax,8),%xmm0
movsd  (%r15,%rbp,8),%xmm1
mov    %r13d,(%rsp)
lea    0xc9e(%rip),%rdi
mov    %r12d,%esi
mov    %ebx,%edx
mov    %r14d,%ecx
mov    %ebx,%r8d
mov    %r12d,%r9d
mov    $0x2,%al
call   1060 <printf@plt>
mov    $0xffffffff,%edi
call   1080 <exit@plt>
lea    0xcda(%rip),%rdi
movsd  %xmm1,0x10(%rsp)
call   1040 <puts@plt>
lea    0xcb5(%rip),%rdi
movsd  0x10(%rsp),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
mov    $0xffffffff,%edi
call   1080 <exit@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"rb\00"
@.str.1 = [50 x i8] c"\0AParsing user-defined protein model from file %s\0A\00"
@.str.2 = [4 x i8] c"%lf\00"
@EOF = global i32 0
@.str.3 = [63 x i8] c"Error protein model file must consist of exactly 420 entries \0A\00"
@.str.4 = [69 x i8] c"The first 400 entries are for the rates of the AA matrix, while the\0A\00"
@.str.5 = [55 x i8] c"last 20 should contain the empirical base frequencies\0A\00"
@.str.6 = [38 x i8] c"Reached End of File after %d entries\0A\00"
@.str.7 = [59 x i8] c"Error user-defined Protein model matrix must be symmetric\0A\00"
@.str.8 = [79 x i8] c"Entry P[%d][%d]=%f at position %d is not equal to P[%d][%d]=%f at position %d\0A\00"
@.str.9 = [75 x i8] c"Base frequencies in user-defined AA substitution matrix do not sum to 1.0\0A\00"
@.str.10 = [19 x i8] c"the sum is %1.80f\0A\00"
define void @parseProteinModel(double* %0, i8* %1) {
%3 = alloca double*
%4 = alloca i8*
%5 = alloca i32*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca double
store double* %0, double** %3
store i8* %1, i8** %4
%11 = load i8*, i8** %4
%12 = call i32* @myfopen(i8* %11, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
store i32* %12, i32** %5
store i32 0, i32* %6
store i32 0, i32* %7
store double 0.000000e+00, double* %10
%13 = load i8*, i8** %4
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.1, i64 0, i64 0), i8* %13)
br label %15
15: ; preds = %37, %2
%16 = load i32, i32* %6
%17 = icmp slt i32 %16, 420
br i1 %17, label %18, label %38
18: ; preds = %15
%19 = load i32*, i32** %5
%20 = load double*, double** %3
%21 = load i32, i32* %6
%22 = add nsw i32 %21, 1
store i32 %22, i32* %6
%23 = sext i32 %21 to i64
%24 = getelementptr inbounds double, double* %20, i64 %23
%25 = call i32 @fscanf(i32* %19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double* %24)
store i32 %25, i32* %7
%26 = load i32, i32* %7
%27 = load i32, i32* @EOF
%28 = icmp eq i32 %26, %27
br i1 %28, label %29, label %37
29: ; preds = %18
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.3, i64 0, i64 0))
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.4, i64 0, i64 0))
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.5, i64 0, i64 0))
%33 = load i32, i32* %6
%34 = sub nsw i32 %33, 1
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.6, i64 0, i64 0), i32 %34)
%36 = call i32 @exit(i32 -1)
unreachable
37: ; preds = %18
br label %15
38: ; preds = %15
%39 = load i32*, i32** %5
%40 = call i32 @fclose(i32* %39)
store i32 0, i32* %8
br label %41
41: ; preds = %108, %38
%42 = load i32, i32* %8
%43 = icmp slt i32 %42, 20
br i1 %43, label %44, label %111
44: ; preds = %41
store i32 0, i32* %9
br label %45
45: ; preds = %104, %44
%46 = load i32, i32* %9
%47 = icmp slt i32 %46, 20
br i1 %47, label %48, label %107
48: ; preds = %45
%49 = load i32, i32* %8
%50 = load i32, i32* %9
%51 = icmp ne i32 %49, %50
br i1 %51, label %52, label %103
52: ; preds = %48
%53 = load double*, double** %3
%54 = load i32, i32* %8
%55 = mul nsw i32 %54, 20
%56 = load i32, i32* %9
%57 = add nsw i32 %55, %56
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds double, double* %53, i64 %58
%60 = load double, double* %59
%61 = load double*, double** %3
%62 = load i32, i32* %9
%63 = mul nsw i32 %62, 20
%64 = load i32, i32* %8
%65 = add nsw i32 %63, %64
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds double, double* %61, i64 %66
%68 = load double, double* %67
%69 = fcmp une double %60, %68
br i1 %69, label %70, label %102
70: ; preds = %52
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.7, i64 0, i64 0))
%72 = load i32, i32* %8
%73 = load i32, i32* %9
%74 = load double*, double** %3
%75 = load i32, i32* %8
%76 = mul nsw i32 %75, 20
%77 = load i32, i32* %9
%78 = add nsw i32 %76, %77
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds double, double* %74, i64 %79
%81 = load double, double* %80
%82 = load i32, i32* %8
%83 = mul nsw i32 %82, 20
%84 = load i32, i32* %9
%85 = add nsw i32 %83, %84
%86 = load i32, i32* %9
%87 = load i32, i32* %8
%88 = load double*, double** %3
%89 = load i32, i32* %9
%90 = mul nsw i32 %89, 20
%91 = load i32, i32* %8
%92 = add nsw i32 %90, %91
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds double, double* %88, i64 %93
%95 = load double, double* %94
%96 = load i32, i32* %9
%97 = mul nsw i32 %96, 20
%98 = load i32, i32* %8
%99 = add nsw i32 %97, %98
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.8, i64 0, i64 0), i32 %72, i32 %73, double %81, i32 %85, i32 %86, i32 %87, double %95, i32 %99)
%101 = call i32 @exit(i32 -1)
unreachable
102: ; preds = %52
br label %103
103: ; preds = %102, %48
br label %104
104: ; preds = %103
%105 = load i32, i32* %9
%106 = add nsw i32 %105, 1
store i32 %106, i32* %9
br label %45
107: ; preds = %45
br label %108
108: ; preds = %107
%109 = load i32, i32* %8
%110 = add nsw i32 %109, 1
store i32 %110, i32* %8
br label %41
111: ; preds = %41
store double 0.000000e+00, double* %10
store i32 400, i32* %8
br label %112
112: ; preds = %123, %111
%113 = load i32, i32* %8
%114 = icmp slt i32 %113, 420
br i1 %114, label %115, label %126
115: ; preds = %112
%116 = load double*, double** %3
%117 = load i32, i32* %8
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds double, double* %116, i64 %118
%120 = load double, double* %119
%121 = load double, double* %10
%122 = fadd double %121, %120
store double %122, double* %10
br label %123
123: ; preds = %115
%124 = load i32, i32* %8
%125 = add nsw i32 %124, 1
store i32 %125, i32* %8
br label %112
126: ; preds = %112
%127 = load double, double* %10
%128 = fcmp ogt double %127, 0x3FF000010C6F7A0B
br i1 %128, label %132, label %129
129: ; preds = %126
%130 = load double, double* %10
%131 = fcmp olt double %130, 0x3FEFFFFDE7210BE9
br i1 %131, label %132, label %137
132: ; preds = %129, %126
%133 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.9, i64 0, i64 0))
%134 = load double, double* %10
%135 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0), double %134)
%136 = call i32 @exit(i32 -1)
unreachable
137: ; preds = %129
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"rb\00"
@.str.1 = [50 x i8] c"\0AParsing user-defined protein model from file %s\0A\00"
@.str.2 = [4 x i8] c"%lf\00"
@EOF = global i32 0
@.str.6 = [38 x i8] c"Reached End of File after %d entries\0A\00"
@.str.8 = [79 x i8] c"Entry P[%d][%d]=%f at position %d is not equal to P[%d][%d]=%f at position %d\0A\00"
@.str.10 = [19 x i8] c"the sum is %1.80f\0A\00"
@str = [74 x i8] c"Base frequencies in user-defined AA substitution matrix do not sum to 1.0\00"
@str.11 = [58 x i8] c"Error user-defined Protein model matrix must be symmetric\00"
@str.12 = [62 x i8] c"Error protein model file must consist of exactly 420 entries \00"
@str.13 = [68 x i8] c"The first 400 entries are for the rates of the AA matrix, while the\00"
@str.14 = [54 x i8] c"last 20 should contain the empirical base frequencies\00"
define void @parseProteinModel(double* %0, i8* %1) {
%3 = tail call i32* @myfopen(i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.1, i64 0, i64 0), i8* %1)
br label %5
5: ; preds = %8, %2
%6 = phi i64 [ %9, %8 ], [ 0, %2 ]
%7 = icmp eq i64 %6, 420
br i1 %7, label %21, label %8
8: ; preds = %5
%9 = add nuw nsw i64 %6, 1
%10 = getelementptr inbounds double, double* %0, i64 %6
%11 = tail call i32 @fscanf(i32* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double* %10)
%12 = load i32, i32* @EOF
%13 = icmp eq i32 %11, %12
br i1 %13, label %14, label %5
14: ; preds = %8
%15 = trunc i64 %6 to i32
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.12, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.13, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.14, i64 0, i64 0))
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.6, i64 0, i64 0), i32 %15)
%20 = tail call i32 @exit(i32 -1)
unreachable
21: ; preds = %5
%22 = tail call i32 @fclose(i32* %3)
br label %23
23: ; preds = %21, %70
%24 = phi i64 [ 0, %21 ], [ %71, %70 ]
%25 = mul nuw nsw i64 %24, 20
br label %26
26: ; preds = %67, %23
%27 = phi i64 [ 0, %23 ], [ %68, %67 ]
%28 = icmp eq i64 %24, %27
br i1 %28, label %55, label %29
29: ; preds = %26
%30 = add nuw nsw i64 %27, %25
%31 = getelementptr inbounds double, double* %0, i64 %30
%32 = load double, double* %31
%33 = mul nuw nsw i64 %27, 20
%34 = add nuw nsw i64 %33, %24
%35 = getelementptr inbounds double, double* %0, i64 %34
%36 = load double, double* %35
%37 = fcmp une double %32, %36
br i1 %37, label %38, label %55
38: ; preds = %58, %29
%39 = phi i64 [ %27, %29 ], [ %56, %58 ]
%40 = phi i64 [ %30, %29 ], [ %59, %58 ]
%41 = phi i64 [ %34, %29 ], [ %63, %58 ]
%42 = trunc i64 %24 to i32
%43 = trunc i64 %39 to i32
%44 = trunc i64 %41 to i32
%45 = trunc i64 %40 to i32
%46 = and i64 %40, 4294967295
%47 = getelementptr inbounds double, double* %0, i64 %46
%48 = and i64 %41, 4294967295
%49 = getelementptr inbounds double, double* %0, i64 %48
%50 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.11, i64 0, i64 0))
%51 = load double, double* %47
%52 = load double, double* %49
%53 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @.str.8, i64 0, i64 0), i32 %42, i32 %43, double %51, i32 %45, i32 %43, i32 %42, double %52, i32 %44)
%54 = tail call i32 @exit(i32 -1)
unreachable
55: ; preds = %26, %29
%56 = or i64 %27, 1
%57 = icmp eq i64 %24, %56
br i1 %57, label %67, label %58
58: ; preds = %55
%59 = add nuw nsw i64 %56, %25
%60 = getelementptr inbounds double, double* %0, i64 %59
%61 = load double, double* %60
%62 = mul nuw nsw i64 %56, 20
%63 = add nuw nsw i64 %62, %24
%64 = getelementptr inbounds double, double* %0, i64 %63
%65 = load double, double* %64
%66 = fcmp une double %61, %65
br i1 %66, label %38, label %67
67: ; preds = %58, %55
%68 = add nuw nsw i64 %27, 2
%69 = icmp eq i64 %68, 20
br i1 %69, label %70, label %26
70: ; preds = %67
%71 = add nuw nsw i64 %24, 1
%72 = icmp eq i64 %71, 20
br i1 %72, label %73, label %23
73: ; preds = %70
%74 = getelementptr inbounds double, double* %0, i64 400
%75 = load double, double* %74
%76 = fadd double %75, 0.000000e+00
%77 = getelementptr inbounds double, double* %0, i64 401
%78 = load double, double* %77
%79 = fadd double %76, %78
%80 = getelementptr inbounds double, double* %0, i64 402
%81 = load double, double* %80
%82 = fadd double %79, %81
%83 = getelementptr inbounds double, double* %0, i64 403
%84 = load double, double* %83
%85 = fadd double %82, %84
%86 = getelementptr inbounds double, double* %0, i64 404
%87 = load double, double* %86
%88 = fadd double %85, %87
%89 = getelementptr inbounds double, double* %0, i64 405
%90 = load double, double* %89
%91 = fadd double %88, %90
%92 = getelementptr inbounds double, double* %0, i64 406
%93 = load double, double* %92
%94 = fadd double %91, %93
%95 = getelementptr inbounds double, double* %0, i64 407
%96 = load double, double* %95
%97 = fadd double %94, %96
%98 = getelementptr inbounds double, double* %0, i64 408
%99 = load double, double* %98
%100 = fadd double %97, %99
%101 = getelementptr inbounds double, double* %0, i64 409
%102 = load double, double* %101
%103 = fadd double %100, %102
%104 = getelementptr inbounds double, double* %0, i64 410
%105 = load double, double* %104
%106 = fadd double %103, %105
%107 = getelementptr inbounds double, double* %0, i64 411
%108 = load double, double* %107
%109 = fadd double %106, %108
%110 = getelementptr inbounds double, double* %0, i64 412
%111 = load double, double* %110
%112 = fadd double %109, %111
%113 = getelementptr inbounds double, double* %0, i64 413
%114 = load double, double* %113
%115 = fadd double %112, %114
%116 = getelementptr inbounds double, double* %0, i64 414
%117 = load double, double* %116
%118 = fadd double %115, %117
%119 = getelementptr inbounds double, double* %0, i64 415
%120 = load double, double* %119
%121 = fadd double %118, %120
%122 = getelementptr inbounds double, double* %0, i64 416
%123 = load double, double* %122
%124 = fadd double %121, %123
%125 = getelementptr inbounds double, double* %0, i64 417
%126 = load double, double* %125
%127 = fadd double %124, %126
%128 = getelementptr inbounds double, double* %0, i64 418
%129 = load double, double* %128
%130 = fadd double %127, %129
%131 = getelementptr inbounds double, double* %0, i64 419
%132 = load double, double* %131
%133 = fadd double %130, %132
%134 = fcmp ogt double %133, 0x3FF000010C6F7A0B
%135 = fcmp olt double %133, 0x3FEFFFFDE7210BE9
%136 = or i1 %134, %135
br i1 %136, label %137, label %141
137: ; preds = %73
%138 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str, i64 0, i64 0))
%139 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0), double %133)
%140 = tail call i32 @exit(i32 -1)
unreachable
141: ; preds = %73
ret void
}