void eltran(double **a, double **zz, int *order, const int n) {
  int i, j, m;
  for (i = 0; i < n; i++) {
    for (j = i + 1; j < n; j++) {
      zz[i][j] = 0.0;
      zz[j][i] = 0.0;
    }
    zz[i][i] = 1.0;
  }
  if (n <= 2) {
    return;
  }
  for (m = n - 1; m >= 2; m--) {
    for (i = m; i < n; i++) {
      zz[i][m - 1] = a[i][m - 2];
    }
    i = order[m - 1];
    if (i != m) {
      for (j = m - 1; j < n; j++) {
        zz[m - 1][j] = zz[i - 1][j];
        zz[i - 1][j] = 0.0;
      }
      zz[i - 1][m - 1] = 1.0;
    }
  }
}


x86 assembly (clang, -O0):
<eltran>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    11a4 <eltran+0xa4>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1179 <eltran+0x79>
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    112f <eltran+0x2f>
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
movsd  0xe6f(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    111a <eltran+0x1a>
cmpl   $0x2,-0x1c(%rbp)
jg     11b3 <eltran+0xb3>
jmp    12e7 <eltran+0x1e7>
mov    -0x1c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x28(%rbp)
cmpl   $0x2,-0x28(%rbp)
jl     12e7 <eltran+0x1e7>
mov    -0x28(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    121a <eltran+0x11a>
mov    -0x8(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x28(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x28(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    11cc <eltran+0xcc>
mov    -0x18(%rbp),%rax
mov    -0x28(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x28(%rbp),%eax
je     12d4 <eltran+0x1d4>
mov    -0x28(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    12ad <eltran+0x1ad>
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1242 <eltran+0x142>
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x28(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  0xd31(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
jmp    12d9 <eltran+0x1d9>
mov    -0x28(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x28(%rbp)
jmp    11bc <eltran+0xbc>
pop    %rbp
ret

x86 assembly (clang, -O2):
<eltran>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %rcx,-0x50(%rsp)
test   %ecx,%ecx
jle    1196 <eltran+0x96>
mov    %rdx,-0x8(%rsp)
mov    -0x50(%rsp),%r14d
xor    %edx,%edx
movabs $0x3ff0000000000000,%r11
mov    %r14,%r10
mov    %rsi,%rcx
jmp    1154 <eltran+0x54>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r11,(%r8,%rdx,8)
add    $0x8,%rcx
add    $0xffffffffffffffff,%r10
mov    %r9,%rdx
cmp    %r14,%r9
je     118f <eltran+0x8f>
lea    0x1(%rdx),%r9
mov    (%rsi,%rdx,8),%r8
cmp    %r14,%r9
jae    1140 <eltran+0x40>
lea    (%r8,%rdx,8),%rbx
mov    $0x1,%ebp
nopw   0x0(%rax,%rax,1)
movq   $0x0,(%rbx,%rbp,8)
mov    (%rcx,%rbp,8),%rax
movq   $0x0,(%rax,%rdx,8)
add    $0x1,%rbp
cmp    %rbp,%r10
jne    1170 <eltran+0x70>
jmp    1140 <eltran+0x40>
cmpl   $0x3,-0x50(%rsp)
jge    11a1 <eltran+0xa1>
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    -0x50(%rsp),%rax
lea    -0x2(%rax),%ebp
lea    0x2(%rbp),%rax
mov    %rax,-0x40(%rsp)
mov    $0x1,%r8d
sub    %r14,%r8
lea    (%rsi,%r14,8),%r12
add    $0xfffffffffffffff8,%r12
lea    -0x8(%rdi,%r14,8),%r11
lea    0x6(%rbp),%r9
mov    $0x1,%r15b
mov    $0xfffffffffffffffe,%rax
xor    %r13d,%r13d
xorps  %xmm0,%xmm0
mov    %r14,%r10
jmp    1244 <eltran+0x144>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    -0x8(%rsi,%rbx,8),%rax
movabs $0x3ff0000000000000,%rcx
mov    %rcx,(%rax,%rdx,8)
mov    -0x10(%rsp),%r8
mov    -0x30(%rsp),%r9
mov    -0x48(%rsp),%rax
mov    -0x18(%rsp),%rcx
add    $0xffffffffffffffff,%rbp
add    $0x1,%r13
add    $0x1,%r8
add    $0xfffffffffffffff8,%r12
add    $0xfffffffffffffff8,%r11
add    $0x1,%r15b
add    $0xffffffffffffffff,%r9
add    $0x1,%rax
cmp    $0x3,%r10
mov    %rcx,%r10
jle    1196 <eltran+0x96>
movzbl %r15b,%r15d
and    $0x3,%r15d
lea    -0x1(%r10),%rcx
cmp    %r14,%r10
mov    %rax,-0x48(%rsp)
jle    1270 <eltran+0x170>
lea    -0x2(%r10),%edx
jmp    1324 <eltran+0x224>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rbp,-0x58(%rsp)
lea    0x1(%r13),%eax
mov    %rcx,%rbp
lea    -0x3(%r10),%ecx
lea    -0x2(%r10),%edx
mov    %rbp,%rbx
test   $0x3,%al
je     12ae <eltran+0x1ae>
xor    %ebp,%ebp
nopl   (%rax)
mov    (%r11,%rbp,8),%rax
movsd  (%rax,%rcx,8),%xmm1
mov    (%r12,%rbp,8),%rax
movsd  %xmm1,(%rax,%rdx,8)
add    $0x1,%rbp
cmp    %rbp,%r15
jne    1290 <eltran+0x190>
sub    %r8,%rbp
cmp    $0x3,%r13
jb     1317 <eltran+0x217>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    (%rdi,%rbp,8),%rax
movsd  (%rax,%rcx,8),%xmm1
mov    (%rsi,%rbp,8),%rax
movsd  %xmm1,(%rax,%rdx,8)
mov    0x8(%rdi,%rbp,8),%rax
movsd  (%rax,%rcx,8),%xmm1
mov    0x8(%rsi,%rbp,8),%rax
movsd  %xmm1,(%rax,%rdx,8)
mov    0x10(%rdi,%rbp,8),%rax
movsd  (%rax,%rcx,8),%xmm1
mov    0x10(%rsi,%rbp,8),%rax
movsd  %xmm1,(%rax,%rdx,8)
mov    0x18(%rdi,%rbp,8),%rax
movsd  (%rax,%rcx,8),%xmm1
mov    0x18(%rsi,%rbp,8),%rax
movsd  %xmm1,(%rax,%rdx,8)
add    $0x4,%rbp
cmp    %rbp,%r14
jne    12c0 <eltran+0x1c0>
mov    -0x58(%rsp),%rbp
mov    -0x48(%rsp),%rax
mov    %rbx,%rcx
mov    -0x8(%rsp),%rbx
movslq (%rbx,%rdx,4),%rbx
cmp    %ecx,%ebx
je     1217 <eltran+0x117>
mov    %rcx,-0x18(%rsp)
mov    %r9,-0x30(%rsp)
mov    %r8,-0x10(%rsp)
cmp    -0x50(%rsp),%edx
jge    11f0 <eltran+0xf0>
lea    0x2(%r13),%rax
mov    %rbx,-0x38(%rsp)
mov    -0x8(%rsi,%rbx,8),%r8
mov    (%rsi,%rdx,8),%rcx
mov    %rbp,%r9
mov    %rax,-0x20(%rsp)
cmp    $0x4,%rax
mov    %rbp,-0x58(%rsp)
jb     1490 <eltran+0x390>
lea    (%rcx,%rbp,8),%rax
mov    -0x40(%rsp),%rbp
lea    (%r8,%rbp,8),%rbp
cmp    %rbp,%rax
mov    -0x58(%rsp),%rbp
jae    13a7 <eltran+0x2a7>
mov    -0x40(%rsp),%rax
lea    (%rcx,%rax,8),%rax
lea    (%r8,%rbp,8),%rbx
mov    %rbp,%r9
cmp    %rax,%rbx
jb     1490 <eltran+0x390>
lea    -0x2(%r13),%rax
mov    %rax,%rbp
shr    $0x2,%rbp
add    $0x1,%rbp
mov    %rbp,-0x28(%rsp)
cmp    $0x4,%rax
jae    13c5 <eltran+0x2c5>
xor    %ebp,%ebp
jmp    1437 <eltran+0x337>
mov    -0x48(%rsp),%rax
shr    $0x2,%rax
add    $0x1,%rax
and    $0xfffffffffffffffe,%rax
mov    -0x30(%rsp),%rbx
lea    (%rcx,%rbx,8),%r9
lea    (%r8,%rbx,8),%rbx
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nop
movups -0x30(%rbx,%rbp,8),%xmm1
movups -0x20(%rbx,%rbp,8),%xmm2
movups %xmm1,-0x30(%r9,%rbp,8)
movups %xmm2,-0x20(%r9,%rbp,8)
movups %xmm0,-0x30(%rbx,%rbp,8)
movups %xmm0,-0x20(%rbx,%rbp,8)
movups -0x10(%rbx,%rbp,8),%xmm1
movups (%rbx,%rbp,8),%xmm2
movups %xmm1,-0x10(%r9,%rbp,8)
movups %xmm2,(%r9,%rbp,8)
movups %xmm0,-0x10(%rbx,%rbp,8)
movups %xmm0,(%rbx,%rbp,8)
add    $0x8,%rbp
add    $0xfffffffffffffffe,%rax
jne    13f0 <eltran+0x2f0>
mov    -0x20(%rsp),%rax
mov    %rax,%r9
and    $0xfffffffffffffffc,%r9
testb  $0x1,-0x28(%rsp)
mov    -0x38(%rsp),%rbx
je     1473 <eltran+0x373>
add    -0x58(%rsp),%rbp
movups (%r8,%rbp,8),%xmm1
movups 0x10(%r8,%rbp,8),%xmm2
movups %xmm1,(%rcx,%rbp,8)
movups %xmm2,0x10(%rcx,%rbp,8)
movups %xmm0,(%r8,%rbp,8)
movups %xmm0,0x10(%r8,%rbp,8)
cmp    %r9,%rax
mov    -0x58(%rsp),%rbp
je     11f0 <eltran+0xf0>
add    %rbp,%r9
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    -0x50(%rsp),%rbp
mov    %ebp,%ebx
sub    %r9d,%ebx
mov    %r9d,%eax
not    %eax
add    %ebp,%eax
and    $0x3,%ebx
je     14cf <eltran+0x3cf>
mov    -0x58(%rsp),%rbp
nopl   0x0(%rax,%rax,1)
movsd  (%r8,%r9,8),%xmm1
movsd  %xmm1,(%rcx,%r9,8)
movq   $0x0,(%r8,%r9,8)
add    $0x1,%r9
add    $0xffffffff,%ebx
jne    14b0 <eltran+0x3b0>
jmp    14d4 <eltran+0x3d4>
mov    -0x58(%rsp),%rbp
cmp    $0x3,%eax
mov    -0x38(%rsp),%rbx
jb     11f0 <eltran+0xf0>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  (%r8,%r9,8),%xmm1
movsd  %xmm1,(%rcx,%r9,8)
movq   $0x0,(%r8,%r9,8)
movsd  0x8(%r8,%r9,8),%xmm1
movsd  %xmm1,0x8(%rcx,%r9,8)
movq   $0x0,0x8(%r8,%r9,8)
movsd  0x10(%r8,%r9,8),%xmm1
movsd  %xmm1,0x10(%rcx,%r9,8)
movq   $0x0,0x10(%r8,%r9,8)
movsd  0x18(%r8,%r9,8),%xmm1
movsd  %xmm1,0x18(%rcx,%r9,8)
movq   $0x0,0x18(%r8,%r9,8)
add    $0x4,%r9
cmp    %r9d,%r14d
jne    14f0 <eltran+0x3f0>
jmp    11f0 <eltran+0xf0>

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

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