void fill_cost_matrix_unconstrained(const double *x, const double *y, int n,
                                    int m, int n_dimensions,
                                    int distance_selector,
                                    const double warping_penalty,
                                    double *cost) {
  double (*dist)(const double *, const double *, const int);
  dist = distance_function(distance_selector);
  int i, j;
  cost[0] = (*dist)(&x[0], &y[0], n_dimensions);
  for (i = 1; i < n; i++)
    cost[i * m] = (*dist)(&x[i * n_dimensions], &y[0], n_dimensions) +
                  cost[(i - 1) * m] + warping_penalty;
  for (j = 1; j < m; j++)
    cost[j] = (*dist)(&x[0], &y[j * n_dimensions], n_dimensions) +
              cost[(j - 1)] + warping_penalty;
  for (i = 1; i < n; i++)
    for (j = 1; j < m; j++)
      cost[i * m + j] =
          (*dist)(&x[i * n_dimensions], &y[j * n_dimensions], n_dimensions) +
          min3(cost[(i - 1) * m + j] + warping_penalty,
               cost[(i - 1) * m + (j - 1)],
               cost[i * m + (j - 1)] + warping_penalty);
}


x86 assembly (clang, -O0):
<fill_cost_matrix_unconstrained>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
mov    %r9d,-0x20(%rbp)
movsd  %xmm0,-0x28(%rbp)
mov    -0x20(%rbp),%edi
mov    $0x0,%al
call   1030 <distance_function@plt>
cltq
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x1c(%rbp),%edx
call   *%rax
mov    0x10(%rbp),%rax
movsd  %xmm0,(%rax)
movl   $0x1,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    11e1 <fill_cost_matrix_unconstrained+0xc1>
mov    -0x30(%rbp),%rax
mov    -0x8(%rbp),%rdi
mov    -0x34(%rbp),%ecx
imul   -0x1c(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rdi
mov    -0x10(%rbp),%rsi
mov    -0x1c(%rbp),%edx
call   *%rax
mov    0x10(%rbp),%rax
mov    -0x34(%rbp),%ecx
sub    $0x1,%ecx
imul   -0x18(%rbp),%ecx
movslq %ecx,%rcx
addsd  (%rax,%rcx,8),%xmm0
addsd  -0x28(%rbp),%xmm0
mov    0x10(%rbp),%rax
mov    -0x34(%rbp),%ecx
imul   -0x18(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1177 <fill_cost_matrix_unconstrained+0x57>
movl   $0x1,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1248 <fill_cost_matrix_unconstrained+0x128>
mov    -0x30(%rbp),%rax
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x38(%rbp),%ecx
imul   -0x1c(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rsi
mov    -0x1c(%rbp),%edx
call   *%rax
mov    0x10(%rbp),%rax
mov    -0x38(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
addsd  (%rax,%rcx,8),%xmm0
addsd  -0x28(%rbp),%xmm0
mov    0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11e8 <fill_cost_matrix_unconstrained+0xc8>
movl   $0x1,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    134d <fill_cost_matrix_unconstrained+0x22d>
movl   $0x1,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    133a <fill_cost_matrix_unconstrained+0x21a>
mov    -0x30(%rbp),%rax
mov    -0x8(%rbp),%rdi
mov    -0x34(%rbp),%ecx
imul   -0x1c(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rdi
mov    -0x10(%rbp),%rsi
mov    -0x38(%rbp),%ecx
imul   -0x1c(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rsi
mov    -0x1c(%rbp),%edx
call   *%rax
movsd  %xmm0,-0x40(%rbp)
mov    0x10(%rbp),%rax
mov    -0x34(%rbp),%ecx
sub    $0x1,%ecx
imul   -0x18(%rbp),%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0x28(%rbp),%xmm0
mov    0x10(%rbp),%rax
mov    -0x34(%rbp),%ecx
sub    $0x1,%ecx
imul   -0x18(%rbp),%ecx
mov    -0x38(%rbp),%edx
sub    $0x1,%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    0x10(%rbp),%rax
mov    -0x34(%rbp),%ecx
imul   -0x18(%rbp),%ecx
mov    -0x38(%rbp),%edx
sub    $0x1,%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
addsd  -0x28(%rbp),%xmm2
mov    $0x3,%al
call   1040 <min3@plt>
movsd  -0x40(%rbp),%xmm0
cvtsi2sd %eax,%xmm1
addsd  %xmm1,%xmm0
mov    0x10(%rbp),%rax
mov    -0x34(%rbp),%ecx
imul   -0x18(%rbp),%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1262 <fill_cost_matrix_unconstrained+0x142>
jmp    133f <fill_cost_matrix_unconstrained+0x21f>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    124f <fill_cost_matrix_unconstrained+0x12f>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fill_cost_matrix_unconstrained>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
movsd  %xmm0,0x48(%rsp)
mov    %r8d,%r13d
mov    %ecx,%r12d
mov    %edx,%ebx
mov    %rsi,%r14
mov    %rdi,%rbp
mov    %r9d,%edi
xor    %eax,%eax
call   1030 <distance_function@plt>
movslq %eax,%r15
mov    %rbp,0x30(%rsp)
mov    %rbp,%rdi
mov    %r14,0x10(%rsp)
mov    %r14,%rsi
mov    %r13d,%edx
call   *%r15
mov    %r13d,%edx
mov    0xb0(%rsp),%rax
movsd  %xmm0,(%rax)
mov    %r12d,0x1c(%rsp)
movslq %r12d,%rax
mov    %rax,0x28(%rsp)
movslq %r13d,%rax
mov    %rax,0x20(%rsp)
mov    %ebx,%eax
mov    %rax,0x58(%rsp)
mov    %ebx,0x40(%rsp)
cmp    $0x2,%ebx
jl     1210 <fill_cost_matrix_unconstrained+0xf0>
mov    0x28(%rsp),%rax
lea    0x0(,%rax,8),%r13
mov    0x30(%rsp),%rax
mov    0x20(%rsp),%rcx
lea    (%rax,%rcx,8),%rbx
lea    0x0(,%rcx,8),%rax
mov    %rax,0x8(%rsp)
mov    0x58(%rsp),%rax
lea    -0x1(%rax),%rbp
mov    0xb0(%rsp),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %rbx,%rdi
mov    0x10(%rsp),%rsi
mov    %edx,%r12d
call   *%r15
mov    %r12d,%edx
addsd  (%r14),%xmm0
addsd  0x48(%rsp),%xmm0
movsd  %xmm0,(%r14,%r13,1)
add    %r13,%r14
add    0x8(%rsp),%rbx
add    $0xffffffffffffffff,%rbp
jne    11e0 <fill_cost_matrix_unconstrained+0xc0>
mov    0x1c(%rsp),%eax
mov    %eax,%ecx
mov    %rcx,0x60(%rsp)
cmp    $0x2,%eax
mov    %edx,%r14d
mov    0x30(%rsp),%r13
mov    0xb0(%rsp),%r12
jl     127f <fill_cost_matrix_unconstrained+0x15f>
mov    0x20(%rsp),%rax
mov    0x10(%rsp),%rcx
lea    (%rcx,%rax,8),%rbx
lea    0x0(,%rax,8),%rax
mov    %rax,0x8(%rsp)
mov    $0x1,%ebp
mov    %r13,%rdi
mov    %rbx,%rsi
mov    %r14d,%edx
call   *%r15
addsd  -0x8(%r12,%rbp,8),%xmm0
addsd  0x48(%rsp),%xmm0
movsd  %xmm0,(%r12,%rbp,8)
add    $0x1,%rbp
add    0x8(%rsp),%rbx
cmp    %rbp,0x60(%rsp)
jne    1250 <fill_cost_matrix_unconstrained+0x130>
mov    %r15,0x70(%rsp)
mov    %r14d,0x54(%rsp)
cmpl   $0x2,0x40(%rsp)
jl     13a8 <fill_cost_matrix_unconstrained+0x288>
mov    0x28(%rsp),%rax
lea    (%r12,%rax,8),%r13
shl    $0x3,%rax
mov    %rax,0x28(%rsp)
mov    0x20(%rsp),%rax
mov    0x10(%rsp),%rcx
lea    (%rcx,%rax,8),%rcx
mov    %rcx,0x68(%rsp)
lea    0x0(,%rax,8),%r14
mov    $0x1,%eax
mov    %rax,0x38(%rsp)
mov    0x70(%rsp),%rbp
jmp    1309 <fill_cost_matrix_unconstrained+0x1e9>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x38(%rsp),%rcx
add    $0x1,%rcx
mov    0x28(%rsp),%rax
add    %rax,%r13
mov    0x8(%rsp),%r12
add    %rax,%r12
mov    %rcx,0x38(%rsp)
cmp    0x58(%rsp),%rcx
je     13a8 <fill_cost_matrix_unconstrained+0x288>
mov    %r12,0x8(%rsp)
cmpl   $0x2,0x1c(%rsp)
mov    0x54(%rsp),%r12d
jl     12e0 <fill_cost_matrix_unconstrained+0x1c0>
mov    0x38(%rsp),%rax
imul   0x20(%rsp),%rax
mov    0x30(%rsp),%rcx
lea    (%rcx,%rax,8),%rax
mov    %rax,0x40(%rsp)
mov    $0x1,%r15d
mov    0x68(%rsp),%rbx
xchg   %ax,%ax
mov    0x40(%rsp),%rdi
mov    %rbx,%rsi
mov    %r12d,%edx
call   *%rbp
movsd  %xmm0,0x10(%rsp)
mov    0x8(%rsp),%rax
movsd  (%rax,%r15,8),%xmm0
movsd  0x48(%rsp),%xmm3
addsd  %xmm3,%xmm0
movsd  -0x8(%rax,%r15,8),%xmm1
movsd  -0x8(%r13,%r15,8),%xmm2
addsd  %xmm3,%xmm2
mov    $0x3,%al
call   1040 <min3@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
addsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x0(%r13,%r15,8)
add    $0x1,%r15
add    %r14,%rbx
cmp    %r15,0x60(%rsp)
jne    1340 <fill_cost_matrix_unconstrained+0x220>
jmp    12e0 <fill_cost_matrix_unconstrained+0x1c0>
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @fill_cost_matrix_unconstrained(double* %0, double* %1, i32 %2, i32 %3, i32 %4, i32 %5, double %6, double* %7) {
%9 = alloca double*
%10 = alloca double*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca double
%16 = alloca double*
%17 = alloca double (double*, double*, i32)*
%18 = alloca i32
%19 = alloca i32
store double* %0, double** %9
store double* %1, double** %10
store i32 %2, i32* %11
store i32 %3, i32* %12
store i32 %4, i32* %13
store i32 %5, i32* %14
store double %6, double* %15
store double* %7, double** %16
%20 = load i32, i32* %14
%21 = call i32 (i32, ...) bitcast (i32 (...)* @distance_function to i32 (i32, ...)*)(i32 %20)
%22 = sext i32 %21 to i64
%23 = inttoptr i64 %22 to double (double*, double*, i32)*
store double (double*, double*, i32)* %23, double (double*, double*, i32)** %17
%24 = load double (double*, double*, i32)*, double (double*, double*, i32)** %17
%25 = load double*, double** %9
%26 = getelementptr inbounds double, double* %25, i64 0
%27 = load double*, double** %10
%28 = getelementptr inbounds double, double* %27, i64 0
%29 = load i32, i32* %13
%30 = call double %24(double* %26, double* %28, i32 %29)
%31 = load double*, double** %16
%32 = getelementptr inbounds double, double* %31, i64 0
store double %30, double* %32
store i32 1, i32* %18
br label %33
33: ; preds = %66, %8
%34 = load i32, i32* %18
%35 = load i32, i32* %11
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %69
37: ; preds = %33
%38 = load double (double*, double*, i32)*, double (double*, double*, i32)** %17
%39 = load double*, double** %9
%40 = load i32, i32* %18
%41 = load i32, i32* %13
%42 = mul nsw i32 %40, %41
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds double, double* %39, i64 %43
%45 = load double*, double** %10
%46 = getelementptr inbounds double, double* %45, i64 0
%47 = load i32, i32* %13
%48 = call double %38(double* %44, double* %46, i32 %47)
%49 = load double*, double** %16
%50 = load i32, i32* %18
%51 = sub nsw i32 %50, 1
%52 = load i32, i32* %12
%53 = mul nsw i32 %51, %52
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds double, double* %49, i64 %54
%56 = load double, double* %55
%57 = fadd double %48, %56
%58 = load double, double* %15
%59 = fadd double %57, %58
%60 = load double*, double** %16
%61 = load i32, i32* %18
%62 = load i32, i32* %12
%63 = mul nsw i32 %61, %62
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds double, double* %60, i64 %64
store double %59, double* %65
br label %66
66: ; preds = %37
%67 = load i32, i32* %18
%68 = add nsw i32 %67, 1
store i32 %68, i32* %18
br label %33
69: ; preds = %33
store i32 1, i32* %19
br label %70
70: ; preds = %99, %69
%71 = load i32, i32* %19
%72 = load i32, i32* %12
%73 = icmp slt i32 %71, %72
br i1 %73, label %74, label %102
74: ; preds = %70
%75 = load double (double*, double*, i32)*, double (double*, double*, i32)** %17
%76 = load double*, double** %9
%77 = getelementptr inbounds double, double* %76, i64 0
%78 = load double*, double** %10
%79 = load i32, i32* %19
%80 = load i32, i32* %13
%81 = mul nsw i32 %79, %80
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds double, double* %78, i64 %82
%84 = load i32, i32* %13
%85 = call double %75(double* %77, double* %83, i32 %84)
%86 = load double*, double** %16
%87 = load i32, i32* %19
%88 = sub nsw i32 %87, 1
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds double, double* %86, i64 %89
%91 = load double, double* %90
%92 = fadd double %85, %91
%93 = load double, double* %15
%94 = fadd double %92, %93
%95 = load double*, double** %16
%96 = load i32, i32* %19
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds double, double* %95, i64 %97
store double %94, double* %98
br label %99
99: ; preds = %74
%100 = load i32, i32* %19
%101 = add nsw i32 %100, 1
store i32 %101, i32* %19
br label %70
102: ; preds = %70
store i32 1, i32* %18
br label %103
103: ; preds = %178, %102
%104 = load i32, i32* %18
%105 = load i32, i32* %11
%106 = icmp slt i32 %104, %105
br i1 %106, label %107, label %181
107: ; preds = %103
store i32 1, i32* %19
br label %108
108: ; preds = %174, %107
%109 = load i32, i32* %19
%110 = load i32, i32* %12
%111 = icmp slt i32 %109, %110
br i1 %111, label %112, label %177
112: ; preds = %108
%113 = load double (double*, double*, i32)*, double (double*, double*, i32)** %17
%114 = load double*, double** %9
%115 = load i32, i32* %18
%116 = load i32, i32* %13
%117 = mul nsw i32 %115, %116
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds double, double* %114, i64 %118
%120 = load double*, double** %10
%121 = load i32, i32* %19
%122 = load i32, i32* %13
%123 = mul nsw i32 %121, %122
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds double, double* %120, i64 %124
%126 = load i32, i32* %13
%127 = call double %113(double* %119, double* %125, i32 %126)
%128 = load double*, double** %16
%129 = load i32, i32* %18
%130 = sub nsw i32 %129, 1
%131 = load i32, i32* %12
%132 = mul nsw i32 %130, %131
%133 = load i32, i32* %19
%134 = add nsw i32 %132, %133
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds double, double* %128, i64 %135
%137 = load double, double* %136
%138 = load double, double* %15
%139 = fadd double %137, %138
%140 = load double*, double** %16
%141 = load i32, i32* %18
%142 = sub nsw i32 %141, 1
%143 = load i32, i32* %12
%144 = mul nsw i32 %142, %143
%145 = load i32, i32* %19
%146 = sub nsw i32 %145, 1
%147 = add nsw i32 %144, %146
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds double, double* %140, i64 %148
%150 = load double, double* %149
%151 = load double*, double** %16
%152 = load i32, i32* %18
%153 = load i32, i32* %12
%154 = mul nsw i32 %152, %153
%155 = load i32, i32* %19
%156 = sub nsw i32 %155, 1
%157 = add nsw i32 %154, %156
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds double, double* %151, i64 %158
%160 = load double, double* %159
%161 = load double, double* %15
%162 = fadd double %160, %161
%163 = call i32 (double, double, double, ...) bitcast (i32 (...)* @min3 to i32 (double, double, double, ...)*)(double %139, double %150, double %162)
%164 = sitofp i32 %163 to double
%165 = fadd double %127, %164
%166 = load double*, double** %16
%167 = load i32, i32* %18
%168 = load i32, i32* %12
%169 = mul nsw i32 %167, %168
%170 = load i32, i32* %19
%171 = add nsw i32 %169, %170
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds double, double* %166, i64 %172
store double %165, double* %173
br label %174
174: ; preds = %112
%175 = load i32, i32* %19
%176 = add nsw i32 %175, 1
store i32 %176, i32* %19
br label %108
177: ; preds = %108
br label %178
178: ; preds = %177
%179 = load i32, i32* %18
%180 = add nsw i32 %179, 1
store i32 %180, i32* %18
br label %103
181: ; preds = %103
ret void
}

LLVM IR (-O2):
define void @fill_cost_matrix_unconstrained(double* %0, double* %1, i32 %2, i32 %3, i32 %4, i32 %5, double %6, double* nocapture %7) {
%9 = tail call i32 (i32, ...) bitcast (i32 (...)* @distance_function to i32 (i32, ...)*)(i32 %5)
%10 = sext i32 %9 to i64
%11 = inttoptr i64 %10 to double (double*, double*, i32)*
%12 = tail call double %11(double* %0, double* %1, i32 %4)
store double %12, double* %7
%13 = icmp sgt i32 %2, 1
br i1 %13, label %14, label %18
14: ; preds = %8
%15 = sext i32 %3 to i64
%16 = sext i32 %4 to i64
%17 = zext i32 %2 to i64
br label %23
18: ; preds = %23, %8
%19 = icmp sgt i32 %3, 1
br i1 %19, label %20, label %38
20: ; preds = %18
%21 = sext i32 %4 to i64
%22 = zext i32 %3 to i64
br label %44
23: ; preds = %14, %23
%24 = phi i64 [ 1, %14 ], [ %36, %23 ]
%25 = mul nsw i64 %24, %16
%26 = getelementptr inbounds double, double* %0, i64 %25
%27 = tail call double %11(double* %26, double* %1, i32 %4)
%28 = add nsw i64 %24, -1
%29 = mul nsw i64 %28, %15
%30 = getelementptr inbounds double, double* %7, i64 %29
%31 = load double, double* %30
%32 = fadd double %27, %31
%33 = fadd double %32, %6
%34 = mul nsw i64 %24, %15
%35 = getelementptr inbounds double, double* %7, i64 %34
store double %33, double* %35
%36 = add nuw nsw i64 %24, 1
%37 = icmp eq i64 %36, %17
br i1 %37, label %18, label %23
38: ; preds = %44, %18
br i1 %13, label %39, label %92
39: ; preds = %38
%40 = sext i32 %4 to i64
%41 = sext i32 %3 to i64
%42 = zext i32 %2 to i64
%43 = zext i32 %3 to i64
br label %57
44: ; preds = %20, %44
%45 = phi i64 [ 1, %20 ], [ %55, %44 ]
%46 = mul nsw i64 %45, %21
%47 = getelementptr inbounds double, double* %1, i64 %46
%48 = tail call double %11(double* %0, double* %47, i32 %4)
%49 = add nsw i64 %45, -1
%50 = getelementptr inbounds double, double* %7, i64 %49
%51 = load double, double* %50
%52 = fadd double %48, %51
%53 = fadd double %52, %6
%54 = getelementptr inbounds double, double* %7, i64 %45
store double %53, double* %54
%55 = add nuw nsw i64 %45, 1
%56 = icmp eq i64 %55, %22
br i1 %56, label %38, label %44
57: ; preds = %39, %89
%58 = phi i64 [ 1, %39 ], [ %90, %89 ]
br i1 %19, label %59, label %89
59: ; preds = %57
%60 = mul nsw i64 %58, %40
%61 = getelementptr inbounds double, double* %0, i64 %60
%62 = add nsw i64 %58, -1
%63 = mul nsw i64 %62, %41
%64 = mul nsw i64 %58, %41
br label %65
65: ; preds = %59, %65
%66 = phi i64 [ 1, %59 ], [ %87, %65 ]
%67 = mul nsw i64 %66, %40
%68 = getelementptr inbounds double, double* %1, i64 %67
%69 = tail call double %11(double* %61, double* %68, i32 %4)
%70 = add nsw i64 %66, %63
%71 = getelementptr inbounds double, double* %7, i64 %70
%72 = load double, double* %71
%73 = fadd double %72, %6
%74 = add nsw i64 %66, -1
%75 = add nsw i64 %74, %63
%76 = getelementptr inbounds double, double* %7, i64 %75
%77 = load double, double* %76
%78 = add nsw i64 %74, %64
%79 = getelementptr inbounds double, double* %7, i64 %78
%80 = load double, double* %79
%81 = fadd double %80, %6
%82 = tail call i32 (double, double, double, ...) bitcast (i32 (...)* @min3 to i32 (double, double, double, ...)*)(double %73, double %77, double %81)
%83 = sitofp i32 %82 to double
%84 = fadd double %69, %83
%85 = add nsw i64 %66, %64
%86 = getelementptr inbounds double, double* %7, i64 %85
store double %84, double* %86
%87 = add nuw nsw i64 %66, 1
%88 = icmp eq i64 %87, %43
br i1 %88, label %89, label %65
89: ; preds = %65, %57
%90 = add nuw nsw i64 %58, 1
%91 = icmp eq i64 %90, %42
br i1 %91, label %92, label %57
92: ; preds = %89, %38
ret void
}