void kernel_dgecp_4_1_lib4(int tri, int kmax, double *A0, int sda, double *B) {
  if (tri == 1) {
    kmax += 1;
  }
  if (kmax <= 0)
    return;
  const int bs = 4;
  double *A1 = A0 + bs * sda;
  int k;
  for (k = 0; k < kmax - 3; k += 4) {
    B[0 + bs * 0] = A0[1 + bs * 0];
    B[1 + bs * 0] = A0[2 + bs * 0];
    B[2 + bs * 0] = A0[3 + bs * 0];
    B[3 + bs * 0] = A1[0 + bs * 0];
    B[0 + bs * 1] = A0[1 + bs * 1];
    B[1 + bs * 1] = A0[2 + bs * 1];
    B[2 + bs * 1] = A0[3 + bs * 1];
    B[3 + bs * 1] = A1[0 + bs * 1];
    B[0 + bs * 2] = A0[1 + bs * 2];
    B[1 + bs * 2] = A0[2 + bs * 2];
    B[2 + bs * 2] = A0[3 + bs * 2];
    B[3 + bs * 2] = A1[0 + bs * 2];
    B[0 + bs * 3] = A0[1 + bs * 3];
    B[1 + bs * 3] = A0[2 + bs * 3];
    B[2 + bs * 3] = A0[3 + bs * 3];
    B[3 + bs * 3] = A1[0 + bs * 3];
    A0 += 16;
    A1 += 16;
    B += 16;
  }
  for (; k < kmax; k++) {
    B[0 + bs * 0] = A0[1 + bs * 0];
    B[1 + bs * 0] = A0[2 + bs * 0];
    B[2 + bs * 0] = A0[3 + bs * 0];
    B[3 + bs * 0] = A1[0 + bs * 0];
    A0 += 4;
    A1 += 4;
    B += 4;
  }
  if (tri == 1) {
    B[1 + 0 * bs] = A0[2 + 0 * bs];
    B[2 + 0 * bs] = A0[3 + 0 * bs];
    B[3 + 0 * bs] = A1[0 + 0 * bs];
    B[2 + 1 * bs] = A0[3 + 1 * bs];
    B[3 + 1 * bs] = A1[0 + 1 * bs];
    B[3 + 2 * bs] = A1[0 + 2 * bs];
  }
}


x86 assembly (clang, -O0):
<kernel_dgecp_4_1_lib4>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8,-0x20(%rbp)
cmpl   $0x1,-0x4(%rbp)
jne    1128 <kernel_dgecp_4_1_lib4+0x28>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jg     1137 <kernel_dgecp_4_1_lib4+0x37>
jmp    13c2 <kernel_dgecp_4_1_lib4+0x2c2>
movl   $0x4,-0x24(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
shl    $0x2,%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x3,%ecx
cmp    %ecx,%eax
jge    12c4 <kernel_dgecp_4_1_lib4+0x1c4>
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x18(%rax)
mov    -0x10(%rbp),%rax
movsd  0x28(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x20(%rax)
mov    -0x10(%rbp),%rax
movsd  0x30(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x28(%rax)
mov    -0x10(%rbp),%rax
movsd  0x38(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x30(%rax)
mov    -0x30(%rbp),%rax
movsd  0x20(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x38(%rax)
mov    -0x10(%rbp),%rax
movsd  0x48(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x40(%rax)
mov    -0x10(%rbp),%rax
movsd  0x50(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x48(%rax)
mov    -0x10(%rbp),%rax
movsd  0x58(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x50(%rax)
mov    -0x30(%rbp),%rax
movsd  0x40(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x58(%rax)
mov    -0x10(%rbp),%rax
movsd  0x68(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x60(%rax)
mov    -0x10(%rbp),%rax
movsd  0x70(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x68(%rax)
mov    -0x10(%rbp),%rax
movsd  0x78(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x70(%rax)
mov    -0x30(%rbp),%rax
movsd  0x60(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x78(%rax)
mov    -0x10(%rbp),%rax
add    $0x80,%rax
mov    %rax,-0x10(%rbp)
mov    -0x30(%rbp),%rax
add    $0x80,%rax
mov    %rax,-0x30(%rbp)
mov    -0x20(%rbp),%rax
add    $0x80,%rax
mov    %rax,-0x20(%rbp)
mov    -0x34(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x34(%rbp)
jmp    115d <kernel_dgecp_4_1_lib4+0x5d>
jmp    12c9 <kernel_dgecp_4_1_lib4+0x1c9>
mov    -0x34(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    134d <kernel_dgecp_4_1_lib4+0x24d>
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x18(%rax)
mov    -0x10(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x10(%rbp)
mov    -0x30(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x30(%rbp)
mov    -0x20(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x20(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    12c9 <kernel_dgecp_4_1_lib4+0x1c9>
cmpl   $0x1,-0x4(%rbp)
jne    13c2 <kernel_dgecp_4_1_lib4+0x2c2>
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x18(%rax)
mov    -0x10(%rbp),%rax
movsd  0x38(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x30(%rax)
mov    -0x30(%rbp),%rax
movsd  0x20(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x38(%rax)
mov    -0x30(%rbp),%rax
movsd  0x40(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x58(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<kernel_dgecp_4_1_lib4>:
xor    %eax,%eax
cmp    $0x1,%edi
sete   %al
add    %esi,%eax
test   %eax,%eax
jle    131d <kernel_dgecp_4_1_lib4+0x21d>
shl    $0x2,%ecx
movslq %ecx,%rcx
cmp    $0x4,%eax
jb     1203 <kernel_dgecp_4_1_lib4+0x103>
lea    -0x3(%rax),%r9d
xor    %esi,%esi
nopw   0x0(%rax,%rax,1)
movsd  0x8(%rdx),%xmm0
movsd  %xmm0,(%r8)
movsd  0x10(%rdx),%xmm0
movsd  %xmm0,0x8(%r8)
movsd  0x18(%rdx),%xmm0
movsd  %xmm0,0x10(%r8)
movsd  (%rdx,%rcx,8),%xmm0
movsd  %xmm0,0x18(%r8)
movsd  0x28(%rdx),%xmm0
movsd  %xmm0,0x20(%r8)
movsd  0x30(%rdx),%xmm0
movsd  %xmm0,0x28(%r8)
movsd  0x38(%rdx),%xmm0
movsd  %xmm0,0x30(%r8)
movsd  0x20(%rdx,%rcx,8),%xmm0
movsd  %xmm0,0x38(%r8)
movsd  0x48(%rdx),%xmm0
movsd  %xmm0,0x40(%r8)
movsd  0x50(%rdx),%xmm0
movsd  %xmm0,0x48(%r8)
movsd  0x58(%rdx),%xmm0
movsd  %xmm0,0x50(%r8)
movsd  0x40(%rdx,%rcx,8),%xmm0
movsd  %xmm0,0x58(%r8)
movsd  0x68(%rdx),%xmm0
movsd  %xmm0,0x60(%r8)
movsd  0x70(%rdx),%xmm0
movsd  %xmm0,0x68(%r8)
movsd  0x78(%rdx),%xmm0
movsd  %xmm0,0x70(%r8)
movsd  0x60(%rdx,%rcx,8),%xmm0
movsd  %xmm0,0x78(%r8)
sub    $0xffffffffffffff80,%rdx
sub    $0xffffffffffffff80,%r8
add    $0x4,%esi
cmp    %r9d,%esi
jl     1130 <kernel_dgecp_4_1_lib4+0x30>
lea    (%rdx,%rcx,8),%rcx
cmp    %eax,%esi
jl     1211 <kernel_dgecp_4_1_lib4+0x111>
jmp    12d7 <kernel_dgecp_4_1_lib4+0x1d7>
lea    (%rdx,%rcx,8),%rcx
xor    %esi,%esi
cmp    %eax,%esi
jge    12d7 <kernel_dgecp_4_1_lib4+0x1d7>
mov    %eax,%r10d
sub    %esi,%r10d
lea    0x1(%rsi),%r9d
test   $0x1,%r10b
je     125a <kernel_dgecp_4_1_lib4+0x15a>
movsd  0x8(%rdx),%xmm0
movsd  %xmm0,(%r8)
movsd  0x10(%rdx),%xmm0
movsd  %xmm0,0x8(%r8)
movsd  0x18(%rdx),%xmm0
movsd  %xmm0,0x10(%r8)
movsd  (%rcx),%xmm0
movsd  %xmm0,0x18(%r8)
add    $0x20,%rdx
add    $0x20,%rcx
add    $0x20,%r8
mov    %r9d,%esi
cmp    %r9d,%eax
je     12d7 <kernel_dgecp_4_1_lib4+0x1d7>
sub    %esi,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  0x8(%rdx),%xmm0
movsd  %xmm0,(%r8)
movsd  0x10(%rdx),%xmm0
movsd  %xmm0,0x8(%r8)
movsd  0x18(%rdx),%xmm0
movsd  %xmm0,0x10(%r8)
movsd  (%rcx),%xmm0
movsd  %xmm0,0x18(%r8)
movsd  0x28(%rdx),%xmm0
movsd  %xmm0,0x20(%r8)
movsd  0x30(%rdx),%xmm0
movsd  %xmm0,0x28(%r8)
movsd  0x38(%rdx),%xmm0
movsd  %xmm0,0x30(%r8)
movsd  0x20(%rcx),%xmm0
movsd  %xmm0,0x38(%r8)
add    $0x40,%rdx
add    $0x40,%rcx
add    $0x40,%r8
add    $0xfffffffe,%eax
jne    1270 <kernel_dgecp_4_1_lib4+0x170>
cmp    $0x1,%edi
jne    131d <kernel_dgecp_4_1_lib4+0x21d>
movsd  0x10(%rdx),%xmm0
movsd  %xmm0,0x8(%r8)
movsd  0x18(%rdx),%xmm0
movsd  %xmm0,0x10(%r8)
movsd  (%rcx),%xmm0
movsd  %xmm0,0x18(%r8)
movsd  0x38(%rdx),%xmm0
movsd  %xmm0,0x30(%r8)
movsd  0x20(%rcx),%xmm0
movsd  %xmm0,0x38(%r8)
movsd  0x40(%rcx),%xmm0
movsd  %xmm0,0x58(%r8)
ret

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

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