void one_step_heun(y, dt, yval, neq, tim) double dt, *tim, *yval[2], *y;
int neq;
{
  int i;
  double t = *tim, t1;
  set_wieners(dt, y, *tim);
  rhs(t, y, yval[0], neq);
  for (i = 0; i < neq; i++)
    yval[0][i] = dt * yval[0][i] + y[i];
  t1 = t + dt;
  rhs(t1, yval[0], yval[1], neq);
  for (i = 0; i < neq; i++)
    y[i] = .5 * (y[i] + yval[0][i] + dt * yval[1][i]);
  *tim = t1;
}


x86 assembly (clang, -O0):
<one_step_heun>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    %rcx,-0x28(%rbp)
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x10(%rbp),%xmm0
mov    -0x8(%rbp),%rdi
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm1
mov    $0x2,%al
call   1040 <set_wieners@plt>
movsd  -0x38(%rbp),%xmm0
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rax
mov    (%rax),%rsi
mov    -0x1c(%rbp),%edx
mov    $0x1,%al
call   1030 <rhs@plt>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    11d6 <one_step_heun+0xb6>
movsd  -0x10(%rbp),%xmm0
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x8(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1182 <one_step_heun+0x62>
movsd  -0x38(%rbp),%xmm0
addsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm0
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%rsi
mov    -0x1c(%rbp),%edx
mov    $0x1,%al
call   1030 <rhs@plt>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1278 <one_step_heun+0x158>
mov    -0x8(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
movslq -0x2c(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  -0x10(%rbp),%xmm1
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xda7(%rip),%xmm0
mulsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    120a <one_step_heun+0xea>
movsd  -0x40(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<one_step_heun>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x20,%rsp
mov    %rcx,%r14
mov    %edx,%r12d
mov    %rsi,%r15
mov    %rdi,%rbx
movsd  (%rcx),%xmm1
movsd  %xmm1,0x8(%rsp)
movaps %xmm0,0x10(%rsp)
mov    $0x2,%al
call   1040 <set_wieners@plt>
mov    (%r15),%rsi
movsd  0x8(%rsp),%xmm0
mov    %rbx,%rdi
mov    %r12d,%edx
mov    $0x1,%al
call   1030 <rhs@plt>
mov    (%r15),%rdi
test   %r12d,%r12d
jle    1189 <one_step_heun+0x69>
mov    %r12d,%ebp
cmp    $0x4,%r12d
movsd  0x8(%rsp),%xmm0
jae    11ae <one_step_heun+0x8e>
xor    %eax,%eax
movapd 0x10(%rsp),%xmm8
jmp    12aa <one_step_heun+0x18a>
movsd  0x8(%rsp),%xmm0
addsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
mov    0x8(%r15),%rsi
mov    %r12d,%edx
mov    $0x1,%al
call   1030 <rhs@plt>
jmp    13ef <one_step_heun+0x2cf>
lea    (%rbx,%rbp,8),%rax
cmp    %rax,%rdi
movapd 0x10(%rsp),%xmm8
jae    11ce <one_step_heun+0xae>
lea    (%rdi,%rbp,8),%rax
cmp    %rbx,%rax
jbe    11ce <one_step_heun+0xae>
xor    %eax,%eax
jmp    12aa <one_step_heun+0x18a>
mov    %ebp,%eax
and    $0xfffffffc,%eax
movapd %xmm8,%xmm7
unpcklpd %xmm8,%xmm7
lea    -0x4(%rax),%rcx
mov    %rcx,%rdx
shr    $0x2,%rdx
add    $0x1,%rdx
test   %rcx,%rcx
je     14d3 <one_step_heun+0x3b3>
mov    %rdx,%rsi
and    $0xfffffffffffffffe,%rsi
xor    %ecx,%ecx
xchg   %ax,%ax
movupd (%rbx,%rcx,8),%xmm1
movupd 0x10(%rbx,%rcx,8),%xmm2
movupd (%rdi,%rcx,8),%xmm3
movupd 0x10(%rdi,%rcx,8),%xmm4
movupd 0x20(%rdi,%rcx,8),%xmm5
movupd 0x30(%rdi,%rcx,8),%xmm6
mulpd  %xmm7,%xmm3
addpd  %xmm1,%xmm3
mulpd  %xmm7,%xmm4
addpd  %xmm2,%xmm4
movupd %xmm3,(%rdi,%rcx,8)
movupd %xmm4,0x10(%rdi,%rcx,8)
movupd 0x20(%rbx,%rcx,8),%xmm1
movupd 0x30(%rbx,%rcx,8),%xmm2
mulpd  %xmm7,%xmm5
addpd  %xmm1,%xmm5
mulpd  %xmm7,%xmm6
addpd  %xmm2,%xmm6
movupd %xmm5,0x20(%rdi,%rcx,8)
movupd %xmm6,0x30(%rdi,%rcx,8)
add    $0x8,%rcx
add    $0xfffffffffffffffe,%rsi
jne    1200 <one_step_heun+0xe0>
test   $0x1,%dl
je     12a5 <one_step_heun+0x185>
movupd (%rdi,%rcx,8),%xmm1
movupd 0x10(%rdi,%rcx,8),%xmm2
movupd (%rbx,%rcx,8),%xmm3
movupd 0x10(%rbx,%rcx,8),%xmm4
mulpd  %xmm7,%xmm1
addpd  %xmm3,%xmm1
mulpd  %xmm7,%xmm2
addpd  %xmm4,%xmm2
movupd %xmm1,(%rdi,%rcx,8)
movupd %xmm2,0x10(%rdi,%rcx,8)
cmp    %rbp,%rax
je     1314 <one_step_heun+0x1f4>
mov    %rax,%rcx
not    %rcx
test   $0x1,%bpl
je     12ce <one_step_heun+0x1ae>
movsd  (%rdi,%rax,8),%xmm1
mulsd  %xmm8,%xmm1
addsd  (%rbx,%rax,8),%xmm1
movsd  %xmm1,(%rdi,%rax,8)
or     $0x1,%rax
add    %rbp,%rcx
je     1314 <one_step_heun+0x1f4>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  (%rdi,%rax,8),%xmm1
mulsd  %xmm8,%xmm1
addsd  (%rbx,%rax,8),%xmm1
movsd  %xmm1,(%rdi,%rax,8)
movsd  0x8(%rdi,%rax,8),%xmm1
mulsd  %xmm8,%xmm1
addsd  0x8(%rbx,%rax,8),%xmm1
movsd  %xmm1,0x8(%rdi,%rax,8)
add    $0x2,%rax
cmp    %rax,%rbp
jne    12e0 <one_step_heun+0x1c0>
addsd  %xmm8,%xmm0
mov    0x8(%r15),%rsi
movsd  %xmm0,0x8(%rsp)
mov    %r12d,%edx
mov    $0x1,%al
call   1030 <rhs@plt>
test   %r12d,%r12d
jle    13ef <one_step_heun+0x2cf>
mov    (%r15),%rax
mov    0x8(%r15),%rcx
cmp    $0x4,%r12d
movsd  0x8(%rsp),%xmm6
jae    1407 <one_step_heun+0x2e7>
xor    %edx,%edx
movapd 0x10(%rsp),%xmm7
mov    %rdx,%rsi
not    %rsi
test   $0x1,%bpl
je     1389 <one_step_heun+0x269>
movsd  (%rbx,%rdx,8),%xmm0
addsd  (%rax,%rdx,8),%xmm0
movsd  (%rcx,%rdx,8),%xmm1
mulsd  %xmm7,%xmm1
addsd  %xmm0,%xmm1
mulsd  0xc90(%rip),%xmm1
movsd  %xmm1,(%rbx,%rdx,8)
or     $0x1,%rdx
add    %rbp,%rsi
je     13f5 <one_step_heun+0x2d5>
movsd  0xc7a(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
movsd  (%rbx,%rdx,8),%xmm1
addsd  (%rax,%rdx,8),%xmm1
movsd  0x8(%rbx,%rdx,8),%xmm2
movsd  (%rcx,%rdx,8),%xmm3
mulsd  %xmm7,%xmm3
addsd  %xmm1,%xmm3
mulsd  %xmm0,%xmm3
movsd  %xmm3,(%rbx,%rdx,8)
addsd  0x8(%rax,%rdx,8),%xmm2
movsd  0x8(%rcx,%rdx,8),%xmm1
mulsd  %xmm7,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rbx,%rdx,8)
add    $0x2,%rdx
cmp    %rdx,%rbp
jne    13a0 <one_step_heun+0x280>
jmp    13f5 <one_step_heun+0x2d5>
movsd  0x8(%rsp),%xmm6
movsd  %xmm6,(%r14)
add    $0x20,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
lea    (%rbx,%rbp,8),%rdx
lea    (%rax,%rbp,8),%rsi
lea    (%rcx,%rbp,8),%rdi
cmp    %rbx,%rsi
seta   %r8b
cmp    %rdx,%rax
setb   %r9b
cmp    %rbx,%rdi
seta   %sil
cmp    %rdx,%rcx
setb   %dil
xor    %edx,%edx
test   %r9b,%r8b
movapd 0x10(%rsp),%xmm7
jne    1355 <one_step_heun+0x235>
and    %dil,%sil
jne    1355 <one_step_heun+0x235>
mov    %ebp,%edx
and    $0xfffffffc,%edx
movapd %xmm7,%xmm0
unpcklpd %xmm7,%xmm0
lea    0x0(,%rbp,8),%rsi
and    $0xffffffffffffffe0,%rsi
xor    %edi,%edi
movapd 0xb94(%rip),%xmm1
nopl   0x0(%rax)
movupd (%rbx,%rdi,1),%xmm2
movupd 0x10(%rbx,%rdi,1),%xmm3
movupd (%rax,%rdi,1),%xmm4
addpd  %xmm2,%xmm4
movupd 0x10(%rax,%rdi,1),%xmm2
addpd  %xmm3,%xmm2
movupd (%rcx,%rdi,1),%xmm3
movupd 0x10(%rcx,%rdi,1),%xmm5
mulpd  %xmm0,%xmm3
addpd  %xmm4,%xmm3
mulpd  %xmm0,%xmm5
addpd  %xmm2,%xmm5
mulpd  %xmm1,%xmm3
mulpd  %xmm1,%xmm5
movupd %xmm3,(%rbx,%rdi,1)
movupd %xmm5,0x10(%rbx,%rdi,1)
add    $0x20,%rdi
cmp    %rdi,%rsi
jne    1470 <one_step_heun+0x350>
cmp    %rbp,%rdx
jne    1355 <one_step_heun+0x235>
jmp    13f5 <one_step_heun+0x2d5>
xor    %ecx,%ecx
test   $0x1,%dl
jne    1274 <one_step_heun+0x154>
jmp    12a5 <one_step_heun+0x185>

LLVM IR (-O0):
define void @one_step_heun(double* %0, double %1, double** %2, i32 %3, double* %4) {
%6 = alloca double*
%7 = alloca double
%8 = alloca double**
%9 = alloca i32
%10 = alloca double*
%11 = alloca i32
%12 = alloca double
%13 = alloca double
store double* %0, double** %6
store double %1, double* %7
store double** %2, double*** %8
store i32 %3, i32* %9
store double* %4, double** %10
%14 = load double*, double** %10
%15 = load double, double* %14
store double %15, double* %12
%16 = load double, double* %7
%17 = load double*, double** %6
%18 = load double*, double** %10
%19 = load double, double* %18
%20 = call i32 (double, double*, double, ...) bitcast (i32 (...)* @set_wieners to i32 (double, double*, double, ...)*)(double %16, double* %17, double %19)
%21 = load double, double* %12
%22 = load double*, double** %6
%23 = load double**, double*** %8
%24 = getelementptr inbounds double*, double** %23, i64 0
%25 = load double*, double** %24
%26 = load i32, i32* %9
%27 = call i32 (double, double*, double*, i32, ...) bitcast (i32 (...)* @rhs to i32 (double, double*, double*, i32, ...)*)(double %21, double* %22, double* %25, i32 %26)
store i32 0, i32* %11
br label %28
28: ; preds = %53, %5
%29 = load i32, i32* %11
%30 = load i32, i32* %9
%31 = icmp slt i32 %29, %30
br i1 %31, label %32, label %56
32: ; preds = %28
%33 = load double, double* %7
%34 = load double**, double*** %8
%35 = getelementptr inbounds double*, double** %34, i64 0
%36 = load double*, double** %35
%37 = load i32, i32* %11
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds double, double* %36, i64 %38
%40 = load double, double* %39
%41 = load double*, double** %6
%42 = load i32, i32* %11
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds double, double* %41, i64 %43
%45 = load double, double* %44
%46 = call double @llvm.fmuladd.f64(double %33, double %40, double %45)
%47 = load double**, double*** %8
%48 = getelementptr inbounds double*, double** %47, i64 0
%49 = load double*, double** %48
%50 = load i32, i32* %11
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds double, double* %49, i64 %51
store double %46, double* %52
br label %53
53: ; preds = %32
%54 = load i32, i32* %11
%55 = add nsw i32 %54, 1
store i32 %55, i32* %11
br label %28
56: ; preds = %28
%57 = load double, double* %12
%58 = load double, double* %7
%59 = fadd double %57, %58
store double %59, double* %13
%60 = load double, double* %13
%61 = load double**, double*** %8
%62 = getelementptr inbounds double*, double** %61, i64 0
%63 = load double*, double** %62
%64 = load double**, double*** %8
%65 = getelementptr inbounds double*, double** %64, i64 1
%66 = load double*, double** %65
%67 = load i32, i32* %9
%68 = call i32 (double, double*, double*, i32, ...) bitcast (i32 (...)* @rhs to i32 (double, double*, double*, i32, ...)*)(double %60, double* %63, double* %66, i32 %67)
store i32 0, i32* %11
br label %69
69: ; preds = %101, %56
%70 = load i32, i32* %11
%71 = load i32, i32* %9
%72 = icmp slt i32 %70, %71
br i1 %72, label %73, label %104
73: ; preds = %69
%74 = load double*, double** %6
%75 = load i32, i32* %11
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds double, double* %74, i64 %76
%78 = load double, double* %77
%79 = load double**, double*** %8
%80 = getelementptr inbounds double*, double** %79, i64 0
%81 = load double*, double** %80
%82 = load i32, i32* %11
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds double, double* %81, i64 %83
%85 = load double, double* %84
%86 = fadd double %78, %85
%87 = load double, double* %7
%88 = load double**, double*** %8
%89 = getelementptr inbounds double*, double** %88, i64 1
%90 = load double*, double** %89
%91 = load i32, i32* %11
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds double, double* %90, i64 %92
%94 = load double, double* %93
%95 = call double @llvm.fmuladd.f64(double %87, double %94, double %86)
%96 = fmul double 5.000000e-01, %95
%97 = load double*, double** %6
%98 = load i32, i32* %11
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds double, double* %97, i64 %99
store double %96, double* %100
br label %101
101: ; preds = %73
%102 = load i32, i32* %11
%103 = add nsw i32 %102, 1
store i32 %103, i32* %11
br label %69
104: ; preds = %69
%105 = load double, double* %13
%106 = load double*, double** %10
store double %105, double* %106
ret void
}

LLVM IR (-O2):
define void @one_step_heun(double* %0, double %1, double** nocapture %2, i32 %3, double* nocapture %4) {
%6 = load double, double* %4
%7 = tail call i32 (double, double*, double, ...) bitcast (i32 (...)* @set_wieners to i32 (double, double*, double, ...)*)(double %1, double* %0, double %6)
%8 = load double*, double** %2
%9 = tail call i32 (double, double*, double*, i32, ...) bitcast (i32 (...)* @rhs to i32 (double, double*, double*, i32, ...)*)(double %6, double* %0, double* %8, i32 %3)
%10 = icmp sgt i32 %3, 0
%11 = load double*, double** %2
br i1 %10, label %17, label %12
12: ; preds = %5
%13 = fadd double %6, %1
%14 = getelementptr inbounds double*, double** %2, i64 1
%15 = load double*, double** %14
%16 = tail call i32 (double, double*, double*, i32, ...) bitcast (i32 (...)* @rhs to i32 (double, double*, double*, i32, ...)*)(double %13, double* %11, double* %15, i32 %3)
br label %233
17: ; preds = %5
%18 = zext i32 %3 to i64
%19 = icmp ult i32 %3, 4
br i1 %19, label %100, label %20
20: ; preds = %17
%21 = getelementptr double, double* %11, i64 %18
%22 = getelementptr double, double* %0, i64 %18
%23 = icmp ult double* %11, %22
%24 = icmp ugt double* %21, %0
%25 = and i1 %23, %24
br i1 %25, label %100, label %26
26: ; preds = %20
%27 = and i64 %18, 4294967292
%28 = insertelement <2 x double> poison, double %1, i64 0
%29 = shufflevector <2 x double> %28, <2 x double> poison, <2 x i32> zeroinitializer
%30 = insertelement <2 x double> poison, double %1, i64 0
%31 = shufflevector <2 x double> %30, <2 x double> poison, <2 x i32> zeroinitializer
%32 = add nsw i64 %27, -4
%33 = lshr exact i64 %32, 2
%34 = add nuw nsw i64 %33, 1
%35 = and i64 %34, 1
%36 = icmp eq i64 %32, 0
br i1 %36, label %78, label %37
37: ; preds = %26
%38 = and i64 %34, 9223372036854775806
br label %39
39: ; preds = %39, %37
%40 = phi i64 [ 0, %37 ], [ %75, %39 ]
%41 = phi i64 [ 0, %37 ], [ %76, %39 ]
%42 = getelementptr inbounds double, double* %11, i64 %40
%43 = bitcast double* %42 to <2 x double>*
%44 = load <2 x double>, <2 x double>* %43
%45 = getelementptr inbounds double, double* %42, i64 2
%46 = bitcast double* %45 to <2 x double>*
%47 = load <2 x double>, <2 x double>* %46
%48 = getelementptr inbounds double, double* %0, i64 %40
%49 = bitcast double* %48 to <2 x double>*
%50 = load <2 x double>, <2 x double>* %49
%51 = getelementptr inbounds double, double* %48, i64 2
%52 = bitcast double* %51 to <2 x double>*
%53 = load <2 x double>, <2 x double>* %52
%54 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %29, <2 x double> %44, <2 x double> %50)
%55 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %31, <2 x double> %47, <2 x double> %53)
%56 = bitcast double* %42 to <2 x double>*
store <2 x double> %54, <2 x double>* %56
%57 = bitcast double* %45 to <2 x double>*
store <2 x double> %55, <2 x double>* %57
%58 = or i64 %40, 4
%59 = getelementptr inbounds double, double* %11, i64 %58
%60 = bitcast double* %59 to <2 x double>*
%61 = load <2 x double>, <2 x double>* %60
%62 = getelementptr inbounds double, double* %59, i64 2
%63 = bitcast double* %62 to <2 x double>*
%64 = load <2 x double>, <2 x double>* %63
%65 = getelementptr inbounds double, double* %0, i64 %58
%66 = bitcast double* %65 to <2 x double>*
%67 = load <2 x double>, <2 x double>* %66
%68 = getelementptr inbounds double, double* %65, i64 2
%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> %29, <2 x double> %61, <2 x double> %67)
%72 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %31, <2 x double> %64, <2 x double> %70)
%73 = bitcast double* %59 to <2 x double>*
store <2 x double> %71, <2 x double>* %73
%74 = bitcast double* %62 to <2 x double>*
store <2 x double> %72, <2 x double>* %74
%75 = add nuw i64 %40, 8
%76 = add i64 %41, 2
%77 = icmp eq i64 %76, %38
br i1 %77, label %78, label %39
78: ; preds = %39, %26
%79 = phi i64 [ 0, %26 ], [ %75, %39 ]
%80 = icmp eq i64 %35, 0
br i1 %80, label %98, label %81
81: ; preds = %78
%82 = getelementptr inbounds double, double* %11, i64 %79
%83 = bitcast double* %82 to <2 x double>*
%84 = load <2 x double>, <2 x double>* %83
%85 = getelementptr inbounds double, double* %82, i64 2
%86 = bitcast double* %85 to <2 x double>*
%87 = load <2 x double>, <2 x double>* %86
%88 = getelementptr inbounds double, double* %0, i64 %79
%89 = bitcast double* %88 to <2 x double>*
%90 = load <2 x double>, <2 x double>* %89
%91 = getelementptr inbounds double, double* %88, i64 2
%92 = bitcast double* %91 to <2 x double>*
%93 = load <2 x double>, <2 x double>* %92
%94 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %29, <2 x double> %84, <2 x double> %90)
%95 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %31, <2 x double> %87, <2 x double> %93)
%96 = bitcast double* %82 to <2 x double>*
store <2 x double> %94, <2 x double>* %96
%97 = bitcast double* %85 to <2 x double>*
store <2 x double> %95, <2 x double>* %97
br label %98
98: ; preds = %78, %81
%99 = icmp eq i64 %27, %18
br i1 %99, label %131, label %100
100: ; preds = %20, %17, %98
%101 = phi i64 [ 0, %20 ], [ 0, %17 ], [ %27, %98 ]
%102 = xor i64 %101, -1
%103 = and i64 %18, 1
%104 = icmp eq i64 %103, 0
br i1 %104, label %112, label %105
105: ; preds = %100
%106 = getelementptr inbounds double, double* %11, i64 %101
%107 = load double, double* %106
%108 = getelementptr inbounds double, double* %0, i64 %101
%109 = load double, double* %108
%110 = tail call double @llvm.fmuladd.f64(double %1, double %107, double %109)
store double %110, double* %106
%111 = or i64 %101, 1
br label %112
112: ; preds = %105, %100
%113 = phi i64 [ %101, %100 ], [ %111, %105 ]
%114 = sub nsw i64 0, %18
%115 = icmp eq i64 %102, %114
br i1 %115, label %131, label %116
116: ; preds = %112, %116
%117 = phi i64 [ %129, %116 ], [ %113, %112 ]
%118 = getelementptr inbounds double, double* %11, i64 %117
%119 = load double, double* %118
%120 = getelementptr inbounds double, double* %0, i64 %117
%121 = load double, double* %120
%122 = tail call double @llvm.fmuladd.f64(double %1, double %119, double %121)
store double %122, double* %118
%123 = add nuw nsw i64 %117, 1
%124 = getelementptr inbounds double, double* %11, i64 %123
%125 = load double, double* %124
%126 = getelementptr inbounds double, double* %0, i64 %123
%127 = load double, double* %126
%128 = tail call double @llvm.fmuladd.f64(double %1, double %125, double %127)
store double %128, double* %124
%129 = add nuw nsw i64 %117, 2
%130 = icmp eq i64 %129, %18
br i1 %130, label %131, label %116
131: ; preds = %112, %116, %98
%132 = fadd double %6, %1
%133 = getelementptr inbounds double*, double** %2, i64 1
%134 = load double*, double** %133
%135 = tail call i32 (double, double*, double*, i32, ...) bitcast (i32 (...)* @rhs to i32 (double, double*, double*, i32, ...)*)(double %132, double* %11, double* %134, i32 %3)
br i1 %10, label %136, label %233
136: ; preds = %131
%137 = load double*, double** %2
%138 = load double*, double** %133
%139 = zext i32 %3 to i64
%140 = icmp ult i32 %3, 4
br i1 %140, label %190, label %141
141: ; preds = %136
%142 = getelementptr double, double* %0, i64 %18
%143 = getelementptr double, double* %137, i64 %18
%144 = getelementptr double, double* %138, i64 %18
%145 = icmp ugt double* %143, %0
%146 = icmp ult double* %137, %142
%147 = and i1 %145, %146
%148 = icmp ugt double* %144, %0
%149 = icmp ult double* %138, %142
%150 = and i1 %148, %149
%151 = or i1 %147, %150
br i1 %151, label %190, label %152
152: ; preds = %141
%153 = and i64 %18, 4294967292
%154 = insertelement <2 x double> poison, double %1, i64 0
%155 = shufflevector <2 x double> %154, <2 x double> poison, <2 x i32> zeroinitializer
%156 = insertelement <2 x double> poison, double %1, i64 0
%157 = shufflevector <2 x double> %156, <2 x double> poison, <2 x i32> zeroinitializer
br label %158
158: ; preds = %158, %152
%159 = phi i64 [ 0, %152 ], [ %186, %158 ]
%160 = getelementptr inbounds double, double* %0, i64 %159
%161 = bitcast double* %160 to <2 x double>*
%162 = load <2 x double>, <2 x double>* %161
%163 = getelementptr inbounds double, double* %160, i64 2
%164 = bitcast double* %163 to <2 x double>*
%165 = load <2 x double>, <2 x double>* %164
%166 = getelementptr inbounds double, double* %137, i64 %159
%167 = bitcast double* %166 to <2 x double>*
%168 = load <2 x double>, <2 x double>* %167
%169 = getelementptr inbounds double, double* %166, i64 2
%170 = bitcast double* %169 to <2 x double>*
%171 = load <2 x double>, <2 x double>* %170
%172 = fadd <2 x double> %162, %168
%173 = fadd <2 x double> %165, %171
%174 = getelementptr inbounds double, double* %138, i64 %159
%175 = bitcast double* %174 to <2 x double>*
%176 = load <2 x double>, <2 x double>* %175
%177 = getelementptr inbounds double, double* %174, i64 2
%178 = bitcast double* %177 to <2 x double>*
%179 = load <2 x double>, <2 x double>* %178
%180 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %155, <2 x double> %176, <2 x double> %172)
%181 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %157, <2 x double> %179, <2 x double> %173)
%182 = fmul <2 x double> %180, <double 5.000000e-01, double 5.000000e-01>
%183 = fmul <2 x double> %181, <double 5.000000e-01, double 5.000000e-01>
%184 = bitcast double* %160 to <2 x double>*
store <2 x double> %182, <2 x double>* %184
%185 = bitcast double* %163 to <2 x double>*
store <2 x double> %183, <2 x double>* %185
%186 = add nuw i64 %159, 4
%187 = icmp eq i64 %186, %153
br i1 %187, label %188, label %158
188: ; preds = %158
%189 = icmp eq i64 %153, %18
br i1 %189, label %233, label %190
190: ; preds = %141, %136, %188
%191 = phi i64 [ 0, %141 ], [ 0, %136 ], [ %153, %188 ]
%192 = xor i64 %191, -1
%193 = and i64 %18, 1
%194 = icmp eq i64 %193, 0
br i1 %194, label %206, label %195
195: ; preds = %190
%196 = getelementptr inbounds double, double* %0, i64 %191
%197 = load double, double* %196
%198 = getelementptr inbounds double, double* %137, i64 %191
%199 = load double, double* %198
%200 = fadd double %197, %199
%201 = getelementptr inbounds double, double* %138, i64 %191
%202 = load double, double* %201
%203 = tail call double @llvm.fmuladd.f64(double %1, double %202, double %200)
%204 = fmul double %203, 5.000000e-01
store double %204, double* %196
%205 = or i64 %191, 1
br label %206
206: ; preds = %195, %190
%207 = phi i64 [ %191, %190 ], [ %205, %195 ]
%208 = sub nsw i64 0, %18
%209 = icmp eq i64 %192, %208
br i1 %209, label %233, label %210
210: ; preds = %206, %210
%211 = phi i64 [ %231, %210 ], [ %207, %206 ]
%212 = getelementptr inbounds double, double* %0, i64 %211
%213 = load double, double* %212
%214 = getelementptr inbounds double, double* %137, i64 %211
%215 = load double, double* %214
%216 = fadd double %213, %215
%217 = getelementptr inbounds double, double* %138, i64 %211
%218 = load double, double* %217
%219 = tail call double @llvm.fmuladd.f64(double %1, double %218, double %216)
%220 = fmul double %219, 5.000000e-01
store double %220, double* %212
%221 = add nuw nsw i64 %211, 1
%222 = getelementptr inbounds double, double* %0, i64 %221
%223 = load double, double* %222
%224 = getelementptr inbounds double, double* %137, i64 %221
%225 = load double, double* %224
%226 = fadd double %223, %225
%227 = getelementptr inbounds double, double* %138, i64 %221
%228 = load double, double* %227
%229 = tail call double @llvm.fmuladd.f64(double %1, double %228, double %226)
%230 = fmul double %229, 5.000000e-01
store double %230, double* %222
%231 = add nuw nsw i64 %211, 2
%232 = icmp eq i64 %231, %139
br i1 %232, label %233, label %210
233: ; preds = %206, %210, %188, %12, %131
%234 = phi double [ %13, %12 ], [ %132, %131 ], [ %132, %188 ], [ %132, %210 ], [ %132, %206 ]
store double %234, double* %4
ret void
}