#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 */

/* Variables and functions */
double exp(double);
double log(int);
double *malloc(int const);
int /*<<< orphan*/ memset(double *, int /*<<< orphan*/, int const);
int /*<<< orphan*/ setmetric(char);
double *calculate_weights(int nrows, int ncolumns, double **data, int **mask,
                          double weights[], int transpose, char dist,
                          double cutoff, double exponent) {
  int i, j;
  const int ndata = (transpose == 0) ? ncolumns : nrows;
  const int nelements = (transpose == 0) ? nrows : ncolumns;
  double (*metric)(int, double **, double **, int **, int **, const double[],
                   int, int, int) = setmetric(dist);
  double *result = malloc(nelements * sizeof(double));
  if (!result)
    return NULL;
  memset(result, 0, nelements * sizeof(double));
  for (i = 0; i < nelements; i++) {
    result[i] += 1.0;
    for (j = 0; j < i; j++) {
      const double distance =
          metric(ndata, data, data, mask, mask, weights, i, j, transpose);
      if (distance < cutoff) {
        const double dweight = exp(exponent * log(1 - distance / cutoff));
        result[i] += dweight;
        result[j] += dweight;
      }
    }
  }
  for (i = 0; i < nelements; i++)
    result[i] = 1.0 / result[i];
  return result;
}


x86 assembly (clang, -O0):
<calculate_weights>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x98,%rsp
mov    0x10(%rbp),%al
mov    %edi,-0x14(%rbp)
mov    %esi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9d,-0x34(%rbp)
movsd  %xmm0,-0x40(%rbp)
movsd  %xmm1,-0x48(%rbp)
cmpl   $0x0,-0x34(%rbp)
jne    1194 <calculate_weights+0x44>
mov    -0x18(%rbp),%eax
mov    %eax,-0x7c(%rbp)
jmp    119a <calculate_weights+0x4a>
mov    -0x14(%rbp),%eax
mov    %eax,-0x7c(%rbp)
mov    -0x7c(%rbp),%eax
mov    %eax,-0x54(%rbp)
cmpl   $0x0,-0x34(%rbp)
jne    11b5 <calculate_weights+0x65>
mov    -0x14(%rbp),%eax
mov    %eax,-0x80(%rbp)
jmp    11bb <calculate_weights+0x6b>
mov    -0x18(%rbp),%eax
mov    %eax,-0x80(%rbp)
mov    -0x80(%rbp),%eax
mov    %eax,-0x58(%rbp)
movsbl 0x10(%rbp),%edi
call   1040 <setmetric@plt>
cltq
mov    %rax,-0x60(%rbp)
movslq -0x58(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x68(%rbp)
cmpq   $0x0,-0x68(%rbp)
jne    11fb <calculate_weights+0xab>
movq   $0x0,-0x10(%rbp)
jmp    1382 <calculate_weights+0x232>
mov    -0x68(%rbp),%rdi
movslq -0x58(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edx
xor    %esi,%esi
call   1030 <memset@plt>
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x58(%rbp),%eax
jge    1337 <calculate_weights+0x1e7>
mov    -0x68(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsd  0xdcd(%rip),%xmm0
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x50(%rbp)
mov    -0x50(%rbp),%eax
cmp    -0x4c(%rbp),%eax
jge    1324 <calculate_weights+0x1d4>
mov    -0x60(%rbp),%rax
mov    -0x54(%rbp),%edi
mov    -0x20(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x28(%rbp),%rcx
mov    -0x28(%rbp),%r8
mov    -0x30(%rbp),%r9
mov    -0x4c(%rbp),%ebx
mov    -0x50(%rbp),%r11d
mov    -0x34(%rbp),%r10d
mov    %ebx,(%rsp)
mov    %r11d,0x8(%rsp)
mov    %r10d,0x10(%rsp)
call   *%rax
movsd  %xmm0,-0x70(%rbp)
movsd  -0x70(%rbp),%xmm1
movsd  -0x40(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1311 <calculate_weights+0x1c1>
movsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x70(%rbp),%xmm1
divsd  -0x40(%rbp),%xmm1
movsd  0xd43(%rip),%xmm0
subsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1070 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x88(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
call   1060 <exp@plt>
movsd  %xmm0,-0x78(%rbp)
movsd  -0x78(%rbp),%xmm0
mov    -0x68(%rbp),%rax
movslq -0x4c(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x78(%rbp),%xmm0
mov    -0x68(%rbp),%rax
movslq -0x50(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
jmp    1316 <calculate_weights+0x1c6>
mov    -0x50(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x50(%rbp)
jmp    1244 <calculate_weights+0xf4>
jmp    1329 <calculate_weights+0x1d9>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    1217 <calculate_weights+0xc7>
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x58(%rbp),%eax
jge    137a <calculate_weights+0x22a>
mov    -0x68(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsd  0xca6(%rip),%xmm0
divsd  (%rax,%rcx,8),%xmm0
mov    -0x68(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    133e <calculate_weights+0x1ee>
mov    -0x68(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
add    $0x98,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<calculate_weights>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
movsd  %xmm1,0x20(%rsp)
movsd  %xmm0,0x8(%rsp)
mov    %r8,0x28(%rsp)
mov    %rcx,%rbx
mov    %rdx,%rbp
mov    %esi,%r14d
movsbl 0x70(%rsp),%eax
mov    %r9,0x30(%rsp)
test   %r9d,%r9d
mov    %edi,%ecx
cmove  %esi,%ecx
mov    %ecx,0x4(%rsp)
cmove  %edi,%r14d
mov    %eax,%edi
call   1040 <setmetric@plt>
mov    %eax,%r15d
lea    0x0(,%r14,8),%r12d
mov    %r12d,%edi
call   1050 <malloc@plt>
mov    %rax,%r13
test   %rax,%rax
je     137b <calculate_weights+0x22b>
mov    %r13,%rdi
xor    %esi,%esi
mov    %r12d,%edx
call   1030 <memset@plt>
test   %r14d,%r14d
jle    137b <calculate_weights+0x22b>
movslq %r15d,%r15
mov    %r14,0x10(%rsp)
mov    %r14d,%edi
xor    %r12d,%r12d
movsd  0xe1c(%rip),%xmm4
mov    %rdi,0x18(%rsp)
jmp    120a <calculate_weights+0xba>
nopl   0x0(%rax,%rax,1)
add    $0x1,%r12
mov    0x18(%rsp),%rdi
cmp    %rdi,%r12
movsd  0xdfc(%rip),%xmm4
je     12b8 <calculate_weights+0x168>
movsd  0x0(%r13,%r12,8),%xmm0
addsd  %xmm4,%xmm0
movsd  %xmm0,0x0(%r13,%r12,8)
test   %r12,%r12
je     11f0 <calculate_weights+0xa0>
xor    %r14d,%r14d
jmp    1239 <calculate_weights+0xe9>
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%r14
cmp    %r14,%r12
je     11f0 <calculate_weights+0xa0>
sub    $0x8,%rsp
mov    0xc(%rsp),%edi
mov    %rbp,%rsi
mov    %rbp,%rdx
mov    %rbx,%rcx
mov    %rbx,%r8
mov    0x30(%rsp),%r9
push   0x38(%rsp)
push   %r14
push   %r12
call   *%r15
add    $0x20,%rsp
movsd  0x8(%rsp),%xmm1
ucomisd %xmm0,%xmm1
jbe    1230 <calculate_weights+0xe0>
divsd  0x8(%rsp),%xmm0
movsd  0xd85(%rip),%xmm1
subsd  %xmm0,%xmm1
cvttsd2si %xmm1,%edi
call   1070 <log@plt>
mulsd  0x20(%rsp),%xmm0
call   1060 <exp@plt>
movsd  0x0(%r13,%r12,8),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x0(%r13,%r12,8)
addsd  0x0(%r13,%r14,8),%xmm0
movsd  %xmm0,0x0(%r13,%r14,8)
jmp    1230 <calculate_weights+0xe0>
mov    0x10(%rsp),%rax
test   %eax,%eax
jle    137b <calculate_weights+0x22b>
cmp    $0x1,%eax
jne    12d1 <calculate_weights+0x181>
xor    %eax,%eax
jmp    1360 <calculate_weights+0x210>
mov    %edi,%eax
and    $0xfffffffe,%eax
lea    -0x2(%rax),%rdx
mov    %rdx,%rcx
shr    %rcx
add    $0x1,%rcx
test   %rdx,%rdx
je     138d <calculate_weights+0x23d>
mov    %rcx,%rsi
and    $0xfffffffffffffffe,%rsi
xor    %edx,%edx
movapd 0xd12(%rip),%xmm0
xchg   %ax,%ax
movupd 0x0(%r13,%rdx,8),%xmm1
movupd 0x10(%r13,%rdx,8),%xmm2
movapd %xmm0,%xmm3
divpd  %xmm1,%xmm3
movupd %xmm3,0x0(%r13,%rdx,8)
movapd %xmm0,%xmm1
divpd  %xmm2,%xmm1
movupd %xmm1,0x10(%r13,%rdx,8)
add    $0x4,%rdx
add    $0xfffffffffffffffe,%rsi
jne    1300 <calculate_weights+0x1b0>
test   $0x1,%cl
je     1355 <calculate_weights+0x205>
movupd 0x0(%r13,%rdx,8),%xmm0
movapd 0xcc6(%rip),%xmm1
divpd  %xmm0,%xmm1
movupd %xmm1,0x0(%r13,%rdx,8)
cmp    %rdi,%rax
je     137b <calculate_weights+0x22b>
nopw   0x0(%rax,%rax,1)
movapd %xmm4,%xmm0
divsd  0x0(%r13,%rax,8),%xmm0
movsd  %xmm0,0x0(%r13,%rax,8)
add    $0x1,%rax
cmp    %rax,%rdi
jne    1360 <calculate_weights+0x210>
mov    %r13,%rax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %edx,%edx
test   $0x1,%cl
jne    133b <calculate_weights+0x1eb>
jmp    1355 <calculate_weights+0x205>

LLVM IR (-O0):
define double* @calculate_weights(i32 %0, i32 %1, double** %2, i32** %3, double* %4, i32 %5, i8 signext %6, double %7, double %8) {
%10 = alloca double*
%11 = alloca i32
%12 = alloca i32
%13 = alloca double**
%14 = alloca i32**
%15 = alloca double*
%16 = alloca i32
%17 = alloca i8
%18 = alloca double
%19 = alloca double
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca double (i32, double**, double**, i32**, i32**, double*, i32, i32, i32)*
%25 = alloca double*
%26 = alloca double
%27 = alloca double
store i32 %0, i32* %11
store i32 %1, i32* %12
store double** %2, double*** %13
store i32** %3, i32*** %14
store double* %4, double** %15
store i32 %5, i32* %16
store i8 %6, i8* %17
store double %7, double* %18
store double %8, double* %19
%28 = load i32, i32* %16
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %9
%31 = load i32, i32* %12
br label %34
32: ; preds = %9
%33 = load i32, i32* %11
br label %34
34: ; preds = %32, %30
%35 = phi i32 [ %31, %30 ], [ %33, %32 ]
store i32 %35, i32* %22
%36 = load i32, i32* %16
%37 = icmp eq i32 %36, 0
br i1 %37, label %38, label %40
38: ; preds = %34
%39 = load i32, i32* %11
br label %42
40: ; preds = %34
%41 = load i32, i32* %12
br label %42
42: ; preds = %40, %38
%43 = phi i32 [ %39, %38 ], [ %41, %40 ]
store i32 %43, i32* %23
%44 = load i8, i8* %17
%45 = call i32 @setmetric(i8 signext %44)
%46 = sext i32 %45 to i64
%47 = inttoptr i64 %46 to double (i32, double**, double**, i32**, i32**, double*, i32, i32, i32)*
store double (i32, double**, double**, i32**, i32**, double*, i32, i32, i32)* %47, double (i32, double**, double**, i32**, i32**, double*, i32, i32, i32)** %24
%48 = load i32, i32* %23
%49 = sext i32 %48 to i64
%50 = mul i64 %49, 8
%51 = trunc i64 %50 to i32
%52 = call double* @malloc(i32 %51)
store double* %52, double** %25
%53 = load double*, double** %25
%54 = icmp ne double* %53, null
br i1 %54, label %56, label %55
55: ; preds = %42
store double* null, double** %10
br label %146
56: ; preds = %42
%57 = load double*, double** %25
%58 = load i32, i32* %23
%59 = sext i32 %58 to i64
%60 = mul i64 %59, 8
%61 = trunc i64 %60 to i32
%62 = call i32 @memset(double* %57, i32 0, i32 %61)
store i32 0, i32* %20
br label %63
63: ; preds = %122, %56
%64 = load i32, i32* %20
%65 = load i32, i32* %23
%66 = icmp slt i32 %64, %65
br i1 %66, label %67, label %125
67: ; preds = %63
%68 = load double*, double** %25
%69 = load i32, i32* %20
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds double, double* %68, i64 %70
%72 = load double, double* %71
%73 = fadd double %72, 1.000000e+00
store double %73, double* %71
store i32 0, i32* %21
br label %74
74: ; preds = %118, %67
%75 = load i32, i32* %21
%76 = load i32, i32* %20
%77 = icmp slt i32 %75, %76
br i1 %77, label %78, label %121
78: ; preds = %74
%79 = load double (i32, double**, double**, i32**, i32**, double*, i32, i32, i32)*, double (i32, double**, double**, i32**, i32**, double*, i32, i32, i32)** %24
%80 = load i32, i32* %22
%81 = load double**, double*** %13
%82 = load double**, double*** %13
%83 = load i32**, i32*** %14
%84 = load i32**, i32*** %14
%85 = load double*, double** %15
%86 = load i32, i32* %20
%87 = load i32, i32* %21
%88 = load i32, i32* %16
%89 = call double %79(i32 %80, double** %81, double** %82, i32** %83, i32** %84, double* %85, i32 %86, i32 %87, i32 %88)
store double %89, double* %26
%90 = load double, double* %26
%91 = load double, double* %18
%92 = fcmp olt double %90, %91
br i1 %92, label %93, label %117
93: ; preds = %78
%94 = load double, double* %19
%95 = load double, double* %26
%96 = load double, double* %18
%97 = fdiv double %95, %96
%98 = fsub double 1.000000e+00, %97
%99 = fptosi double %98 to i32
%100 = call double @log(i32 %99)
%101 = fmul double %94, %100
%102 = call double @exp(double %101)
store double %102, double* %27
%103 = load double, double* %27
%104 = load double*, double** %25
%105 = load i32, i32* %20
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds double, double* %104, i64 %106
%108 = load double, double* %107
%109 = fadd double %108, %103
store double %109, double* %107
%110 = load double, double* %27
%111 = load double*, double** %25
%112 = load i32, i32* %21
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds double, double* %111, i64 %113
%115 = load double, double* %114
%116 = fadd double %115, %110
store double %116, double* %114
br label %117
117: ; preds = %93, %78
br label %118
118: ; preds = %117
%119 = load i32, i32* %21
%120 = add nsw i32 %119, 1
store i32 %120, i32* %21
br label %74
121: ; preds = %74
br label %122
122: ; preds = %121
%123 = load i32, i32* %20
%124 = add nsw i32 %123, 1
store i32 %124, i32* %20
br label %63
125: ; preds = %63
store i32 0, i32* %20
br label %126
126: ; preds = %141, %125
%127 = load i32, i32* %20
%128 = load i32, i32* %23
%129 = icmp slt i32 %127, %128
br i1 %129, label %130, label %144
130: ; preds = %126
%131 = load double*, double** %25
%132 = load i32, i32* %20
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds double, double* %131, i64 %133
%135 = load double, double* %134
%136 = fdiv double 1.000000e+00, %135
%137 = load double*, double** %25
%138 = load i32, i32* %20
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds double, double* %137, i64 %139
store double %136, double* %140
br label %141
141: ; preds = %130
%142 = load i32, i32* %20
%143 = add nsw i32 %142, 1
store i32 %143, i32* %20
br label %126
144: ; preds = %126
%145 = load double*, double** %25
store double* %145, double** %10
br label %146
146: ; preds = %144, %55
%147 = load double*, double** %10
ret double* %147
}

LLVM IR (-O2):
define double* @calculate_weights(i32 %0, i32 %1, double** %2, i32** %3, double* %4, i32 %5, i8 signext %6, double %7, double %8) {
%10 = icmp eq i32 %5, 0
%11 = select i1 %10, i32 %1, i32 %0
%12 = select i1 %10, i32 %0, i32 %1
%13 = tail call i32 @setmetric(i8 signext %6)
%14 = sext i32 %13 to i64
%15 = inttoptr i64 %14 to double (i32, double**, double**, i32**, i32**, double*, i32, i32, i32)*
%16 = shl i32 %12, 3
%17 = tail call double* @malloc(i32 %16)
%18 = icmp eq double* %17, null
br i1 %18, label %105, label %19
19: ; preds = %9
%20 = tail call i32 @memset(double* %17, i32 0, i32 %16)
%21 = icmp sgt i32 %12, 0
br i1 %21, label %22, label %105
22: ; preds = %19
%23 = zext i32 %12 to i64
br label %67
24: ; preds = %95
br i1 %21, label %25, label %105
25: ; preds = %24
%26 = zext i32 %12 to i64
%27 = icmp eq i32 %12, 1
br i1 %27, label %65, label %28
28: ; preds = %25
%29 = and i64 %23, 4294967294
%30 = add nsw i64 %29, -2
%31 = lshr exact i64 %30, 1
%32 = add nuw i64 %31, 1
%33 = and i64 %32, 1
%34 = icmp eq i64 %30, 0
br i1 %34, label %54, label %35
35: ; preds = %28
%36 = and i64 %32, -2
br label %37
37: ; preds = %37, %35
%38 = phi i64 [ 0, %35 ], [ %51, %37 ]
%39 = phi i64 [ 0, %35 ], [ %52, %37 ]
%40 = getelementptr inbounds double, double* %17, i64 %38
%41 = bitcast double* %40 to <2 x double>*
%42 = load <2 x double>, <2 x double>* %41
%43 = fdiv <2 x double> <double 1.000000e+00, double 1.000000e+00>, %42
%44 = bitcast double* %40 to <2 x double>*
store <2 x double> %43, <2 x double>* %44
%45 = or i64 %38, 2
%46 = getelementptr inbounds double, double* %17, i64 %45
%47 = bitcast double* %46 to <2 x double>*
%48 = load <2 x double>, <2 x double>* %47
%49 = fdiv <2 x double> <double 1.000000e+00, double 1.000000e+00>, %48
%50 = bitcast double* %46 to <2 x double>*
store <2 x double> %49, <2 x double>* %50
%51 = add nuw i64 %38, 4
%52 = add nuw i64 %39, 2
%53 = icmp eq i64 %52, %36
br i1 %53, label %54, label %37
54: ; preds = %37, %28
%55 = phi i64 [ 0, %28 ], [ %51, %37 ]
%56 = icmp eq i64 %33, 0
br i1 %56, label %63, label %57
57: ; preds = %54
%58 = getelementptr inbounds double, double* %17, i64 %55
%59 = bitcast double* %58 to <2 x double>*
%60 = load <2 x double>, <2 x double>* %59
%61 = fdiv <2 x double> <double 1.000000e+00, double 1.000000e+00>, %60
%62 = bitcast double* %58 to <2 x double>*
store <2 x double> %61, <2 x double>* %62
br label %63
63: ; preds = %54, %57
%64 = icmp eq i64 %29, %23
br i1 %64, label %105, label %65
65: ; preds = %25, %63
%66 = phi i64 [ 0, %25 ], [ %29, %63 ]
br label %98
67: ; preds = %22, %95
%68 = phi i64 [ 0, %22 ], [ %96, %95 ]
%69 = getelementptr inbounds double, double* %17, i64 %68
%70 = load double, double* %69
%71 = fadd double %70, 1.000000e+00
store double %71, double* %69
%72 = icmp eq i64 %68, 0
br i1 %72, label %95, label %73
73: ; preds = %67
%74 = trunc i64 %68 to i32
br label %75
75: ; preds = %73, %92
%76 = phi i64 [ 0, %73 ], [ %93, %92 ]
%77 = trunc i64 %76 to i32
%78 = tail call double %15(i32 %11, double** %2, double** %2, i32** %3, i32** %3, double* %4, i32 %74, i32 %77, i32 %5)
%79 = fcmp olt double %78, %7
br i1 %79, label %80, label %92
80: ; preds = %75
%81 = fdiv double %78, %7
%82 = fsub double 1.000000e+00, %81
%83 = fptosi double %82 to i32
%84 = tail call double @log(i32 %83)
%85 = fmul double %84, %8
%86 = tail call double @exp(double %85)
%87 = load double, double* %69
%88 = fadd double %86, %87
store double %88, double* %69
%89 = getelementptr inbounds double, double* %17, i64 %76
%90 = load double, double* %89
%91 = fadd double %86, %90
store double %91, double* %89
br label %92
92: ; preds = %80, %75
%93 = add nuw nsw i64 %76, 1
%94 = icmp eq i64 %93, %68
br i1 %94, label %95, label %75
95: ; preds = %92, %67
%96 = add nuw nsw i64 %68, 1
%97 = icmp eq i64 %96, %23
br i1 %97, label %24, label %67
98: ; preds = %65, %98
%99 = phi i64 [ %103, %98 ], [ %66, %65 ]
%100 = getelementptr inbounds double, double* %17, i64 %99
%101 = load double, double* %100
%102 = fdiv double 1.000000e+00, %101
store double %102, double* %100
%103 = add nuw nsw i64 %99, 1
%104 = icmp eq i64 %103, %26
br i1 %104, label %105, label %98
105: ; preds = %98, %63, %19, %24, %9
ret double* %17
}