void scfAccelerator(int iter, int no2, double *p0, double *p1, double *p2) {
  register int i;
  register double p00, p11, p01, beta, s0, s1, betam1;
  if (iter > 2) {
    p00 = p01 = p11 = 0.0;
    for (i = 0; i < no2; ++i) {
      s0 = p0[i] - p1[i];
      s1 = p1[i] - p2[i];
      p00 += s0 * s0;
      p01 += s0 * s1;
      p11 += s1 * s1;
    }
    beta = (p00 - p01) / (p00 - 2. * p01 + p11);
    if (beta < 1.e-3)
      beta = 1.e-3;
    if (beta > 1.5)
      beta = 1.5;
    betam1 = 1. - beta;
    for (i = 0; i < no2; ++i) {
      p2[i] = p1[i];
      p1[i] = p0[i];
      p0[i] = p1[i] * beta + p2[i] * betam1;
    }
    return;
  }
  for (i = 0; i < no2; ++i) {
    p2[i] = p1[i];
    p1[i] = p0[i];
    p0[i] = 0.5 * (p1[i] + p2[i]);
  }
}


x86 assembly (clang, -O0):
<scfAccelerator>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
cmpl   $0x2,-0x4(%rbp)
jle    12fe <scfAccelerator+0x1fe>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11eb <scfAccelerator+0xeb>
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x24(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x30(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x40(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x58(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x38(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    113f <scfAccelerator+0x3f>
movsd  -0x30(%rbp),%xmm0
subsd  -0x40(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm1
movsd  -0x40(%rbp),%xmm2
addsd  %xmm2,%xmm2
subsd  %xmm2,%xmm1
addsd  -0x38(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xdeb(%rip),%xmm0
ucomisd -0x48(%rbp),%xmm0
jbe    1235 <scfAccelerator+0x135>
movsd  0xdd8(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  0xdce(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1259 <scfAccelerator+0x159>
movsd  0xdbc(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xdb7(%rip),%xmm0
subsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    12f9 <scfAccelerator+0x1f9>
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  -0x48(%rbp),%xmm2
mov    -0x20(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  -0x60(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1272 <scfAccelerator+0x172>
jmp    1386 <scfAccelerator+0x286>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1386 <scfAccelerator+0x286>
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x20(%rbp),%rax
movslq -0x24(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm1
movsd  0xc99(%rip),%xmm0
mulsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1305 <scfAccelerator+0x205>
pop    %rbp
ret

x86 assembly (clang, -O2):
<scfAccelerator>:
push   %rbp
push   %r14
push   %rbx
cmp    $0x2,%edi
jle    1172 <scfAccelerator+0x72>
test   %esi,%esi
jle    123c <scfAccelerator+0x13c>
mov    %esi,%eax
xorpd  %xmm3,%xmm3
xorpd  %xmm0,%xmm0
xor    %edi,%edi
nopl   (%rax)
movapd %xmm3,%xmm2
movsd  (%rcx,%rdi,8),%xmm1
movsd  (%rdx,%rdi,8),%xmm3
unpcklpd %xmm1,%xmm3
movhpd (%r8,%rdi,8),%xmm1
subpd  %xmm1,%xmm3
movapd %xmm3,%xmm1
unpckhpd %xmm3,%xmm1
mulpd  %xmm3,%xmm1
mulsd  %xmm3,%xmm3
addsd  %xmm3,%xmm0
movapd %xmm1,%xmm3
addpd  %xmm2,%xmm3
add    $0x1,%rdi
cmp    %rdi,%rax
jne    1120 <scfAccelerator+0x20>
addpd  %xmm2,%xmm1
test   %esi,%esi
jg     124c <scfAccelerator+0x14c>
jmp    15ad <scfAccelerator+0x4ad>
test   %esi,%esi
jle    15ad <scfAccelerator+0x4ad>
mov    %esi,%r10d
cmp    $0x1,%esi
jne    135c <scfAccelerator+0x25c>
xor    %esi,%esi
mov    %rsi,%rax
not    %rax
test   $0x1,%r10b
je     11c0 <scfAccelerator+0xc0>
movsd  (%rcx,%rsi,8),%xmm0
movsd  %xmm0,(%r8,%rsi,8)
movsd  (%rdx,%rsi,8),%xmm0
movsd  %xmm0,(%rcx,%rsi,8)
addsd  (%r8,%rsi,8),%xmm0
mulsd  0xe59(%rip),%xmm0
movsd  %xmm0,(%rdx,%rsi,8)
or     $0x1,%rsi
add    %r10,%rax
je     15ad <scfAccelerator+0x4ad>
movsd  0xe3f(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  (%rcx,%rsi,8),%xmm1
movsd  %xmm1,(%r8,%rsi,8)
movsd  (%rdx,%rsi,8),%xmm1
movsd  %xmm1,(%rcx,%rsi,8)
addsd  (%r8,%rsi,8),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,(%rdx,%rsi,8)
movsd  0x8(%rcx,%rsi,8),%xmm1
movsd  %xmm1,0x8(%r8,%rsi,8)
movsd  0x8(%rdx,%rsi,8),%xmm1
movsd  %xmm1,0x8(%rcx,%rsi,8)
addsd  0x8(%r8,%rsi,8),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rdx,%rsi,8)
add    $0x2,%rsi
cmp    %rsi,%r10
jne    11e0 <scfAccelerator+0xe0>
jmp    15ad <scfAccelerator+0x4ad>
xorpd  %xmm1,%xmm1
xorpd  %xmm0,%xmm0
test   %esi,%esi
jle    15ad <scfAccelerator+0x4ad>
movapd %xmm0,%xmm2
subsd  %xmm1,%xmm2
movapd %xmm1,%xmm3
addsd  %xmm1,%xmm3
subsd  %xmm3,%xmm0
unpckhpd %xmm1,%xmm1
addsd  %xmm0,%xmm1
divsd  %xmm1,%xmm2
movsd  0xda4(%rip),%xmm1
maxsd  %xmm2,%xmm1
movsd  0xda0(%rip),%xmm0
minsd  %xmm1,%xmm0
movsd  0xd9c(%rip),%xmm1
subsd  %xmm0,%xmm1
mov    %esi,%r10d
cmp    $0x1,%esi
jne    147a <scfAccelerator+0x37a>
xor    %esi,%esi
mov    %rsi,%rax
not    %rax
test   $0x1,%r10b
je     12da <scfAccelerator+0x1da>
movsd  (%rcx,%rsi,8),%xmm2
movsd  %xmm2,(%r8,%rsi,8)
movsd  (%rdx,%rsi,8),%xmm2
movsd  %xmm2,(%rcx,%rsi,8)
movsd  (%r8,%rsi,8),%xmm3
mulsd  %xmm1,%xmm3
mulsd  %xmm0,%xmm2
addsd  %xmm3,%xmm2
movsd  %xmm2,(%rdx,%rsi,8)
or     $0x1,%rsi
add    %r10,%rax
je     15ad <scfAccelerator+0x4ad>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  (%rcx,%rsi,8),%xmm2
movsd  %xmm2,(%r8,%rsi,8)
movsd  (%rdx,%rsi,8),%xmm2
movsd  %xmm2,(%rcx,%rsi,8)
movsd  (%r8,%rsi,8),%xmm3
mulsd  %xmm1,%xmm3
mulsd  %xmm0,%xmm2
addsd  %xmm3,%xmm2
movsd  %xmm2,(%rdx,%rsi,8)
movsd  0x8(%rcx,%rsi,8),%xmm2
movsd  %xmm2,0x8(%r8,%rsi,8)
movsd  0x8(%rdx,%rsi,8),%xmm2
movsd  %xmm2,0x8(%rcx,%rsi,8)
movsd  0x8(%r8,%rsi,8),%xmm3
mulsd  %xmm1,%xmm3
mulsd  %xmm0,%xmm2
addsd  %xmm3,%xmm2
movsd  %xmm2,0x8(%rdx,%rsi,8)
add    $0x2,%rsi
cmp    %rsi,%r10
jne    12f0 <scfAccelerator+0x1f0>
jmp    15ad <scfAccelerator+0x4ad>
lea    (%rcx,%r10,8),%rsi
cmp    %r8,%rsi
seta   %r14b
lea    (%r8,%r10,8),%rdi
cmp    %rcx,%rdi
seta   %bl
lea    (%rdx,%r10,8),%rbp
cmp    %r8,%rbp
seta   %al
cmp    %rdx,%rdi
seta   %r9b
cmp    %rcx,%rbp
seta   %dil
cmp    %rdx,%rsi
seta   %r11b
xor    %esi,%esi
test   %bl,%r14b
jne    1188 <scfAccelerator+0x88>
and    %r9b,%al
jne    1188 <scfAccelerator+0x88>
and    %r11b,%dil
jne    1188 <scfAccelerator+0x88>
mov    %r10d,%esi
and    $0xfffffffe,%esi
lea    -0x2(%rsi),%rax
mov    %rax,%r9
shr    %r9
add    $0x1,%r9
test   %rax,%rax
je     15b2 <scfAccelerator+0x4b2>
mov    %r9,%rax
and    $0xfffffffffffffffe,%rax
xor    %edi,%edi
movapd 0xc25(%rip),%xmm0
nopl   0x0(%rax,%rax,1)
movups (%rcx,%rdi,8),%xmm1
movups %xmm1,(%r8,%rdi,8)
movupd (%rdx,%rdi,8),%xmm1
movupd %xmm1,(%rcx,%rdi,8)
movupd (%r8,%rdi,8),%xmm2
addpd  %xmm1,%xmm2
mulpd  %xmm0,%xmm2
movupd %xmm2,(%rdx,%rdi,8)
movups 0x10(%rcx,%rdi,8),%xmm1
movups %xmm1,0x10(%r8,%rdi,8)
movupd 0x10(%rdx,%rdi,8),%xmm1
movupd %xmm1,0x10(%rcx,%rdi,8)
movupd 0x10(%r8,%rdi,8),%xmm2
addpd  %xmm1,%xmm2
mulpd  %xmm0,%xmm2
movupd %xmm2,0x10(%rdx,%rdi,8)
add    $0x4,%rdi
add    $0xfffffffffffffffe,%rax
jne    13e0 <scfAccelerator+0x2e0>
test   $0x1,%r9b
je     146c <scfAccelerator+0x36c>
movups (%rcx,%rdi,8),%xmm0
movups %xmm0,(%r8,%rdi,8)
movupd (%rdx,%rdi,8),%xmm0
movupd %xmm0,(%rcx,%rdi,8)
movupd (%r8,%rdi,8),%xmm1
addpd  %xmm0,%xmm1
mulpd  0xb99(%rip),%xmm1
movupd %xmm1,(%rdx,%rdi,8)
cmp    %r10,%rsi
jne    1188 <scfAccelerator+0x88>
jmp    15ad <scfAccelerator+0x4ad>
lea    (%rcx,%r10,8),%rsi
cmp    %r8,%rsi
seta   %r14b
lea    (%r8,%r10,8),%rdi
cmp    %rcx,%rdi
seta   %bl
lea    (%rdx,%r10,8),%rbp
cmp    %r8,%rbp
seta   %al
cmp    %rdx,%rdi
seta   %r9b
cmp    %rcx,%rbp
seta   %dil
cmp    %rdx,%rsi
seta   %r11b
xor    %esi,%esi
test   %bl,%r14b
jne    129e <scfAccelerator+0x19e>
and    %r9b,%al
jne    129e <scfAccelerator+0x19e>
and    %r11b,%dil
jne    129e <scfAccelerator+0x19e>
mov    %r10d,%esi
and    $0xfffffffe,%esi
movapd %xmm1,%xmm2
unpcklpd %xmm1,%xmm2
movapd %xmm0,%xmm3
unpcklpd %xmm0,%xmm3
lea    -0x2(%rsi),%rax
mov    %rax,%r9
shr    %r9
add    $0x1,%r9
test   %rax,%rax
je     15c3 <scfAccelerator+0x4c3>
mov    %r9,%rax
and    $0xfffffffffffffffe,%rax
xor    %edi,%edi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movups (%rcx,%rdi,8),%xmm4
movups %xmm4,(%r8,%rdi,8)
movupd (%rdx,%rdi,8),%xmm4
movupd %xmm4,(%rcx,%rdi,8)
movupd (%r8,%rdi,8),%xmm5
mulpd  %xmm2,%xmm5
mulpd  %xmm3,%xmm4
addpd  %xmm5,%xmm4
movupd %xmm4,(%rdx,%rdi,8)
movups 0x10(%rcx,%rdi,8),%xmm4
movups %xmm4,0x10(%r8,%rdi,8)
movupd 0x10(%rdx,%rdi,8),%xmm4
movupd %xmm4,0x10(%rcx,%rdi,8)
movupd 0x10(%r8,%rdi,8),%xmm5
mulpd  %xmm2,%xmm5
mulpd  %xmm3,%xmm4
addpd  %xmm5,%xmm4
movupd %xmm4,0x10(%rdx,%rdi,8)
add    $0x4,%rdi
add    $0xfffffffffffffffe,%rax
jne    1510 <scfAccelerator+0x410>
test   $0x1,%r9b
je     15a4 <scfAccelerator+0x4a4>
movups (%rcx,%rdi,8),%xmm4
movups %xmm4,(%r8,%rdi,8)
movupd (%rdx,%rdi,8),%xmm4
movupd %xmm4,(%rcx,%rdi,8)
movupd (%r8,%rdi,8),%xmm5
mulpd  %xmm5,%xmm2
mulpd  %xmm4,%xmm3
addpd  %xmm2,%xmm3
movupd %xmm3,(%rdx,%rdi,8)
cmp    %r10,%rsi
jne    129e <scfAccelerator+0x19e>
pop    %rbx
pop    %r14
pop    %rbp
ret
xor    %edi,%edi
test   $0x1,%r9b
jne    1442 <scfAccelerator+0x342>
jmp    146c <scfAccelerator+0x36c>
xor    %edi,%edi
test   $0x1,%r9b
jne    157a <scfAccelerator+0x47a>
jmp    15a4 <scfAccelerator+0x4a4>

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

LLVM IR (-O2):
define void @scfAccelerator(i32 %0, i32 %1, double* nocapture %2, double* nocapture %3, double* nocapture %4) {
%6 = icmp sgt i32 %0, 2
%7 = icmp sgt i32 %1, 0
br i1 %6, label %110, label %8
8: ; preds = %5
br i1 %7, label %9, label %297
9: ; preds = %8
%10 = zext i32 %1 to i64
%11 = icmp eq i32 %1, 1
br i1 %11, label %91, label %12
12: ; preds = %9
%13 = getelementptr double, double* %4, i64 %10
%14 = getelementptr double, double* %3, i64 %10
%15 = getelementptr double, double* %2, i64 %10
%16 = icmp ugt double* %14, %4
%17 = icmp ugt double* %13, %3
%18 = and i1 %16, %17
%19 = icmp ugt double* %15, %4
%20 = icmp ugt double* %13, %2
%21 = and i1 %19, %20
%22 = or i1 %18, %21
%23 = icmp ugt double* %15, %3
%24 = icmp ugt double* %14, %2
%25 = and i1 %23, %24
%26 = or i1 %22, %25
br i1 %26, label %91, label %27
27: ; preds = %12
%28 = and i64 %10, 4294967294
%29 = add nsw i64 %28, -2
%30 = lshr exact i64 %29, 1
%31 = add nuw i64 %30, 1
%32 = and i64 %31, 1
%33 = icmp eq i64 %29, 0
br i1 %33, label %71, label %34
34: ; preds = %27
%35 = and i64 %31, -2
br label %36
36: ; preds = %36, %34
%37 = phi i64 [ 0, %34 ], [ %68, %36 ]
%38 = phi i64 [ 0, %34 ], [ %69, %36 ]
%39 = getelementptr inbounds double, double* %3, i64 %37
%40 = bitcast double* %39 to <2 x double>*
%41 = load <2 x double>, <2 x double>* %40
%42 = getelementptr inbounds double, double* %4, i64 %37
%43 = bitcast double* %42 to <2 x double>*
store <2 x double> %41, <2 x double>* %43
%44 = getelementptr inbounds double, double* %2, i64 %37
%45 = bitcast double* %44 to <2 x double>*
%46 = load <2 x double>, <2 x double>* %45
%47 = bitcast double* %39 to <2 x double>*
store <2 x double> %46, <2 x double>* %47
%48 = bitcast double* %42 to <2 x double>*
%49 = load <2 x double>, <2 x double>* %48
%50 = fadd <2 x double> %46, %49
%51 = fmul <2 x double> %50, <double 5.000000e-01, double 5.000000e-01>
%52 = bitcast double* %44 to <2 x double>*
store <2 x double> %51, <2 x double>* %52
%53 = or i64 %37, 2
%54 = getelementptr inbounds double, double* %3, i64 %53
%55 = bitcast double* %54 to <2 x double>*
%56 = load <2 x double>, <2 x double>* %55
%57 = getelementptr inbounds double, double* %4, i64 %53
%58 = bitcast double* %57 to <2 x double>*
store <2 x double> %56, <2 x double>* %58
%59 = getelementptr inbounds double, double* %2, i64 %53
%60 = bitcast double* %59 to <2 x double>*
%61 = load <2 x double>, <2 x double>* %60
%62 = bitcast double* %54 to <2 x double>*
store <2 x double> %61, <2 x double>* %62
%63 = bitcast double* %57 to <2 x double>*
%64 = load <2 x double>, <2 x double>* %63
%65 = fadd <2 x double> %61, %64
%66 = fmul <2 x double> %65, <double 5.000000e-01, double 5.000000e-01>
%67 = bitcast double* %59 to <2 x double>*
store <2 x double> %66, <2 x double>* %67
%68 = add nuw i64 %37, 4
%69 = add nuw i64 %38, 2
%70 = icmp eq i64 %69, %35
br i1 %70, label %71, label %36
71: ; preds = %36, %27
%72 = phi i64 [ 0, %27 ], [ %68, %36 ]
%73 = icmp eq i64 %32, 0
br i1 %73, label %89, label %74
74: ; preds = %71
%75 = getelementptr inbounds double, double* %3, i64 %72
%76 = bitcast double* %75 to <2 x double>*
%77 = load <2 x double>, <2 x double>* %76
%78 = getelementptr inbounds double, double* %4, i64 %72
%79 = bitcast double* %78 to <2 x double>*
store <2 x double> %77, <2 x double>* %79
%80 = getelementptr inbounds double, double* %2, i64 %72
%81 = bitcast double* %80 to <2 x double>*
%82 = load <2 x double>, <2 x double>* %81
%83 = bitcast double* %75 to <2 x double>*
store <2 x double> %82, <2 x double>* %83
%84 = bitcast double* %78 to <2 x double>*
%85 = load <2 x double>, <2 x double>* %84
%86 = fadd <2 x double> %82, %85
%87 = fmul <2 x double> %86, <double 5.000000e-01, double 5.000000e-01>
%88 = bitcast double* %80 to <2 x double>*
store <2 x double> %87, <2 x double>* %88
br label %89
89: ; preds = %71, %74
%90 = icmp eq i64 %28, %10
br i1 %90, label %297, label %91
91: ; preds = %12, %9, %89
%92 = phi i64 [ 0, %12 ], [ 0, %9 ], [ %28, %89 ]
%93 = xor i64 %92, -1
%94 = and i64 %10, 1
%95 = icmp eq i64 %94, 0
br i1 %95, label %106, label %96
96: ; preds = %91
%97 = getelementptr inbounds double, double* %3, i64 %92
%98 = load double, double* %97
%99 = getelementptr inbounds double, double* %4, i64 %92
store double %98, double* %99
%100 = getelementptr inbounds double, double* %2, i64 %92
%101 = load double, double* %100
store double %101, double* %97
%102 = load double, double* %99
%103 = fadd double %101, %102
%104 = fmul double %103, 5.000000e-01
store double %104, double* %100
%105 = or i64 %92, 1
br label %106
106: ; preds = %96, %91
%107 = phi i64 [ %92, %91 ], [ %105, %96 ]
%108 = sub nsw i64 0, %10
%109 = icmp eq i64 %93, %108
br i1 %109, label %297, label %276
110: ; preds = %5
br i1 %7, label %111, label %136
111: ; preds = %110
%112 = zext i32 %1 to i64
br label %113
113: ; preds = %111, %113
%114 = phi i64 [ 0, %111 ], [ %132, %113 ]
%115 = phi double [ 0.000000e+00, %111 ], [ %129, %113 ]
%116 = phi <2 x double> [ zeroinitializer, %111 ], [ %131, %113 ]
%117 = getelementptr inbounds double, double* %2, i64 %114
%118 = load double, double* %117
%119 = getelementptr inbounds double, double* %3, i64 %114
%120 = load double, double* %119
%121 = getelementptr inbounds double, double* %4, i64 %114
%122 = load double, double* %121
%123 = insertelement <2 x double> poison, double %118, i64 0
%124 = insertelement <2 x double> %123, double %120, i64 1
%125 = insertelement <2 x double> poison, double %120, i64 0
%126 = insertelement <2 x double> %125, double %122, i64 1
%127 = fsub <2 x double> %124, %126
%128 = extractelement <2 x double> %127, i64 0
%129 = tail call double @llvm.fmuladd.f64(double %128, double %128, double %115)
%130 = shufflevector <2 x double> %127, <2 x double> undef, <2 x i32> <i32 1, i32 1>
%131 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %127, <2 x double> %130, <2 x double> %116)
%132 = add nuw nsw i64 %114, 1
%133 = icmp eq i64 %132, %112
br i1 %133, label %134, label %113
134: ; preds = %113
%135 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %127, <2 x double> %130, <2 x double> %116)
br label %136
136: ; preds = %134, %110
%137 = phi double [ 0.000000e+00, %110 ], [ %129, %134 ]
%138 = phi <2 x double> [ zeroinitializer, %110 ], [ %135, %134 ]
%139 = extractelement <2 x double> %138, i64 0
%140 = fsub double %137, %139
%141 = tail call double @llvm.fmuladd.f64(double %139, double -2.000000e+00, double %137)
%142 = extractelement <2 x double> %138, i64 1
%143 = fadd double %142, %141
%144 = fdiv double %140, %143
%145 = fcmp olt double %144, 1.000000e-03
%146 = select i1 %145, double 1.000000e-03, double %144
%147 = fcmp ogt double %146, 1.500000e+00
%148 = select i1 %147, double 1.500000e+00, double %146
%149 = fsub double 1.000000e+00, %148
br i1 %7, label %150, label %297
150: ; preds = %136
%151 = zext i32 %1 to i64
%152 = icmp eq i32 %1, 1
br i1 %152, label %236, label %153
153: ; preds = %150
%154 = getelementptr double, double* %4, i64 %151
%155 = getelementptr double, double* %3, i64 %151
%156 = getelementptr double, double* %2, i64 %151
%157 = icmp ugt double* %155, %4
%158 = icmp ugt double* %154, %3
%159 = and i1 %157, %158
%160 = icmp ugt double* %156, %4
%161 = icmp ugt double* %154, %2
%162 = and i1 %160, %161
%163 = or i1 %159, %162
%164 = icmp ugt double* %156, %3
%165 = icmp ugt double* %155, %2
%166 = and i1 %164, %165
%167 = or i1 %163, %166
br i1 %167, label %236, label %168
168: ; preds = %153
%169 = and i64 %151, 4294967294
%170 = insertelement <2 x double> poison, double %149, i64 0
%171 = shufflevector <2 x double> %170, <2 x double> poison, <2 x i32> zeroinitializer
%172 = insertelement <2 x double> poison, double %148, i64 0
%173 = shufflevector <2 x double> %172, <2 x double> poison, <2 x i32> zeroinitializer
%174 = add nsw i64 %169, -2
%175 = lshr exact i64 %174, 1
%176 = add nuw i64 %175, 1
%177 = and i64 %176, 1
%178 = icmp eq i64 %174, 0
br i1 %178, label %216, label %179
179: ; preds = %168
%180 = and i64 %176, -2
br label %181
181: ; preds = %181, %179
%182 = phi i64 [ 0, %179 ], [ %213, %181 ]
%183 = phi i64 [ 0, %179 ], [ %214, %181 ]
%184 = getelementptr inbounds double, double* %3, i64 %182
%185 = bitcast double* %184 to <2 x double>*
%186 = load <2 x double>, <2 x double>* %185
%187 = getelementptr inbounds double, double* %4, i64 %182
%188 = bitcast double* %187 to <2 x double>*
store <2 x double> %186, <2 x double>* %188
%189 = getelementptr inbounds double, double* %2, i64 %182
%190 = bitcast double* %189 to <2 x double>*
%191 = load <2 x double>, <2 x double>* %190
%192 = bitcast double* %184 to <2 x double>*
store <2 x double> %191, <2 x double>* %192
%193 = bitcast double* %187 to <2 x double>*
%194 = load <2 x double>, <2 x double>* %193
%195 = fmul <2 x double> %171, %194
%196 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %191, <2 x double> %173, <2 x double> %195)
%197 = bitcast double* %189 to <2 x double>*
store <2 x double> %196, <2 x double>* %197
%198 = or i64 %182, 2
%199 = getelementptr inbounds double, double* %3, i64 %198
%200 = bitcast double* %199 to <2 x double>*
%201 = load <2 x double>, <2 x double>* %200
%202 = getelementptr inbounds double, double* %4, i64 %198
%203 = bitcast double* %202 to <2 x double>*
store <2 x double> %201, <2 x double>* %203
%204 = getelementptr inbounds double, double* %2, i64 %198
%205 = bitcast double* %204 to <2 x double>*
%206 = load <2 x double>, <2 x double>* %205
%207 = bitcast double* %199 to <2 x double>*
store <2 x double> %206, <2 x double>* %207
%208 = bitcast double* %202 to <2 x double>*
%209 = load <2 x double>, <2 x double>* %208
%210 = fmul <2 x double> %171, %209
%211 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %206, <2 x double> %173, <2 x double> %210)
%212 = bitcast double* %204 to <2 x double>*
store <2 x double> %211, <2 x double>* %212
%213 = add nuw i64 %182, 4
%214 = add nuw i64 %183, 2
%215 = icmp eq i64 %214, %180
br i1 %215, label %216, label %181
216: ; preds = %181, %168
%217 = phi i64 [ 0, %168 ], [ %213, %181 ]
%218 = icmp eq i64 %177, 0
br i1 %218, label %234, label %219
219: ; preds = %216
%220 = getelementptr inbounds double, double* %3, i64 %217
%221 = bitcast double* %220 to <2 x double>*
%222 = load <2 x double>, <2 x double>* %221
%223 = getelementptr inbounds double, double* %4, i64 %217
%224 = bitcast double* %223 to <2 x double>*
store <2 x double> %222, <2 x double>* %224
%225 = getelementptr inbounds double, double* %2, i64 %217
%226 = bitcast double* %225 to <2 x double>*
%227 = load <2 x double>, <2 x double>* %226
%228 = bitcast double* %220 to <2 x double>*
store <2 x double> %227, <2 x double>* %228
%229 = bitcast double* %223 to <2 x double>*
%230 = load <2 x double>, <2 x double>* %229
%231 = fmul <2 x double> %171, %230
%232 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %227, <2 x double> %173, <2 x double> %231)
%233 = bitcast double* %225 to <2 x double>*
store <2 x double> %232, <2 x double>* %233
br label %234
234: ; preds = %216, %219
%235 = icmp eq i64 %169, %151
br i1 %235, label %297, label %236
236: ; preds = %153, %150, %234
%237 = phi i64 [ 0, %153 ], [ 0, %150 ], [ %169, %234 ]
%238 = xor i64 %237, -1
%239 = and i64 %151, 1
%240 = icmp eq i64 %239, 0
br i1 %240, label %251, label %241
241: ; preds = %236
%242 = getelementptr inbounds double, double* %3, i64 %237
%243 = load double, double* %242
%244 = getelementptr inbounds double, double* %4, i64 %237
store double %243, double* %244
%245 = getelementptr inbounds double, double* %2, i64 %237
%246 = load double, double* %245
store double %246, double* %242
%247 = load double, double* %244
%248 = fmul double %149, %247
%249 = tail call double @llvm.fmuladd.f64(double %246, double %148, double %248)
store double %249, double* %245
%250 = or i64 %237, 1
br label %251
251: ; preds = %241, %236
%252 = phi i64 [ %237, %236 ], [ %250, %241 ]
%253 = sub nsw i64 0, %151
%254 = icmp eq i64 %238, %253
br i1 %254, label %297, label %255
255: ; preds = %251, %255
%256 = phi i64 [ %274, %255 ], [ %252, %251 ]
%257 = getelementptr inbounds double, double* %3, i64 %256
%258 = load double, double* %257
%259 = getelementptr inbounds double, double* %4, i64 %256
store double %258, double* %259
%260 = getelementptr inbounds double, double* %2, i64 %256
%261 = load double, double* %260
store double %261, double* %257
%262 = load double, double* %259
%263 = fmul double %149, %262
%264 = tail call double @llvm.fmuladd.f64(double %261, double %148, double %263)
store double %264, double* %260
%265 = add nuw nsw i64 %256, 1
%266 = getelementptr inbounds double, double* %3, i64 %265
%267 = load double, double* %266
%268 = getelementptr inbounds double, double* %4, i64 %265
store double %267, double* %268
%269 = getelementptr inbounds double, double* %2, i64 %265
%270 = load double, double* %269
store double %270, double* %266
%271 = load double, double* %268
%272 = fmul double %149, %271
%273 = tail call double @llvm.fmuladd.f64(double %270, double %148, double %272)
store double %273, double* %269
%274 = add nuw nsw i64 %256, 2
%275 = icmp eq i64 %274, %151
br i1 %275, label %297, label %255
276: ; preds = %106, %276
%277 = phi i64 [ %295, %276 ], [ %107, %106 ]
%278 = getelementptr inbounds double, double* %3, i64 %277
%279 = load double, double* %278
%280 = getelementptr inbounds double, double* %4, i64 %277
store double %279, double* %280
%281 = getelementptr inbounds double, double* %2, i64 %277
%282 = load double, double* %281
store double %282, double* %278
%283 = load double, double* %280
%284 = fadd double %282, %283
%285 = fmul double %284, 5.000000e-01
store double %285, double* %281
%286 = add nuw nsw i64 %277, 1
%287 = getelementptr inbounds double, double* %3, i64 %286
%288 = load double, double* %287
%289 = getelementptr inbounds double, double* %4, i64 %286
store double %288, double* %289
%290 = getelementptr inbounds double, double* %2, i64 %286
%291 = load double, double* %290
store double %291, double* %287
%292 = load double, double* %289
%293 = fadd double %291, %292
%294 = fmul double %293, 5.000000e-01
store double %294, double* %290
%295 = add nuw nsw i64 %277, 2
%296 = icmp eq i64 %295, %10
br i1 %296, label %297, label %276
297: ; preds = %106, %276, %251, %255, %89, %234, %8, %136
ret void
}