void ar_bias(double *p, double *past, int order, int dim2, int s, double *ar) {
  int i, k;
  for (i = 0; i < dim2; i++)
    ar[i] = p[i];
  for (k = 0; k < order; k++) {
    for (i = 0; i < dim2; i++) {
      ar[i] += p[dim2 + k * dim2 + i] * past[s - (k + 1) * dim2 + i];
    }
  }
}


x86 assembly (clang, -O0):
<ar_bias>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
mov    %r9,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1155 <ar_bias+0x55>
mov    -0x8(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1121 <ar_bias+0x21>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    11ef <ar_bias+0xef>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    11dc <ar_bias+0xdc>
mov    -0x8(%rbp),%rax
mov    -0x18(%rbp),%ecx
mov    -0x30(%rbp),%edx
imul   -0x18(%rbp),%edx
add    %edx,%ecx
add    -0x2c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x1c(%rbp),%ecx
mov    -0x30(%rbp),%edx
add    $0x1,%edx
imul   -0x18(%rbp),%edx
sub    %edx,%ecx
add    -0x2c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x28(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    116f <ar_bias+0x6f>
jmp    11e1 <ar_bias+0xe1>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    115c <ar_bias+0x5c>
pop    %rbp
ret

x86 assembly (clang, -O2):
<ar_bias>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %r8d,-0x70(%rsp)
mov    %rsi,-0x68(%rsp)
mov    %ecx,%r10d
test   %ecx,%ecx
jle    1289 <ar_bias+0x189>
cmp    $0x4,%ecx
jb     113a <ar_bias+0x3a>
lea    (%rdi,%r10,8),%rax
cmp    %r9,%rax
jbe    11b0 <ar_bias+0xb0>
lea    (%r9,%r10,8),%rax
cmp    %rdi,%rax
jbe    11b0 <ar_bias+0xb0>
xor    %esi,%esi
mov    %rsi,%rbp
not    %rbp
add    %r10,%rbp
mov    %r10,%rax
and    $0x3,%rax
je     1165 <ar_bias+0x65>
xchg   %ax,%ax
movsd  (%rdi,%rsi,8),%xmm0
movsd  %xmm0,(%r9,%rsi,8)
add    $0x1,%rsi
add    $0xffffffffffffffff,%rax
jne    1150 <ar_bias+0x50>
cmp    $0x3,%rbp
jb     1289 <ar_bias+0x189>
nop
movsd  (%rdi,%rsi,8),%xmm0
movsd  %xmm0,(%r9,%rsi,8)
movsd  0x8(%rdi,%rsi,8),%xmm0
movsd  %xmm0,0x8(%r9,%rsi,8)
movsd  0x10(%rdi,%rsi,8),%xmm0
movsd  %xmm0,0x10(%r9,%rsi,8)
movsd  0x18(%rdi,%rsi,8),%xmm0
movsd  %xmm0,0x18(%r9,%rsi,8)
add    $0x4,%rsi
cmp    %rsi,%r10
jne    1170 <ar_bias+0x70>
jmp    1289 <ar_bias+0x189>
mov    %r10d,%esi
and    $0xfffffffc,%esi
lea    -0x4(%rsi),%rax
mov    %rax,%rbp
shr    $0x2,%rbp
add    $0x1,%rbp
mov    %ebp,%r8d
and    $0x3,%r8d
cmp    $0xc,%rax
jae    11d6 <ar_bias+0xd6>
xor    %ebx,%ebx
jmp    1244 <ar_bias+0x144>
and    $0xfffffffffffffffc,%rbp
xor    %ebx,%ebx
nopl   0x0(%rax)
movups (%rdi,%rbx,8),%xmm0
movups 0x10(%rdi,%rbx,8),%xmm1
movups %xmm0,(%r9,%rbx,8)
movups %xmm1,0x10(%r9,%rbx,8)
movups 0x20(%rdi,%rbx,8),%xmm0
movups 0x30(%rdi,%rbx,8),%xmm1
movups %xmm0,0x20(%r9,%rbx,8)
movups %xmm1,0x30(%r9,%rbx,8)
movups 0x40(%rdi,%rbx,8),%xmm0
movups 0x50(%rdi,%rbx,8),%xmm1
movups %xmm0,0x40(%r9,%rbx,8)
movups %xmm1,0x50(%r9,%rbx,8)
movupd 0x60(%rdi,%rbx,8),%xmm0
movupd 0x70(%rdi,%rbx,8),%xmm1
movupd %xmm0,0x60(%r9,%rbx,8)
movupd %xmm1,0x70(%r9,%rbx,8)
add    $0x10,%rbx
add    $0xfffffffffffffffc,%rbp
jne    11e0 <ar_bias+0xe0>
test   %r8,%r8
je     1280 <ar_bias+0x180>
lea    (%r9,%rbx,8),%rax
add    $0x10,%rax
lea    (%rdi,%rbx,8),%rbp
add    $0x10,%rbp
shl    $0x5,%r8
xor    %ebx,%ebx
nop
movupd -0x10(%rbp,%rbx,1),%xmm0
movupd 0x0(%rbp,%rbx,1),%xmm1
movupd %xmm0,-0x10(%rax,%rbx,1)
movupd %xmm1,(%rax,%rbx,1)
add    $0x20,%rbx
cmp    %rbx,%r8
jne    1260 <ar_bias+0x160>
cmp    %r10,%rsi
jne    113c <ar_bias+0x3c>
test   %edx,%edx
jle    1512 <ar_bias+0x412>
movslq %ecx,%rbp
mov    %edx,%eax
mov    %rax,-0x8(%rsp)
lea    (%r9,%r10,8),%rax
mov    %rax,-0x20(%rsp)
lea    0x0(%rbp,%r10,1),%rax
mov    %rax,-0x28(%rsp)
mov    -0x68(%rsp),%rax
lea    (%rax,%r10,8),%rdx
mov    %rdx,-0x30(%rsp)
mov    %r10d,%edx
and    $0xfffffffc,%edx
mov    %rdx,-0x40(%rsp)
mov    %r10,%rdx
neg    %rdx
mov    %rdx,-0x18(%rsp)
lea    (%rdi,%rbp,8),%rbx
add    $0x10,%rbx
lea    0x0(,%rbp,8),%rdx
mov    %rdx,-0x10(%rsp)
lea    0x10(%rax),%rdx
mov    %rdx,-0x48(%rsp)
mov    -0x70(%rsp),%r8d
sub    %ecx,%r8d
lea    0x0(,%r10,8),%r15
and    $0xffffffffffffffe0,%r15
add    $0x8,%rax
mov    %rax,-0x38(%rsp)
lea    (%rdi,%rbp,8),%r14
add    $0x8,%r14
xor    %r12d,%r12d
mov    %rbp,-0x58(%rsp)
mov    %ecx,-0x6c(%rsp)
mov    %rdi,-0x60(%rsp)
jmp    134d <ar_bias+0x24d>
nopl   0x0(%rax,%rax,1)
add    $0x1,%r12
mov    -0x10(%rsp),%rax
add    %rax,%rbx
sub    %ecx,%r8d
add    %rax,%r14
cmp    -0x8(%rsp),%r12
je     1512 <ar_bias+0x412>
test   %ecx,%ecx
jle    1330 <ar_bias+0x230>
mov    %r12,%rdx
imul   %rbp,%rdx
lea    (%rdx,%rbp,1),%r11
movslq %r8d,%rax
mov    %rax,-0x50(%rsp)
cmp    $0x4,%ecx
jae    1370 <ar_bias+0x270>
xor    %edx,%edx
jmp    1470 <ar_bias+0x370>
add    -0x28(%rsp),%rdx
mov    %r12d,%eax
imul   %ecx,%eax
add    %ecx,%eax
mov    -0x70(%rsp),%esi
sub    %eax,%esi
lea    (%rdi,%r11,8),%rax
lea    (%rdi,%rdx,8),%rdx
movslq %esi,%rsi
mov    -0x30(%rsp),%rcx
lea    (%rcx,%rsi,8),%rbp
cmp    %r9,%rdx
seta   %dl
mov    -0x20(%rsp),%r13
cmp    %r13,%rax
setb   %cl
cmp    %r9,%rbp
seta   %al
mov    -0x68(%rsp),%rbp
lea    0x0(,%rsi,8),%rsi
add    %rbp,%rsi
cmp    %r13,%rsi
setb   %sil
test   %cl,%dl
jne    145c <ar_bias+0x35c>
mov    $0x0,%edx
and    %sil,%al
mov    -0x6c(%rsp),%ecx
mov    -0x58(%rsp),%rbp
mov    -0x60(%rsp),%rdi
jne    1470 <ar_bias+0x370>
mov    -0x48(%rsp),%rax
mov    -0x50(%rsp),%rdx
lea    (%rax,%rdx,8),%rdx
xor    %esi,%esi
nopl   0x0(%rax)
movupd -0x10(%rbx,%rsi,1),%xmm0
movupd (%rbx,%rsi,1),%xmm1
movupd -0x10(%rdx,%rsi,1),%xmm2
mulpd  %xmm0,%xmm2
movupd (%rdx,%rsi,1),%xmm0
mulpd  %xmm1,%xmm0
movupd (%r9,%rsi,1),%xmm1
addpd  %xmm2,%xmm1
movupd 0x10(%r9,%rsi,1),%xmm2
addpd  %xmm0,%xmm2
movupd %xmm1,(%r9,%rsi,1)
movupd %xmm2,0x10(%r9,%rsi,1)
add    $0x20,%rsi
cmp    %rsi,%r15
jne    1400 <ar_bias+0x300>
mov    -0x40(%rsp),%rax
mov    %rax,%rdx
cmp    %r10,%rax
je     1330 <ar_bias+0x230>
jmp    1470 <ar_bias+0x370>
xor    %edx,%edx
mov    -0x6c(%rsp),%ecx
mov    -0x58(%rsp),%rbp
mov    -0x60(%rsp),%rdi
nopl   0x0(%rax)
mov    %rdx,%r13
test   $0x1,%r10b
je     14b0 <ar_bias+0x3b0>
mov    %r12d,%eax
not    %eax
imul   %ecx,%eax
add    -0x70(%rsp),%eax
cltq
add    %rdx,%r11
movsd  (%rdi,%r11,8),%xmm0
add    %rdx,%rax
mov    -0x68(%rsp),%rsi
mulsd  (%rsi,%rax,8),%xmm0
addsd  (%r9,%rdx,8),%xmm0
movsd  %xmm0,(%r9,%rdx,8)
mov    %rdx,%r13
or     $0x1,%r13
not    %rdx
cmp    -0x18(%rsp),%rdx
je     1330 <ar_bias+0x230>
mov    -0x38(%rsp),%rax
mov    -0x50(%rsp),%rdx
lea    (%rax,%rdx,8),%rdx
nopl   0x0(%rax)
movsd  -0x8(%r14,%r13,8),%xmm0
mulsd  -0x8(%rdx,%r13,8),%xmm0
addsd  (%r9,%r13,8),%xmm0
movsd  %xmm0,(%r9,%r13,8)
movsd  (%r14,%r13,8),%xmm0
mulsd  (%rdx,%r13,8),%xmm0
addsd  0x8(%r9,%r13,8),%xmm0
movsd  %xmm0,0x8(%r9,%r13,8)
add    $0x2,%r13
cmp    %r13,%r10
jne    14d0 <ar_bias+0x3d0>
jmp    1330 <ar_bias+0x230>
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @ar_bias(double* %0, double* %1, i32 %2, i32 %3, i32 %4, double* %5) {
%7 = alloca double*
%8 = alloca double*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca double*
%13 = alloca i32
%14 = alloca i32
store double* %0, double** %7
store double* %1, double** %8
store i32 %2, i32* %9
store i32 %3, i32* %10
store i32 %4, i32* %11
store double* %5, double** %12
store i32 0, i32* %13
br label %15
15: ; preds = %29, %6
%16 = load i32, i32* %13
%17 = load i32, i32* %10
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %32
19: ; preds = %15
%20 = load double*, double** %7
%21 = load i32, i32* %13
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds double, double* %20, i64 %22
%24 = load double, double* %23
%25 = load double*, double** %12
%26 = load i32, i32* %13
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds double, double* %25, i64 %27
store double %24, double* %28
br label %29
29: ; preds = %19
%30 = load i32, i32* %13
%31 = add nsw i32 %30, 1
store i32 %31, i32* %13
br label %15
32: ; preds = %15
store i32 0, i32* %14
br label %33
33: ; preds = %76, %32
%34 = load i32, i32* %14
%35 = load i32, i32* %9
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %79
37: ; preds = %33
store i32 0, i32* %13
br label %38
38: ; preds = %72, %37
%39 = load i32, i32* %13
%40 = load i32, i32* %10
%41 = icmp slt i32 %39, %40
br i1 %41, label %42, label %75
42: ; preds = %38
%43 = load double*, double** %7
%44 = load i32, i32* %10
%45 = load i32, i32* %14
%46 = load i32, i32* %10
%47 = mul nsw i32 %45, %46
%48 = add nsw i32 %44, %47
%49 = load i32, i32* %13
%50 = add nsw i32 %48, %49
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds double, double* %43, i64 %51
%53 = load double, double* %52
%54 = load double*, double** %8
%55 = load i32, i32* %11
%56 = load i32, i32* %14
%57 = add nsw i32 %56, 1
%58 = load i32, i32* %10
%59 = mul nsw i32 %57, %58
%60 = sub nsw i32 %55, %59
%61 = load i32, i32* %13
%62 = add nsw i32 %60, %61
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds double, double* %54, i64 %63
%65 = load double, double* %64
%66 = load double*, double** %12
%67 = load i32, i32* %13
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds double, double* %66, i64 %68
%70 = load double, double* %69
%71 = call double @llvm.fmuladd.f64(double %53, double %65, double %70)
store double %71, double* %69
br label %72
72: ; preds = %42
%73 = load i32, i32* %13
%74 = add nsw i32 %73, 1
store i32 %74, i32* %13
br label %38
75: ; preds = %38
br label %76
76: ; preds = %75
%77 = load i32, i32* %14
%78 = add nsw i32 %77, 1
store i32 %78, i32* %14
br label %33
79: ; preds = %33
ret void
}

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