#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 */
int /*<<< orphan*/ free_vector(double *, int, int);
void stub1(double, double *, double *);
void stub2(double, double *, double *);
double *vector(int, int);
void mmid(double y[], double dydx[], int nvar, double xs, double htot,
          int nstep, double yout[],
          void (*derivs)(double, double[], double[])) {
  int n, i;
  double x, swap, h2, h, *ym, *yn;
  ym = vector(1, nvar);
  yn = vector(1, nvar);
  h = htot / nstep;
  for (i = 1; i <= nvar; i++) {
    ym[i] = y[i];
    yn[i] = y[i] + h * dydx[i];
  }
  x = xs + h;
  (*derivs)(x, yn, yout);
  h2 = 2.0 * h;
  for (n = 2; n <= nstep; n++) {
    for (i = 1; i <= nvar; i++) {
      swap = ym[i] + h2 * yout[i];
      ym[i] = yn[i];
      yn[i] = swap;
    }
    x += h;
    (*derivs)(x, yn, yout);
  }
  for (i = 1; i <= nvar; i++)
    yout[i] = 0.5 * (ym[i] + yn[i] + h * yout[i]);
  free_vector(yn, 1, nvar);
  free_vector(ym, 1, nvar);
}


x86 assembly (clang, -O0):
<mmid>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
movsd  %xmm0,-0x20(%rbp)
movsd  %xmm1,-0x28(%rbp)
mov    %ecx,-0x2c(%rbp)
mov    %r8,-0x38(%rbp)
mov    %r9,-0x40(%rbp)
mov    -0x14(%rbp),%esi
mov    $0x1,%edi
call   1040 <vector@plt>
mov    %rax,-0x70(%rbp)
mov    -0x14(%rbp),%esi
mov    $0x1,%edi
call   1040 <vector@plt>
mov    %rax,-0x78(%rbp)
movsd  -0x28(%rbp),%xmm0
cvtsi2sdl -0x2c(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movl   $0x1,-0x48(%rbp)
mov    -0x48(%rbp),%eax
cmp    -0x14(%rbp),%eax
jg     11ef <mmid+0xcf>
mov    -0x8(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x70(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x68(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x78(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    1187 <mmid+0x67>
movsd  -0x20(%rbp),%xmm0
addsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x40(%rbp),%rax
movsd  -0x50(%rbp),%xmm0
mov    -0x78(%rbp),%rdi
mov    -0x38(%rbp),%rsi
call   *%rax
movsd  0xde7(%rip),%xmm0
mulsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movl   $0x2,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jg     12df <mmid+0x1bf>
movl   $0x1,-0x48(%rbp)
mov    -0x48(%rbp),%eax
cmp    -0x14(%rbp),%eax
jg     12af <mmid+0x18f>
mov    -0x70(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x60(%rbp),%xmm0
mov    -0x38(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x78(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x70(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x58(%rbp),%xmm0
mov    -0x78(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    123d <mmid+0x11d>
movsd  -0x68(%rbp),%xmm0
addsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x40(%rbp),%rax
movsd  -0x50(%rbp),%xmm0
mov    -0x78(%rbp),%rdi
mov    -0x38(%rbp),%rsi
call   *%rax
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    122a <mmid+0x10a>
movl   $0x1,-0x48(%rbp)
mov    -0x48(%rbp),%eax
cmp    -0x14(%rbp),%eax
jg     134d <mmid+0x22d>
mov    -0x70(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x78(%rbp),%rax
movslq -0x48(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  -0x68(%rbp),%xmm1
mov    -0x38(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xcda(%rip),%xmm0
mulsd  %xmm1,%xmm0
mov    -0x38(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    12e6 <mmid+0x1c6>
mov    -0x78(%rbp),%rdi
mov    -0x14(%rbp),%edx
mov    $0x1,%esi
call   1030 <free_vector@plt>
mov    -0x70(%rbp),%rdi
mov    -0x14(%rbp),%edx
mov    $0x1,%esi
call   1030 <free_vector@plt>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mmid>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
mov    %r9,0x48(%rsp)
mov    %r8,%r15
mov    %ecx,%ebx
movapd %xmm1,0x30(%rsp)
movsd  %xmm0,0x18(%rsp)
mov    %edx,%r14d
mov    %rsi,%r13
mov    %rdi,%rbp
mov    $0x1,%edi
mov    %edx,%esi
call   1040 <vector@plt>
mov    %rax,%r12
mov    $0x1,%edi
mov    %r14d,%esi
call   1040 <vector@plt>
movapd 0x30(%rsp),%xmm3
mov    %ebx,0x14(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sd %ebx,%xmm0
mov    %rax,%rbx
divsd  %xmm0,%xmm3
mov    %r14d,%r9d
mov    %r14,0x8(%rsp)
test   %r14d,%r14d
mov    %r9,0x40(%rsp)
jle    13ab <mmid+0x28b>
lea    0x1(%r9),%rax
mov    $0x1,%ecx
cmpl   $0x2,0x8(%rsp)
jae    1244 <mmid+0x124>
mov    %rcx,%rdx
not    %rdx
test   $0x1,%al
jne    11de <mmid+0xbe>
movsd  0x0(%rbp,%rcx,8),%xmm0
movsd  %xmm0,(%r12,%rcx,8)
movsd  0x0(%r13,%rcx,8),%xmm0
mulsd  %xmm3,%xmm0
addsd  0x0(%rbp,%rcx,8),%xmm0
movsd  %xmm0,(%rbx,%rcx,8)
add    $0x1,%rcx
add    %rax,%rdx
je     13ab <mmid+0x28b>
nopw   0x0(%rax,%rax,1)
movsd  0x0(%rbp,%rcx,8),%xmm0
movsd  %xmm0,(%r12,%rcx,8)
movsd  0x0(%r13,%rcx,8),%xmm0
mulsd  %xmm3,%xmm0
addsd  0x0(%rbp,%rcx,8),%xmm0
movsd  %xmm0,(%rbx,%rcx,8)
movsd  0x8(%rbp,%rcx,8),%xmm0
movsd  %xmm0,0x8(%r12,%rcx,8)
movsd  0x8(%r13,%rcx,8),%xmm0
mulsd  %xmm3,%xmm0
addsd  0x8(%rbp,%rcx,8),%xmm0
movsd  %xmm0,0x8(%rbx,%rcx,8)
add    $0x2,%rcx
cmp    %rcx,%rax
jne    11f0 <mmid+0xd0>
jmp    13ab <mmid+0x28b>
lea    0x8(%r12),%rsi
lea    (%r12,%rax,8),%rdi
lea    0x8(%rbx),%rdx
lea    (%rbx,%rax,8),%r11
lea    0x8(%rbp),%r8
lea    0x0(,%rax,8),%r10
add    %rbp,%r10
lea    0x8(%r13),%r9
lea    0x0(,%rax,8),%r14
add    %r13,%r14
cmp    %r11,%rsi
setb   0x30(%rsp)
cmp    %rdi,%rdx
setb   0x60(%rsp)
cmp    %r10,%rsi
setb   0x50(%rsp)
cmp    %rdi,%r8
setb   0x7(%rsp)
cmp    %r14,%rsi
setb   %sil
cmp    %rdi,%r9
setb   0x28(%rsp)
cmp    %r10,%rdx
setb   %dil
cmp    %r11,%r8
setb   0x20(%rsp)
cmp    %r14,%rdx
setb   %r8b
cmp    %r11,%r9
setb   %r10b
mov    0x60(%rsp),%dl
test   %dl,0x30(%rsp)
jne    11ae <mmid+0x8e>
mov    0x7(%rsp),%dl
and    %dl,0x50(%rsp)
mov    0x40(%rsp),%r9
jne    11ae <mmid+0x8e>
and    0x28(%rsp),%sil
jne    11ae <mmid+0x8e>
and    0x20(%rsp),%dil
jne    11ae <mmid+0x8e>
and    %r10b,%r8b
jne    11ae <mmid+0x8e>
mov    %r9d,%ecx
and    $0xfffffffe,%ecx
movapd %xmm3,%xmm0
unpcklpd %xmm3,%xmm0
lea    -0x2(%rcx),%rdx
mov    %rdx,%rsi
shr    %rsi
add    $0x1,%rsi
test   %rdx,%rdx
je     1848 <mmid+0x728>
mov    %rsi,%rdi
and    $0xfffffffffffffffe,%rdi
mov    $0x1,%edx
movupd 0x0(%rbp,%rdx,8),%xmm1
movupd %xmm1,(%r12,%rdx,8)
movupd 0x0(%r13,%rdx,8),%xmm2
mulpd  %xmm0,%xmm2
addpd  %xmm1,%xmm2
movupd %xmm2,(%rbx,%rdx,8)
movupd 0x10(%rbp,%rdx,8),%xmm1
movupd %xmm1,0x10(%r12,%rdx,8)
movupd 0x10(%r13,%rdx,8),%xmm2
mulpd  %xmm0,%xmm2
addpd  %xmm1,%xmm2
movupd %xmm2,0x10(%rbx,%rdx,8)
add    $0x4,%rdx
add    $0xfffffffffffffffe,%rdi
jne    1330 <mmid+0x210>
test   $0x1,%sil
je     13a2 <mmid+0x282>
movupd 0x0(%rbp,%rdx,8),%xmm1
movupd %xmm1,(%r12,%rdx,8)
movupd 0x0(%r13,%rdx,8),%xmm2
mulpd  %xmm2,%xmm0
addpd  %xmm1,%xmm0
movupd %xmm0,(%rbx,%rdx,8)
cmp    %rcx,%r9
jne    183c <mmid+0x71c>
movsd  0x18(%rsp),%xmm0
addsd  %xmm3,%xmm0
movsd  %xmm0,0x18(%rsp)
mov    %rbx,%rdi
mov    %r15,%rsi
movapd %xmm3,0x30(%rsp)
call   *0x48(%rsp)
movapd 0x30(%rsp),%xmm6
cmpl   $0x2,0x14(%rsp)
jge    14a8 <mmid+0x388>
cmpl   $0x0,0x8(%rsp)
mov    0x40(%rsp),%r11
jle    1808 <mmid+0x6e8>
lea    0x1(%r11),%rax
mov    $0x1,%ecx
cmpl   $0x4,0x8(%rsp)
jae    1733 <mmid+0x613>
mov    %rcx,%rdx
not    %rdx
test   $0x1,%al
jne    1435 <mmid+0x315>
movsd  (%r12,%rcx,8),%xmm0
addsd  (%rbx,%rcx,8),%xmm0
movsd  (%r15,%rcx,8),%xmm1
mulsd  %xmm6,%xmm1
addsd  %xmm0,%xmm1
mulsd  0xbe5(%rip),%xmm1
movsd  %xmm1,(%r15,%rcx,8)
add    $0x1,%rcx
add    %rax,%rdx
je     1808 <mmid+0x6e8>
movsd  0xbca(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
movsd  (%r12,%rcx,8),%xmm1
addsd  (%rbx,%rcx,8),%xmm1
movsd  (%r15,%rcx,8),%xmm2
mulsd  %xmm6,%xmm2
addsd  %xmm1,%xmm2
mulsd  %xmm0,%xmm2
movsd  %xmm2,(%r15,%rcx,8)
movsd  0x8(%r12,%rcx,8),%xmm1
addsd  0x8(%rbx,%rcx,8),%xmm1
movsd  0x8(%r15,%rcx,8),%xmm2
mulsd  %xmm6,%xmm2
addsd  %xmm1,%xmm2
mulsd  %xmm0,%xmm2
movsd  %xmm2,0x8(%r15,%rcx,8)
add    $0x2,%rcx
cmp    %rcx,%rax
jne    1450 <mmid+0x330>
jmp    1808 <mmid+0x6e8>
movapd %xmm6,%xmm2
addsd  %xmm6,%xmm2
mov    0x8(%rsp),%rax
lea    0x1(%rax),%ebp
lea    0x8(%r12),%rsi
lea    (%r12,%rbp,8),%rdi
lea    0x8(%rbx),%r9
lea    (%rbx,%rbp,8),%r8
lea    0x8(%r15),%r10
lea    (%r15,%rbp,8),%r11
lea    -0x1(%rbp),%r13
lea    -0x3(%rbp),%rcx
mov    %rcx,0x20(%rsp)
shr    %rcx
add    $0x1,%rcx
cmp    %r8,%rsi
setb   %dl
cmp    %rdi,%r9
setb   %al
and    %dl,%al
cmp    %r11,%rsi
setb   %sil
cmp    %rdi,%r10
setb   %dl
and    %sil,%dl
or     %al,%dl
cmp    %r11,%r9
setb   %sil
cmp    %r8,%r10
setb   %al
and    %sil,%al
or     %dl,%al
mov    %al,0x7(%rsp)
mov    %r13,%rax
and    $0xfffffffffffffffe,%rax
mov    %rax,0x88(%rsp)
mov    %r13,%rax
or     $0x1,%rax
mov    %rax,0x80(%rsp)
movapd %xmm2,%xmm3
unpcklpd %xmm2,%xmm3
mov    %rcx,%rax
mov    %rcx,0x90(%rsp)
and    $0xfffffffffffffffe,%rcx
mov    %rcx,0x78(%rsp)
mov    %rbp,%rax
neg    %rax
mov    %rax,0x28(%rsp)
mov    $0x2,%r14d
movapd %xmm2,0x60(%rsp)
movapd %xmm3,0x50(%rsp)
jmp    15be <mmid+0x49e>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  0x18(%rsp),%xmm0
addsd  %xmm6,%xmm0
movsd  %xmm0,0x18(%rsp)
mov    %rbx,%rdi
mov    %r15,%rsi
call   *0x48(%rsp)
movapd 0x50(%rsp),%xmm3
movapd 0x60(%rsp),%xmm2
movapd 0x30(%rsp),%xmm6
lea    0x1(%r14),%eax
cmp    0x14(%rsp),%r14d
mov    %eax,%r14d
je     13dc <mmid+0x2bc>
cmpl   $0x0,0x8(%rsp)
jle    1580 <mmid+0x460>
cmp    $0x2,%r13
setb   %al
or     0x7(%rsp),%al
mov    $0x1,%ecx
jne    1696 <mmid+0x576>
cmpq   $0x2,0x20(%rsp)
jae    15e7 <mmid+0x4c7>
xor    %eax,%eax
jmp    164a <mmid+0x52a>
mov    0x78(%rsp),%rcx
xor    %eax,%eax
xchg   %ax,%ax
movupd 0x8(%r12,%rax,8),%xmm0
movupd 0x8(%r15,%rax,8),%xmm1
mulpd  %xmm3,%xmm1
addpd  %xmm0,%xmm1
movups 0x8(%rbx,%rax,8),%xmm0
movups %xmm0,0x8(%r12,%rax,8)
movupd %xmm1,0x8(%rbx,%rax,8)
movupd 0x18(%r12,%rax,8),%xmm0
movupd 0x18(%r15,%rax,8),%xmm1
mulpd  %xmm3,%xmm1
addpd  %xmm0,%xmm1
movupd 0x18(%rbx,%rax,8),%xmm0
movupd %xmm0,0x18(%r12,%rax,8)
movupd %xmm1,0x18(%rbx,%rax,8)
add    $0x4,%rax
add    $0xfffffffffffffffe,%rcx
jne    15f0 <mmid+0x4d0>
testb  $0x1,0x90(%rsp)
01
je     1680 <mmid+0x560>
shl    $0x3,%rax
or     $0x8,%rax
movupd (%r12,%rax,1),%xmm0
movupd (%r15,%rax,1),%xmm1
mulpd  %xmm3,%xmm1
addpd  %xmm0,%xmm1
movupd (%rbx,%rax,1),%xmm0
movupd %xmm0,(%r12,%rax,1)
movupd %xmm1,(%rbx,%rax,1)
mov    0x80(%rsp),%rcx
cmp    0x88(%rsp),%r13
je     1580 <mmid+0x460>
mov    %rcx,%rax
test   $0x1,%bpl
jne    16c3 <mmid+0x5a3>
movsd  (%r15,%rcx,8),%xmm0
mulsd  %xmm2,%xmm0
addsd  (%r12,%rcx,8),%xmm0
movsd  (%rbx,%rcx,8),%xmm1
movsd  %xmm1,(%r12,%rcx,8)
movsd  %xmm0,(%rbx,%rcx,8)
lea    0x1(%rcx),%rax
not    %rcx
cmp    0x28(%rsp),%rcx
je     1580 <mmid+0x460>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  (%r15,%rax,8),%xmm0
mulsd  %xmm2,%xmm0
addsd  (%r12,%rax,8),%xmm0
movsd  (%rbx,%rax,8),%xmm1
movsd  %xmm1,(%r12,%rax,8)
movsd  %xmm0,(%rbx,%rax,8)
movsd  0x8(%r15,%rax,8),%xmm0
mulsd  %xmm2,%xmm0
addsd  0x8(%r12,%rax,8),%xmm0
movsd  0x8(%rbx,%rax,8),%xmm1
movsd  %xmm1,0x8(%r12,%rax,8)
movsd  %xmm0,0x8(%rbx,%rax,8)
add    $0x2,%rax
cmp    %rax,%rbp
jne    16e0 <mmid+0x5c0>
jmp    1580 <mmid+0x460>
lea    0x8(%r15),%rdx
lea    (%r15,%rax,8),%rsi
lea    (%r12,%rax,8),%r9
mov    %r12,%rbp
add    $0x8,%rbp
lea    (%rbx,%rax,8),%r8
mov    %rbx,%rdi
add    $0x8,%rdi
cmp    %r9,%rdx
setb   %r9b
cmp    %rsi,%rbp
setb   %r10b
cmp    %r8,%rdx
setb   %dl
cmp    %rsi,%rdi
setb   %sil
test   %r10b,%r9b
jne    1400 <mmid+0x2e0>
and    %sil,%dl
jne    1400 <mmid+0x2e0>
mov    %r11d,%edx
and    $0xfffffffc,%edx
lea    0x1(%rdx),%rcx
movapd %xmm6,%xmm0
unpcklpd %xmm6,%xmm0
xor    %esi,%esi
movapd 0x866(%rip),%xmm1
nopw   0x0(%rax,%rax,1)
movupd 0x8(%r12,%rsi,8),%xmm2
movupd 0x18(%r12,%rsi,8),%xmm3
movupd 0x8(%rbx,%rsi,8),%xmm4
addpd  %xmm2,%xmm4
movupd 0x18(%rbx,%rsi,8),%xmm2
addpd  %xmm3,%xmm2
movupd 0x8(%r15,%rsi,8),%xmm3
movupd 0x18(%r15,%rsi,8),%xmm5
mulpd  %xmm0,%xmm3
addpd  %xmm4,%xmm3
mulpd  %xmm0,%xmm5
addpd  %xmm2,%xmm5
mulpd  %xmm1,%xmm3
mulpd  %xmm1,%xmm5
movupd %xmm3,0x8(%r15,%rsi,8)
movupd %xmm5,0x18(%r15,%rsi,8)
add    $0x4,%rsi
cmp    %rsi,%rdx
jne    17a0 <mmid+0x680>
cmp    %rdx,%r11
jne    1400 <mmid+0x2e0>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    0x8(%rsp),%rbx
mov    %ebx,%edx
call   1030 <free_vector@plt>
mov    %r12,%rdi
mov    $0x1,%esi
mov    %ebx,%edx
add    $0x98,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <free_vector@plt>
mov    %r9,%rcx
or     $0x1,%rcx
jmp    11ae <mmid+0x8e>
mov    $0x1,%edx
test   $0x1,%sil
jne    1382 <mmid+0x262>
jmp    13a2 <mmid+0x282>

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

LLVM IR (-O2):
define void @mmid(double* nocapture %0, double* nocapture %1, i32 %2, double %3, double %4, i32 %5, double* %6, void (double, double*, double*)* nocapture %7) {
%9 = tail call double* @vector(i32 1, i32 %2)
%10 = tail call double* @vector(i32 1, i32 %2)
%11 = sitofp i32 %5 to double
%12 = fdiv double %4, %11
%13 = icmp slt i32 %2, 1
br i1 %13, label %148, label %14
14: ; preds = %8
%15 = add nuw i32 %2, 1
%16 = zext i32 %15 to i64
%17 = add nsw i64 %16, -1
%18 = icmp ult i64 %17, 2
br i1 %18, label %108, label %19
19: ; preds = %14
%20 = getelementptr double, double* %9, i64 1
%21 = getelementptr double, double* %9, i64 %16
%22 = getelementptr double, double* %10, i64 1
%23 = getelementptr double, double* %10, i64 %16
%24 = getelementptr double, double* %0, i64 1
%25 = getelementptr double, double* %0, i64 %16
%26 = getelementptr double, double* %1, i64 1
%27 = getelementptr double, double* %1, i64 %16
%28 = icmp ult double* %20, %23
%29 = icmp ult double* %22, %21
%30 = and i1 %28, %29
%31 = icmp ult double* %20, %25
%32 = icmp ult double* %24, %21
%33 = and i1 %31, %32
%34 = or i1 %30, %33
%35 = icmp ult double* %20, %27
%36 = icmp ult double* %26, %21
%37 = and i1 %35, %36
%38 = or i1 %34, %37
%39 = icmp ult double* %22, %25
%40 = icmp ult double* %24, %23
%41 = and i1 %39, %40
%42 = or i1 %38, %41
%43 = icmp ult double* %22, %27
%44 = icmp ult double* %26, %23
%45 = and i1 %43, %44
%46 = or i1 %42, %45
br i1 %46, label %108, label %47
47: ; preds = %19
%48 = and i64 %17, -2
%49 = or i64 %17, 1
%50 = insertelement <2 x double> poison, double %12, i64 0
%51 = shufflevector <2 x double> %50, <2 x double> poison, <2 x i32> zeroinitializer
%52 = add nsw i64 %48, -2
%53 = lshr exact i64 %52, 1
%54 = add nuw i64 %53, 1
%55 = and i64 %54, 1
%56 = icmp eq i64 %52, 0
br i1 %56, label %91, label %57
57: ; preds = %47
%58 = and i64 %54, -2
br label %59
59: ; preds = %59, %57
%60 = phi i64 [ 0, %57 ], [ %86, %59 ]
%61 = phi i64 [ 0, %57 ], [ %87, %59 ]
%62 = or i64 %60, 1
%63 = getelementptr inbounds double, double* %0, i64 %62
%64 = bitcast double* %63 to <2 x double>*
%65 = load <2 x double>, <2 x double>* %64
%66 = getelementptr inbounds double, double* %9, i64 %62
%67 = bitcast double* %66 to <2 x double>*
store <2 x double> %65, <2 x double>* %67
%68 = getelementptr inbounds double, double* %1, i64 %62
%69 = bitcast double* %68 to <2 x double>*
%70 = load <2 x double>, <2 x double>* %69
%71 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %51, <2 x double> %70, <2 x double> %65)
%72 = getelementptr inbounds double, double* %10, i64 %62
%73 = bitcast double* %72 to <2 x double>*
store <2 x double> %71, <2 x double>* %73
%74 = or i64 %60, 3
%75 = getelementptr inbounds double, double* %0, i64 %74
%76 = bitcast double* %75 to <2 x double>*
%77 = load <2 x double>, <2 x double>* %76
%78 = getelementptr inbounds double, double* %9, i64 %74
%79 = bitcast double* %78 to <2 x double>*
store <2 x double> %77, <2 x double>* %79
%80 = getelementptr inbounds double, double* %1, i64 %74
%81 = bitcast double* %80 to <2 x double>*
%82 = load <2 x double>, <2 x double>* %81
%83 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %51, <2 x double> %82, <2 x double> %77)
%84 = getelementptr inbounds double, double* %10, i64 %74
%85 = bitcast double* %84 to <2 x double>*
store <2 x double> %83, <2 x double>* %85
%86 = add nuw i64 %60, 4
%87 = add nuw i64 %61, 2
%88 = icmp eq i64 %87, %58
br i1 %88, label %89, label %59
89: ; preds = %59
%90 = or i64 %86, 1
br label %91
91: ; preds = %89, %47
%92 = phi i64 [ 1, %47 ], [ %90, %89 ]
%93 = icmp eq i64 %55, 0
br i1 %93, label %106, label %94
94: ; preds = %91
%95 = getelementptr inbounds double, double* %0, i64 %92
%96 = bitcast double* %95 to <2 x double>*
%97 = load <2 x double>, <2 x double>* %96
%98 = getelementptr inbounds double, double* %9, i64 %92
%99 = bitcast double* %98 to <2 x double>*
store <2 x double> %97, <2 x double>* %99
%100 = getelementptr inbounds double, double* %1, i64 %92
%101 = bitcast double* %100 to <2 x double>*
%102 = load <2 x double>, <2 x double>* %101
%103 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %51, <2 x double> %102, <2 x double> %97)
%104 = getelementptr inbounds double, double* %10, i64 %92
%105 = bitcast double* %104 to <2 x double>*
store <2 x double> %103, <2 x double>* %105
br label %106
106: ; preds = %91, %94
%107 = icmp eq i64 %17, %48
br i1 %107, label %148, label %108
108: ; preds = %19, %14, %106
%109 = phi i64 [ 1, %19 ], [ 1, %14 ], [ %49, %106 ]
%110 = xor i64 %109, -1
%111 = and i64 %16, 1
%112 = icmp eq i64 %111, 0
br i1 %112, label %113, label %123
113: ; preds = %108
%114 = getelementptr inbounds double, double* %0, i64 %109
%115 = load double, double* %114
%116 = getelementptr inbounds double, double* %9, i64 %109
store double %115, double* %116
%117 = load double, double* %114
%118 = getelementptr inbounds double, double* %1, i64 %109
%119 = load double, double* %118
%120 = tail call double @llvm.fmuladd.f64(double %12, double %119, double %117)
%121 = getelementptr inbounds double, double* %10, i64 %109
store double %120, double* %121
%122 = add nuw nsw i64 %109, 1
br label %123
123: ; preds = %113, %108
%124 = phi i64 [ %109, %108 ], [ %122, %113 ]
%125 = sub nsw i64 0, %16
%126 = icmp eq i64 %110, %125
br i1 %126, label %148, label %127
127: ; preds = %123, %127
%128 = phi i64 [ %146, %127 ], [ %124, %123 ]
%129 = getelementptr inbounds double, double* %0, i64 %128
%130 = load double, double* %129
%131 = getelementptr inbounds double, double* %9, i64 %128
store double %130, double* %131
%132 = load double, double* %129
%133 = getelementptr inbounds double, double* %1, i64 %128
%134 = load double, double* %133
%135 = tail call double @llvm.fmuladd.f64(double %12, double %134, double %132)
%136 = getelementptr inbounds double, double* %10, i64 %128
store double %135, double* %136
%137 = add nuw nsw i64 %128, 1
%138 = getelementptr inbounds double, double* %0, i64 %137
%139 = load double, double* %138
%140 = getelementptr inbounds double, double* %9, i64 %137
store double %139, double* %140
%141 = load double, double* %138
%142 = getelementptr inbounds double, double* %1, i64 %137
%143 = load double, double* %142
%144 = tail call double @llvm.fmuladd.f64(double %12, double %143, double %141)
%145 = getelementptr inbounds double, double* %10, i64 %137
store double %144, double* %145
%146 = add nuw nsw i64 %128, 2
%147 = icmp eq i64 %146, %16
br i1 %147, label %148, label %127
148: ; preds = %123, %127, %106, %8
%149 = fadd double %12, %3
tail call void %7(double %149, double* %10, double* %6)
%150 = fmul double %12, 2.000000e+00
%151 = icmp slt i32 %5, 2
br i1 %151, label %259, label %152
152: ; preds = %148
%153 = add i32 %2, 1
%154 = zext i32 %153 to i64
%155 = getelementptr double, double* %9, i64 1
%156 = getelementptr double, double* %9, i64 %154
%157 = getelementptr double, double* %10, i64 1
%158 = getelementptr double, double* %10, i64 %154
%159 = getelementptr double, double* %6, i64 1
%160 = getelementptr double, double* %6, i64 %154
%161 = add nsw i64 %154, -1
%162 = add nsw i64 %154, -3
%163 = lshr i64 %162, 1
%164 = add nuw i64 %163, 1
%165 = icmp ult i64 %161, 2
%166 = icmp ult double* %155, %158
%167 = icmp ult double* %157, %156
%168 = and i1 %166, %167
%169 = icmp ult double* %155, %160
%170 = icmp ult double* %159, %156
%171 = and i1 %169, %170
%172 = or i1 %168, %171
%173 = icmp ult double* %157, %160
%174 = icmp ult double* %159, %158
%175 = and i1 %173, %174
%176 = or i1 %172, %175
%177 = and i64 %161, -2
%178 = or i64 %161, 1
%179 = insertelement <2 x double> poison, double %150, i64 0
%180 = shufflevector <2 x double> %179, <2 x double> poison, <2 x i32> zeroinitializer
%181 = and i64 %164, 1
%182 = icmp ult i64 %162, 2
%183 = and i64 %164, -2
%184 = icmp eq i64 %181, 0
%185 = icmp eq i64 %161, %177
%186 = and i64 %154, 1
%187 = icmp eq i64 %186, 0
%188 = sub nsw i64 0, %154
br label %189
189: ; preds = %152, %358
%190 = phi i32 [ 2, %152 ], [ %360, %358 ]
%191 = phi double [ %149, %152 ], [ %359, %358 ]
br i1 %13, label %358, label %192
192: ; preds = %189
%193 = select i1 %165, i1 true, i1 %176
br i1 %193, label %244, label %194
194: ; preds = %192
br i1 %182, label %227, label %195
195: ; preds = %194, %195
%196 = phi i64 [ %224, %195 ], [ 0, %194 ]
%197 = phi i64 [ %225, %195 ], [ 0, %194 ]
%198 = or i64 %196, 1
%199 = getelementptr inbounds double, double* %9, i64 %198
%200 = bitcast double* %199 to <2 x double>*
%201 = load <2 x double>, <2 x double>* %200
%202 = getelementptr inbounds double, double* %6, i64 %198
%203 = bitcast double* %202 to <2 x double>*
%204 = load <2 x double>, <2 x double>* %203
%205 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %180, <2 x double> %204, <2 x double> %201)
%206 = getelementptr inbounds double, double* %10, i64 %198
%207 = bitcast double* %206 to <2 x double>*
%208 = load <2 x double>, <2 x double>* %207
%209 = bitcast double* %199 to <2 x double>*
store <2 x double> %208, <2 x double>* %209
%210 = bitcast double* %206 to <2 x double>*
store <2 x double> %205, <2 x double>* %210
%211 = or i64 %196, 3
%212 = getelementptr inbounds double, double* %9, i64 %211
%213 = bitcast double* %212 to <2 x double>*
%214 = load <2 x double>, <2 x double>* %213
%215 = getelementptr inbounds double, double* %6, i64 %211
%216 = bitcast double* %215 to <2 x double>*
%217 = load <2 x double>, <2 x double>* %216
%218 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %180, <2 x double> %217, <2 x double> %214)
%219 = getelementptr inbounds double, double* %10, i64 %211
%220 = bitcast double* %219 to <2 x double>*
%221 = load <2 x double>, <2 x double>* %220
%222 = bitcast double* %212 to <2 x double>*
store <2 x double> %221, <2 x double>* %222
%223 = bitcast double* %219 to <2 x double>*
store <2 x double> %218, <2 x double>* %223
%224 = add nuw i64 %196, 4
%225 = add nuw i64 %197, 2
%226 = icmp eq i64 %225, %183
br i1 %226, label %227, label %195
227: ; preds = %195, %194
%228 = phi i64 [ 0, %194 ], [ %224, %195 ]
br i1 %184, label %243, label %229
229: ; preds = %227
%230 = or i64 %228, 1
%231 = getelementptr inbounds double, double* %9, i64 %230
%232 = bitcast double* %231 to <2 x double>*
%233 = load <2 x double>, <2 x double>* %232
%234 = getelementptr inbounds double, double* %6, i64 %230
%235 = bitcast double* %234 to <2 x double>*
%236 = load <2 x double>, <2 x double>* %235
%237 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %180, <2 x double> %236, <2 x double> %233)
%238 = getelementptr inbounds double, double* %10, i64 %230
%239 = bitcast double* %238 to <2 x double>*
%240 = load <2 x double>, <2 x double>* %239
%241 = bitcast double* %231 to <2 x double>*
store <2 x double> %240, <2 x double>* %241
%242 = bitcast double* %238 to <2 x double>*
store <2 x double> %237, <2 x double>* %242
br label %243
243: ; preds = %227, %229
br i1 %185, label %358, label %244
244: ; preds = %192, %243
%245 = phi i64 [ 1, %192 ], [ %178, %243 ]
%246 = xor i64 %245, -1
br i1 %187, label %247, label %256
247: ; preds = %244
%248 = getelementptr inbounds double, double* %9, i64 %245
%249 = load double, double* %248
%250 = getelementptr inbounds double, double* %6, i64 %245
%251 = load double, double* %250
%252 = tail call double @llvm.fmuladd.f64(double %150, double %251, double %249)
%253 = getelementptr inbounds double, double* %10, i64 %245
%254 = load double, double* %253
store double %254, double* %248
store double %252, double* %253
%255 = add nuw nsw i64 %245, 1
br label %256
256: ; preds = %247, %244
%257 = phi i64 [ %245, %244 ], [ %255, %247 ]
%258 = icmp eq i64 %246, %188
br i1 %258, label %358, label %339
259: ; preds = %358, %148
br i1 %13, label %385, label %260
260: ; preds = %259
%261 = add nuw i32 %2, 1
%262 = zext i32 %261 to i64
%263 = add nsw i64 %262, -1
%264 = icmp ult i64 %263, 4
br i1 %264, label %319, label %265
265: ; preds = %260
%266 = getelementptr double, double* %6, i64 1
%267 = getelementptr double, double* %6, i64 %262
%268 = getelementptr double, double* %9, i64 1
%269 = getelementptr double, double* %9, i64 %262
%270 = getelementptr double, double* %10, i64 1
%271 = getelementptr double, double* %10, i64 %262
%272 = icmp ult double* %266, %269
%273 = icmp ult double* %268, %267
%274 = and i1 %272, %273
%275 = icmp ult double* %266, %271
%276 = icmp ult double* %270, %267
%277 = and i1 %275, %276
%278 = or i1 %274, %277
br i1 %278, label %319, label %279
279: ; preds = %265
%280 = and i64 %263, -4
%281 = or i64 %280, 1
%282 = insertelement <2 x double> poison, double %12, i64 0
%283 = shufflevector <2 x double> %282, <2 x double> poison, <2 x i32> zeroinitializer
%284 = insertelement <2 x double> poison, double %12, i64 0
%285 = shufflevector <2 x double> %284, <2 x double> poison, <2 x i32> zeroinitializer
br label %286
286: ; preds = %286, %279
%287 = phi i64 [ 0, %279 ], [ %315, %286 ]
%288 = or i64 %287, 1
%289 = getelementptr inbounds double, double* %9, i64 %288
%290 = bitcast double* %289 to <2 x double>*
%291 = load <2 x double>, <2 x double>* %290
%292 = getelementptr inbounds double, double* %289, i64 2
%293 = bitcast double* %292 to <2 x double>*
%294 = load <2 x double>, <2 x double>* %293
%295 = getelementptr inbounds double, double* %10, i64 %288
%296 = bitcast double* %295 to <2 x double>*
%297 = load <2 x double>, <2 x double>* %296
%298 = getelementptr inbounds double, double* %295, i64 2
%299 = bitcast double* %298 to <2 x double>*
%300 = load <2 x double>, <2 x double>* %299
%301 = fadd <2 x double> %291, %297
%302 = fadd <2 x double> %294, %300
%303 = getelementptr inbounds double, double* %6, i64 %288
%304 = bitcast double* %303 to <2 x double>*
%305 = load <2 x double>, <2 x double>* %304
%306 = getelementptr inbounds double, double* %303, i64 2
%307 = bitcast double* %306 to <2 x double>*
%308 = load <2 x double>, <2 x double>* %307
%309 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %283, <2 x double> %305, <2 x double> %301)
%310 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %285, <2 x double> %308, <2 x double> %302)
%311 = fmul <2 x double> %309, <double 5.000000e-01, double 5.000000e-01>
%312 = fmul <2 x double> %310, <double 5.000000e-01, double 5.000000e-01>
%313 = bitcast double* %303 to <2 x double>*
store <2 x double> %311, <2 x double>* %313
%314 = bitcast double* %306 to <2 x double>*
store <2 x double> %312, <2 x double>* %314
%315 = add nuw i64 %287, 4
%316 = icmp eq i64 %315, %280
br i1 %316, label %317, label %286
317: ; preds = %286
%318 = icmp eq i64 %263, %280
br i1 %318, label %385, label %319
319: ; preds = %265, %260, %317
%320 = phi i64 [ 1, %265 ], [ 1, %260 ], [ %281, %317 ]
%321 = xor i64 %320, -1
%322 = and i64 %262, 1
%323 = icmp eq i64 %322, 0
br i1 %323, label %324, label %335
324: ; preds = %319
%325 = getelementptr inbounds double, double* %9, i64 %320
%326 = load double, double* %325
%327 = getelementptr inbounds double, double* %10, i64 %320
%328 = load double, double* %327
%329 = fadd double %326, %328
%330 = getelementptr inbounds double, double* %6, i64 %320
%331 = load double, double* %330
%332 = tail call double @llvm.fmuladd.f64(double %12, double %331, double %329)
%333 = fmul double %332, 5.000000e-01
store double %333, double* %330
%334 = add nuw nsw i64 %320, 1
br label %335
335: ; preds = %324, %319
%336 = phi i64 [ %320, %319 ], [ %334, %324 ]
%337 = sub nsw i64 0, %262
%338 = icmp eq i64 %321, %337
br i1 %338, label %385, label %362
339: ; preds = %256, %339
%340 = phi i64 [ %356, %339 ], [ %257, %256 ]
%341 = getelementptr inbounds double, double* %9, i64 %340
%342 = load double, double* %341
%343 = getelementptr inbounds double, double* %6, i64 %340
%344 = load double, double* %343
%345 = tail call double @llvm.fmuladd.f64(double %150, double %344, double %342)
%346 = getelementptr inbounds double, double* %10, i64 %340
%347 = load double, double* %346
store double %347, double* %341
store double %345, double* %346
%348 = add nuw nsw i64 %340, 1
%349 = getelementptr inbounds double, double* %9, i64 %348
%350 = load double, double* %349
%351 = getelementptr inbounds double, double* %6, i64 %348
%352 = load double, double* %351
%353 = tail call double @llvm.fmuladd.f64(double %150, double %352, double %350)
%354 = getelementptr inbounds double, double* %10, i64 %348
%355 = load double, double* %354
store double %355, double* %349
store double %353, double* %354
%356 = add nuw nsw i64 %340, 2
%357 = icmp eq i64 %356, %154
br i1 %357, label %358, label %339
358: ; preds = %256, %339, %243, %189
%359 = fadd double %12, %191
tail call void %7(double %359, double* %10, double* %6)
%360 = add nuw i32 %190, 1
%361 = icmp eq i32 %190, %5
br i1 %361, label %259, label %189
362: ; preds = %335, %362
%363 = phi i64 [ %383, %362 ], [ %336, %335 ]
%364 = getelementptr inbounds double, double* %9, i64 %363
%365 = load double, double* %364
%366 = getelementptr inbounds double, double* %10, i64 %363
%367 = load double, double* %366
%368 = fadd double %365, %367
%369 = getelementptr inbounds double, double* %6, i64 %363
%370 = load double, double* %369
%371 = tail call double @llvm.fmuladd.f64(double %12, double %370, double %368)
%372 = fmul double %371, 5.000000e-01
store double %372, double* %369
%373 = add nuw nsw i64 %363, 1
%374 = getelementptr inbounds double, double* %9, i64 %373
%375 = load double, double* %374
%376 = getelementptr inbounds double, double* %10, i64 %373
%377 = load double, double* %376
%378 = fadd double %375, %377
%379 = getelementptr inbounds double, double* %6, i64 %373
%380 = load double, double* %379
%381 = tail call double @llvm.fmuladd.f64(double %12, double %380, double %378)
%382 = fmul double %381, 5.000000e-01
store double %382, double* %379
%383 = add nuw nsw i64 %363, 2
%384 = icmp eq i64 %383, %262
br i1 %384, label %385, label %362
385: ; preds = %335, %362, %317, %259
%386 = tail call i32 @free_vector(double* %10, i32 1, i32 %2)
%387 = tail call i32 @free_vector(double* %9, i32 1, i32 %2)
ret void
}